Template:Crafting Blueprint: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
-->{{#if:{{{amount|}}}|<!--TRUE-->'''Amount Produced'''<br/><p style="margin-left: 1.6em;">{{{amount}}}&nbsp;item(s)</p>}}<!--
-->{{#if:{{{amount|}}}|<!--TRUE-->'''Amount Produced'''<br/><p style="margin-left: 1.6em;">{{{amount}}}&nbsp;item(s)</p>}}<!--
-->{{#if:{{{craftingtime|}}}|<!--TRUE-->'''Crafting Time'''<br/><p style="margin-left: 1.6em;">{{{craftingtime|}}}&nbsp;second(s)</p>}}<!--
-->{{#if:{{{craftingtime|}}}|<!--TRUE-->'''Crafting Time'''<br/><p style="margin-left: 1.6em;">{{{craftingtime|}}}&nbsp;second(s)</p>}}<!--
-->{{#if:{{#pos:{{{craftedby}}}|Player}}|<!--TRUE-->[[Category:Crafted By Player]]}}<!--
-->{{#if:{{#pos:{{{craftedby}}}|Campfire}}|<!--TRUE-->[[Category:Cooked By Campfire]]}}<!--
-->{{#if:{{#pos:{{{craftedby}}}|Oven}}|<!--TRUE-->[[Category:Cooked By Oven]]}}<!--
-->[[Category:Crafting/Products]]</includeonly><noinclude>
-->[[Category:Crafting/Products]]</includeonly><noinclude>
==Usage==
==Usage==
Line 24: Line 19:
*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.
*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 the following templates :conditionally:
*Templates adds [[:Category:Crafting/Products]].
**[[:Category:Crafted By Player]]
**[[:Category:Cooked By Campfire]]
**[[:Category:Cooked By Oven]]
{{:Template Ordering}}
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 13:49, 16 April 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>
}}
  • 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.

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