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"
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" | + | ! 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 | ! 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}}} |
+ | |- | ||
+ | | 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 == | ||
− | {{ | + | {{Machine_component|name=Screw pump|key=s|job=[[Pump_operator]] |
|construction= | |construction= | ||
* [[Enormous corkscrew]] | * [[Enormous corkscrew]] |
Revision as of 17:57, 22 January 2008
b-M-{{{key}}} | |||||||
| |||||||
Construction | |||||||
---|---|---|---|---|---|---|---|
Materials | Jobs | ||||||
{{{construction}}} |
{{{construction_job}}} | ||||||
Power | |||||||
|
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
b-M-s | |||||||
| |||||||
Job Requirement | |||||||
---|---|---|---|---|---|---|---|
Pump_operator | |||||||
Construction | |||||||
Materials | Jobs | ||||||
| |||||||
Power | |||||||
|