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
m (Template:Mechanism moved to Template:Machine component: Renamed to conform to name of option in build menu.)
(Use parser functions to stop the display of sections that are not needed if they are provided no value. Added calculation of net power.)
Line 11: Line 11:
 
| style="width: 50%" |
 
| 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="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="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
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Construction
 
|-
 
|-
Line 29: Line 29:
 
|-
 
|-
 
| colspan="2" style="padding: 0.25em" |
 
| colspan="2" style="padding: 0.25em" |
* Power Generated: {{{power_gen|0}}}
+
{|
* Power Needed: {{{power_need|0}}}
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Materials Used
 
|-
 
| colspan="2" style="padding: 0.25em" |
 
{{{use|}}}
 
 
|-
 
|-
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Goods Created
+
| Power Generated
 +
| {{{power_gen|0}}}
 
|-
 
|-
| colspan="2" style="padding: 0.25em" |
+
| Power Needed
{{{production|}}}
+
| {{{power_need|0}}}
 +
|-
 +
| Net Power
 +
| {{#expr:{{{power_gen|0}}} - {{{power_need|0}}}}}
 
|}
 
|}
 +
|{{#if:{{{use|}}}|-
 +
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Materials Used
 +
{{!}}-
 +
{{!}} colspan="2" style="padding: 0.25em" {{!}}
 +
{{{use}}}
 +
{{!}}}}{{#if:{{{production|}}}|-
 +
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Goods Created
 +
{{!}}-
 +
{{!}} colspan="2" style="padding: 0.25em" {{!}}
 +
{{{production}}}
 +
{{!}}}}}
 
<noinclude>
 
<noinclude>
  
Line 65: Line 74:
 
== Example ==
 
== Example ==
  
{{Mechanism|name=Screw pump|key=s|job=[[Pump_operator]]
+
{{Machine_component|name=Screw pump|key=s|job=[[Pump_operator]]
 
|construction=
 
|construction=
 
* [[Enormous corkscrew]]
 
* [[Enormous corkscrew]]

Revision as of 17:57, 22 January 2008

{{{name}}}
b-M-{{{key}}}
{{Floor Plan {{{name}}}}}
Construction
Materials Jobs

{{{construction}}}

{{{construction_job}}}

Power
Power Generated 0
Power Needed 0
Net Power 0


Usage

{{Mechanism|name=Screw pump|key=s|job=[[Pump_operator]]
|construction=
* [[Enormous corkscrew]]
* [[Pipe]]
*1 of
** [[Stone block]]
** [[Glass block]]
** [[Wood block]]
|construction_job=
* [[Architecture]]
* 1 of
** [[Carpentry]]
** [[Masonry]]
|power_need=10
}}

Example

Screw pump
b-M-s
X
X
Job Requirement
Pump_operator
Construction
Materials Jobs
Power
Power Generated 0
Power Needed 10
Net Power -10