Template:MechanicalSource: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>Mechanical [[:Category:Mechanical_Blocks/Power_Sources|Source]]</h2>
;Maximum Power Output
;Maximum Power Output
<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-->}}<!--
;Connection Direction(s)
-->{{#if:{{{othervalue|}}}|<!--TRUE--><p style="margin-left: 1.6em;"><br/>{{{othervalue}}}</p>|<!--FALSE-->}} <includeonly>[[Category:Mechanical_Blocks]]</includeonly><noinclude><!--
<p style="margin-left: 1.6em;">{{{connectiondirections|<Information Missing>}}}{{#if:{{{connectiondirections|}}}|<!--TRUE-->|<!--FALSE--><includeonly>[[Category:Missing_information]]</includeonly>}}</p><!--
-->{{#if:{{{otherlabel|}}}|<!--TRUE-->;{{{otherlabel}}}<p style="margin-left: 1.6em;">{{{othervalue}}}</p>|<!--FALSE-->}}<!--


-->==Usage==
--><includeonly>[[Category:Mechanical_Blocks]][[Category:Mechanical_Blocks/Power_Sources]]</includeonly><noinclude><!--
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.
 
<pre>{{Block
-->
==Usage==
The MechanicalSource template is meant to be used for mechanical blocks that provide power to a mechanical system. Each power source block has a connection point that is oriented Forward, Backward, Up, Down, Left or Right. Because power sources have unique values based on their function, an extra label and value have been added to make formatting easier.
<pre>{{MechanicalSource
|power=<MaxPowerOutput?>
|power=<MaxPowerOutput?>
|connectiondirections=<listofdirection?>
|otherlabel=<label>
|otherlabel=<label>
|othervalue=<value>
|othervalue=<value>
Line 13: 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 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.
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 12:37, 12 September 2018

Mechanical Source

Maximum Power Output

<Information Missing>

Connection Direction(s)

<Information Missing>

Usage

The MechanicalSource template is meant to be used for mechanical blocks that provide power to a mechanical system. Each power source block has a connection point that is oriented Forward, Backward, Up, Down, Left or Right. Because power sources have unique values based on their function, an extra label and value have been added to make formatting easier.

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

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