Template:MechanicalToolhead: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) mNo edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq:{{{hideheading|}}}|True|<!--TRUE--><br/>|<!--FALSE--><h2>Mechanical [[:Category:Mechanical_Blocks/Toolheads|Toolhead]]</h2>}}<!-- | |||
-->{{#if:{{{recipename|}}}|<!--TRUE-->< | -->{{#if:{{{recipename|}}}|<!--TRUE--><h3>{{{recipename}}}</h3>|<!--FALSE-->}}<!-- | ||
-->'''Items Produced'''<br /><!-- | |||
-->{{#if:{{{itemsproduced|}}}|<!--TRUE--><p style="margin-left: 1.6em;">{{{itemsproduced}}}</p>|<!-- | |||
FALSE--><p style="margin-left: 1.6em;"><Missing Information><includeonly>[[Category:Missing_information]]</includeonly></p>}}<!-- | |||
-->'''Items Required'''<br /><!-- | -->'''Items Required'''<br /><!-- | ||
-->{{#if:{{{itemsrequired|}}}|<!--TRUE--><p style="margin-left: 1.6em;">{{{itemsrequired}}}</p> | -->{{#if:{{{itemsrequired|}}}|<!--TRUE--><p style="margin-left: 1.6em;">{{{itemsrequired}}}</p>|<!-- | ||
FALSE--><p style="margin-left: 1.6em;"><Missing Information><includeonly>[[Category:Missing_information]]</includeonly></p>}}<!-- | |||
-->'''Time Required to Craft'''<br /><!-- | -->'''Time Required to Craft'''<br /><!-- | ||
-->{{#if:{{{craftingtime|}}}|<!--TRUE--><p style="margin-left: 1.6em;">{{{craftingtime|}}} second(s)</p> | -->{{#if:{{{craftingtime|}}}|<!--TRUE--><p style="margin-left: 1.6em;">{{{craftingtime|}}} second(s)</p>|<!-- | ||
FALSE--><p style="margin-left: 1.6em;"><Missing Information><includeonly>[[Category:Missing_information]]</includeonly></p>}}<!-- | |||
-->[[Category:Mechanical_Blocks/Toolheads]]</includeonly><noinclude> | --><includeonly>[[Category:Mechanical_Blocks/Toolheads]]</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
The MechanicalToolhead template is meant to be used by toolhead items. Use the ''hideheading'' variable to add more than one recipe. | The MechanicalToolhead template is meant to be used by toolhead items. Use the ''hideheading'' variable to add more than one recipe. | ||
<pre>{{ | <pre>{{MechanicalToolhead | ||
|hideheading=<True to hide | |hideheading=<True to hide> | ||
|recipename=<name> | |recipename=<name> | ||
|itemsrequired=<items?> | |itemsrequired=<list of items?> | ||
|itemsproduced=<items?> | |itemsproduced=<list of items?> | ||
|craftingtime=< | |craftingtime=<seconds?> | ||
}}</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 be ignored or not displayed at all. 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 be ignored or not displayed at all. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in. | ||
*Templates adds [[:Category:Mechanical_Blocks/Toolheads]]. | *Templates adds [[:Category:Mechanical_Blocks/Toolheads]]. | ||
{{:Template Ordering}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 12:37, 12 September 2018
Mechanical Toolhead
Items Produced
<Missing Information>
Items Required
<Missing Information>
Time Required to Craft
<Missing Information>
Usage
The MechanicalToolhead template is meant to be used by toolhead items. Use the hideheading variable to add more than one recipe.
{{MechanicalToolhead |hideheading=<True to hide> |recipename=<name> |itemsrequired=<list of items?> |itemsproduced=<list of items?> |craftingtime=<seconds?> }}
- The code above can be pasted into your page and edited.
- Any of the attributes can be left out entirely and they will be ignored or not displayed at all. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
- Templates adds Category:Mechanical_Blocks/Toolheads.
ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.