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
(no reason why machine components can't have a Picture too)
(unfortunately, the infobox templates don't allow for this sort of customization)
Line 1: Line 1:
{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0 0 0.5em 0.5em; border-spacing: 0; width: 17em"
+
{{infostart|{{{name}}}}}
|+ style="font-weight: bold" |{{{name}}}
+
{{infocell|{{#if:{{{key|}}}|{{k|b}}-{{k|M}}-{{k|{{{key}}}}}}}{{#if:{{{keytext|}}}|{{{keytext}}}}}}}
|-
+
{{infocell|{{Building/picture|{{{name}}}}}}}
| colspan="2" style="text-align: center" | {{ #if:{{{key|}}}|{{k|b}}-{{k|M}}-{{k|{{{key}}}}} }}{{ #if:{{{keytext|}}}|{{{keytext}}} }}
+
{{#if:{{{job|}}}|{{infoheader|Job Requirement}}
|-
+
{{infocell|{{{job|}}}}}}}
| colspan="2" |
+
{{infoheader|Construction}}
{|
 
|-
 
| style="width: 50%" |
 
||{{#ifexist: template:Picture {{{name}}}|{{Picture {{{name}}}}}}}
 
||{{#ifexist: template:Floor Plan {{{name}}}|{{Floor Plan {{{name}}}}}}}
 
| style="width: 50%" |
 
|}
 
|{{#if:{{{job|}}}|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Job Requirement
 
{{!}}-
 
{{!}} colspan="2" style="padding: 0.25em" {{!}} {{{job}}}
 
{{!}}}}-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Construction
 
 
|-
 
|-
 
! style="text-align: left; padding: 0.2em 0.25em 0; width: 50%; border-right: 1px solid #aaa" | Materials
 
! style="text-align: left; padding: 0.2em 0.25em 0; width: 50%; border-right: 1px solid #aaa" | Materials
Line 26: Line 13:
 
| style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top" |
 
| style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top" |
 
{{{construction_job}}}
 
{{{construction_job}}}
|-
+
{{infoheader|Power}}
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Power
+
{{infocell|{{{power|}}}}}
|-
+
{{infoend}}<noinclude>
| colspan="2" style="text-align: center; padding: 0.25em" | {{{power}}}
 
|}<noinclude>
 
  
 
<br clear="all" />
 
<br clear="all" />

Revision as of 20:03, 21 May 2010

{{{name}}}
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.
}}

Example

Screw pump

b-M-s

Job Requirement

Pump operator

Construction
Materials Jobs
Power

Needs 10 power.