v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Machine component"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(unfortunately, the infobox templates don't allow for this sort of customization)
Line 1: Line 1:
 
{{infostart|{{{name}}}}}
 
{{infostart|{{{name}}}}}
{{infocell|{{#if:{{{key|}}}|{{k|b}}-{{k|M}}-{{k|{{{key}}}}}}}{{#if:{{{keytext|}}}|{{{keytext}}}}}}}
+
{{infocell|{{k|b}}-{{k|M}}-{{k|{{{key}}}}}|style=text-align:center}}
 
{{infocell|{{Building/picture|{{{name}}}}}}}
 
{{infocell|{{Building/picture|{{{name}}}}}}}
 
{{#if:{{{job|}}}|{{infoheader|Job Requirement}}
 
{{#if:{{{job|}}}|{{infoheader|Job Requirement}}
Line 17: Line 17:
 
{{infoend}}<noinclude>
 
{{infoend}}<noinclude>
  
<br clear="all" />
 
 
== Usage ==
 
== Usage ==
<pre><nowiki>
+
<nowiki>
 
{{Machine_component|name=Screw pump|key=s|job=[[Pump operator]]
 
{{Machine_component|name=Screw pump|key=s|job=[[Pump operator]]
 
|construction=
 
|construction=
Line 32: Line 31:
 
|power=Needs 10 power.
 
|power=Needs 10 power.
 
}}
 
}}
</nowiki></pre>
+
</nowiki>
  
== Example ==
+
[[Category:Building templates]]
 
 
{{Machine_component|name=Screw pump|key=s|job=[[Pump operator]]
 
|construction=
 
* [[Enormous corkscrew]]
 
* [[Pipe]]
 
* [[Block]]
 
|construction_job=
 
* [[Architecture]]
 
* 1 of
 
** [[Carpentry]]
 
** [[Masonry]]
 
|power=Needs 10 power.
 
}}
 
 
</noinclude>
 
</noinclude>

Revision as of 20:09, 21 May 2010

{{{name}}}

b-M-{{{key}}}

Construction
Materials Jobs

{{{construction}}}

{{{construction_job}}}

Power

Usage

{{Machine_component|name=Screw pump|key=s|job=[[Pump operator]]
|construction=
* [[Enormous corkscrew]]
* [[Pipe]]
* [[Block]]
|construction_job=
* [[Architecture]]
* 1 of
** [[Carpentry]]
** [[Masonry]]
|power=Needs 10 power.
}}