Template:Crafting Blueprint: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
(Added usage, category, and information missing defaults)
mNo edit summary
 
(56 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>Craftable Item</h2>
<includeonly>{{#ifeq:{{{hideheading|}}}|True|<!--TRUE--><br/>|<!--FALSE--><h2>[[:Category:Crafting/Products|Crafting]] Recipe{{#if:{{{recipenumber|}}}|<!--TRUE-->&nbsp;{{{recipenumber}}}}}</h2>}}
;Crafted by Block or Player
{{#if:{{{craftedby|}}}|<!--TRUE-->'''Crafted By (Any)'''<br/><p style="margin-left: 1.6em;">{{{craftedby}}}</p>}}<!--
: {{{craftedby|Player}}}
-->{{#if:{{{researchrequired|}}}|<!--TRUE-->'''Required Research (Any)'''<br/><p style="margin-left: 1.6em;">{{{researchrequired}}}</p>}}<!--
;Research Required to Craft
-->{{#if:{{{itemsrequired|}}}|<!--TRUE-->'''Required Items'''<br/><p style="margin-left: 1.6em;">{{{itemsrequired}}}</p>}}<!--
: {{{researchrequired|None}}}
-->'''Amount Produced'''<br/><p style="margin-left: 1.6em;">{{#if:{{{amount|}}}|<!--TRUE-->{{{amount}}}&nbsp;items|1&nbsp;item}}</p><!--
;Items Required to Craft
-->{{#if:{{{craftingtime|}}}|<!--TRUE-->'''Crafting Time'''<br/><p style="margin-left: 1.6em;">{{{craftingtime|}}}&nbsp;second(s)</p>}}<!--
: {{{itemsrequired|?}}}<noinclude>


-->{{#if:{{#pos:{{{craftedby}}}|Player}}|<!--TRUE-->[[Category:Crafted By Player]]}}<!--
-->[[Category:Crafting/Products]]</includeonly><noinclude>
==Usage==
==Usage==
<pre>
The Crafting Blueprint template is meant to be used by the items in the crafting menus. This includes items in player crafting, crafting blocks, and toolheads.
{{Crafting_Blueprint|craftedby=<Player or name of block>|researchrequired=<List of schematics>|itemsrequired=<List of items?>}}
<pre>{{Crafting_Blueprint
</pre>
|hideheading=<True to hide the heading>
 
|recipenumber=<Number when more than one recipe>
*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.
|craftedby=<Player/Block/Toolhead>
|researchrequired=<List of schematics>
|amount=<Number>
|craftingtime=<Number>
|itemsrequired=<List of items>
}}</pre>
*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.
*Templates adds [[:Category:Crafting/Products]], and adds [[:Category:Crafted By Player]] conditionally.
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 12:27, 12 September 2018

Usage

The Crafting Blueprint template is meant to be used by the items in the crafting menus. This includes items in player crafting, crafting blocks, and toolheads.

{{Crafting_Blueprint
|hideheading=<True to hide the heading>
|recipenumber=<Number when more than one recipe>
|craftedby=<Player/Block/Toolhead>
|researchrequired=<List of schematics>
|amount=<Number>
|craftingtime=<Number>
|itemsrequired=<List of items>
}}

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