Template:MechanicalSource: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
<p style="margin-left: 1.6em;">{{{power|<Information Missing>}}}{{#if:{{{power|}}}|<!--TRUE-->|<!--FALSE--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><!--
<p style="margin-left: 1.6em;">{{{power|<Information Missing>}}}{{#if:{{{power|}}}|<!--TRUE-->|<!--FALSE--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><!--
-->{{#if:{{{otherlabel|}}}|<!--TRUE-->;{{{otherlabel}}}|<!--FALSE-->}}<!--
-->{{#if:{{{otherlabel|}}}|<!--TRUE-->;{{{otherlabel}}}|<!--FALSE-->}}<!--
-->{{#if:{{{othervalue|}}}|<!--TRUE--><p style="margin-left: 1.6em;"><br/>{{{othervalue}}}</p>|<!--FALSE-->}} <includeonly>[[Category:Mechanical_Blocks]]</includeonly><noinclude><!--
-->{{#if:{{{othervalue|}}}|<!--TRUE--><p style="margin-left: 1.6em;"><br/>{{{othervalue}}}</p>|<!--FALSE-->}}<!--
 
--><includeonly>[[Category:Mechanical_Blocks]][[Category:Mechanical_Blocks/Power_Sources]]</includeonly><noinclude><!--


-->
-->
Line 14: Line 16:
*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. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
*Templates adds [[:Category:Mechanical_Blocks]]. [[:Category:Missing_information]] is added conditionally.
*Templates adds [[:Category:Mechanical_Blocks]] and [[:Category:Mechanical_Blocks/Power_Sources]]. [[:Category:Missing_information]] is added conditionally.
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 12:45, 22 December 2017

Maximum Power Output

<Information Missing>

Usage

The MechanicalSource template is meant to be used for mechanical blocks that provide power to a mechanical system. Since power sources have unique values based on their function, an extra label and value have been added to make formatting easier.

{{MechanicalSource
|power=<MaxPowerOutput?>
|otherlabel=<label>
|othervalue=<value>
}}