Template:Tool: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>Tool Information</h2>
<h2>[[:Category:Tools and Weapons|Tool]] Information</h2>
;Maximum Durability
;Durability
<p style="margin-left: 1.6em;">{{{durability|<Information Missing><includeonly>[[Category:Missing_information]]</includeonly>}}}</p>
<p style="margin-left: 1.6em;">{{{durability|<Information Missing><includeonly>[[Category:Missing_information]]</includeonly>}}}</p>
;Primary Function
;Primary Function
<p style="margin-left: 1.6em;">{{{primary|<Information Missing><includeonly>[[Category:Missing_information]]</includeonly>}}}</p>
<p style="margin-left: 1.6em;">{{{primary|None}}}</p>
;Secondary Function
;Secondary Function
<p style="margin-left: 1.6em;">{{{secondary|None}}}</p>{{#if:{{{other|}}}|''Other Functions'''<p style="margin-left: 1.6em;">{{{other|}}}</p>|}}{{#if:{{{damage|}}}|''Attack Damage'''<p style="margin-left: 1.6em;">{{{damage|}}}</p>|}}<includeonly>[[Category:Tools]]</includeonly><noinclude>
<p style="margin-left: 1.6em;">{{{secondary|None}}}</p><!--
-->{{#if:{{{damage|}}}|<!--TRUE-->'''Attack Damage'''<p style="margin-left: 1.6em;">{{{damage|}}}</p>|<!--FALSE-->}}<!--
-->{{#if:{{{velocity|}}}|<!--TRUE-->'''Projectile Velocity'''<p style="margin-left: 1.6em;">{{{velocity|}}}&nbsp;m/s</p>|<!--FALSE-->}}<!-- 0.6.3, not showing in 0.6.4+
-->{{#if:{{{cost|}}}|<!--TRUE-->{{{cost|}}}|<!--FALSE-->}}<!--
-->{{#if:{{{effects|}}}|<!--TRUE-->'''Effect(s)'''<p style="margin-left: 1.6em;">{{{effects|}}}</p>|<!--FALSE-->}}<!--
-->{{#if:{{{multipletargets|}}}|<!--TRUE-->'''Can Attack Multiple Targets In A Single Swing'''<p style="margin-left: 1.6em;">{{{multipletargets|}}}</p>|<!--FALSE-->}}<!--
-->{{#if:{{{other|}}}|<!--TRUE-->'''Other Information'''<p style="margin-left: 1.6em;">{{{other|}}}</p>|<!--FALSE-->}}<!--


--><includeonly>{{#if:{{{nocat|}}}|<!--TRUE-->|<!--FALSE-->[[Category:Tools and Weapons]]}}</includeonly><noinclude>
==Usage==
==Usage==
The Tool/Functions template is meant to be used for tools and weapons. It describes the actions that can be performed by these items.
The Tool/Functions template is meant to be used for tools and weapons. It describes the actions that can be performed by these items.
<pre>{{Tool
<pre>{{Tool
|durability=<Number of actions?>
|durability=<Number of actions?>
|primary=<List of actions?>
|primary=<List of actions>
|secondary=<List of actions>
|secondary=<List of actions>
|other=<List of actions>
|other=<List of actions>
|damage=<Amount>
|damage=<Amount>
|velocity=<Number>
|effects=<EffectName: RelevantInformation>
|cost=<stat cost(s)>
|multipletargets=<truefalse>
}}</pre>
}}</pre>
*The code above can be pasted into your page and edited.
*The code above can be pasted into your page and edited.
*Any of the attributes can be left out entirely and they will use their default value. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
*Any of the attributes can be left out entirely and they will use their default value or not be displayed. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
*Templates adds Category:Tools. Category:Missing_information is added conditionally.
*Templates adds [[:Category:Tools and Weapons]]. [[:Category:Missing_information]] is added conditionally.
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 12:47, 12 September 2018

Tool Information

Durability

<Information Missing>

Primary Function

None

Secondary Function

None

Usage

The Tool/Functions template is meant to be used for tools and weapons. It describes the actions that can be performed by these items.

{{Tool
|durability=<Number of actions?>
|primary=<List of actions>
|secondary=<List of actions>
|other=<List of actions>
|damage=<Amount>
|velocity=<Number>
|effects=<EffectName: RelevantInformation>
|cost=<stat cost(s)>
|multipletargets=<truefalse>
}}
  • The code above can be pasted into your page and edited.
  • Any of the attributes can be left out entirely and they will use their default value or not be displayed. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
  • Templates adds Category:Tools and Weapons. Category:Missing_information is added conditionally.

ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.