Template:Block: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>Block Information</h2>
<h2>[[:Category:Blocks|Block]] Information</h2>
;Size
;Size
<p style="margin-left: 1.6em;">{{{size|<Information Missing>[[Category:Missing_information]]}}}</p>
<p style="margin-left: 1.6em;">{{{size|<Information Missing>}}}{{#if:{{{size|}}}|&nbsp;Block{{#ifeq:{{{size|}}}|Large| <includeonly>[[Category:Large Blocks]]</includeonly> | <includeonly>[[Category:Small Blocks]]</includeonly> }}|<includeonly>[[Category:Missing_information]]</includeonly>}}</p>
;Dimensions
;Dimensions
<p style="margin-left: 1.6em;">{{{dims|1 x 1 x 1}}}</p>
<p style="margin-left: 1.6em;">{{{dims|1 x 1 x 1}}}</p>
;Material
;Material
<p style="margin-left: 1.6em;">{{{material|<Information Missing>[[Category:Missing_information]]}}}</p>
<p style="margin-left: 1.6em;">{{{material|<Information Missing>}}}{{#if:{{{material|}}}||<includeonly>[[Category:Missing_information]]</includeonly>}}</p><!--
;Research Required to Build
-->{{#if:{{{researchtobuild|}}}|<!--TRUE-->'''Research Required to Build'''<br/><p style="margin-left: 1.6em;">{{{researchtobuild}}}</p>}}<!--
<p style="margin-left: 1.6em;">{{{researchtobuild|None}}}</p>
-->{{#if:{{{itemsrequired|}}}|<!--TRUE-->'''Items Required to Build'''<br/><p style="margin-left: 1.6em;">{{{itemsrequired}}}</p>}}<!--
;Items Required to Build
-->{{#if:{{{mass|}}}|<!--TRUE-->'''Mass'''<br/><p style="margin-left: 1.6em;">{{{mass}}}&nbsp;kg</p>}}<!--
<p style="margin-left: 1.6em;">{{{itemsrequired|<Information Missing>[[Category:Missing_information]]}}}</p><noinclude>
-->{{#if:{{{hitpoints|}}}|<!--TRUE-->'''Hit Points'''<br/><p style="margin-left: 1.6em;">{{{hitpoints}}}&nbsp;points</p>|<!--FALSE-->}}<includeonly>[[Category:Blocks]]</includeonly><noinclude>


==Usage==
==Usage==
The Block template is meant to be used for any block.
The Block template is meant to be used for any block.
===Large Block Version:===
<pre>{{Block
<pre>{{Block
|size=<Large or Small?>
|size=<Large or Small?>
Line 18: Line 19:
|material=<Material Block is made from?>
|material=<Material Block is made from?>
|researchtobuild=<Links to research>
|researchtobuild=<Links to research>
|itemsrequired=<links to items?>}}</pre>
|itemsrequired=<links to items>
|mass=<Number>
|hitpoints=<Number>
}}</pre>
===Small Block Version:===
<pre>{{Block
|size=<Large or Small?>
|dims=<X x Y x Z>
|material=<Material Block is made from?>
}}</pre>
*The code above can be pasted into your page and edited.
*The code above can be pasted into your page and edited.
*Because small blocks are crafted they should all using the [[Template:Crafting_Blueprint|Crafting Blueprint]] template. This makes the ''research to build'' and ''items required'' fields redundant.
*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. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
*Templates adds [[:Category:Blocks]]. [[:Category:Large Blocks]], [[:Category:Small Blocks]], and [[:Category:Missing_information]] are added conditionally.
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 12:21, 12 September 2018

Block Information

Size

<Information Missing>

Dimensions

1 x 1 x 1

Material

<Information Missing>

Usage

The Block template is meant to be used for any block.

Large Block Version:

{{Block
|size=<Large or Small?>
|dims=<X x Y x Z>
|material=<Material Block is made from?>
|researchtobuild=<Links to research>
|itemsrequired=<links to items>
|mass=<Number>
|hitpoints=<Number>
}}

Small Block Version:

{{Block
|size=<Large or Small?>
|dims=<X x Y x Z>
|material=<Material Block is made from?>
}}
  • The code above can be pasted into your page and edited.
  • Because small blocks are crafted they should all using the Crafting Blueprint template. This makes the research to build and items required fields redundant.
  • 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.
  • Templates adds Category:Blocks. Category:Large Blocks, Category:Small Blocks, and Category:Missing_information are 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.