Template:Production/Doc: Difference between revisions
Jump to navigation
Jump to search
(Documentation!) |
(Removed TL.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
<nowiki>| Building = </nowiki> | <nowiki>| Building = </nowiki> | ||
<nowiki>| Produces = </nowiki> | <nowiki>| Produces = </nowiki> | ||
<nowiki>| Consumed =</nowiki> | <nowiki>| Consumed =</nowiki> | ||
<nowiki>* </nowiki> | <nowiki>* </nowiki> | ||
Line 26: | Line 25: | ||
* Building = <nowiki>{{{PAGENAME}}}</nowiki> | * Building = <nowiki>{{{PAGENAME}}}</nowiki> | ||
* Produces = <nowiki>{{{PAGENAME}}}</nowiki> | * Produces = <nowiki>{{{PAGENAME}}}</nowiki> | ||
==Minimal Example== | ==Minimal Example== | ||
Line 33: | Line 31: | ||
<nowiki>| Building = </nowiki> | <nowiki>| Building = </nowiki> | ||
<nowiki>| Produces = (Example Item)</nowiki> | <nowiki>| Produces = (Example Item)</nowiki> | ||
<nowiki>| Consumed =</nowiki> | <nowiki>| Consumed =</nowiki> | ||
<nowiki>| Required =</nowiki> | <nowiki>| Required =</nowiki> | ||
Line 41: | Line 38: | ||
<nowiki>| Building = (Example Building)</nowiki> | <nowiki>| Building = (Example Building)</nowiki> | ||
<nowiki>| Produces = </nowiki> | <nowiki>| Produces = </nowiki> | ||
<nowiki>| Consumed =</nowiki> | <nowiki>| Consumed =</nowiki> | ||
<nowiki>| Required =</nowiki> | <nowiki>| Required =</nowiki> | ||
Line 51: | Line 47: | ||
| Building = | | Building = | ||
| Produces = (Example Item) | | Produces = (Example Item) | ||
| Consumed = | | Consumed = | ||
| Required = | | Required = | ||
Line 59: | Line 54: | ||
| Building = (Example Building) | | Building = (Example Building) | ||
| Produces = | | Produces = | ||
| Consumed = | | Consumed = | ||
| Required = | | Required = | ||
Line 68: | Line 62: | ||
==Full Example== | ==Full Example== | ||
<nowiki>{{ProductionHeader}}</nowiki> | <nowiki>{{ProductionHeader}}</nowiki> | ||
<nowiki>{{ProductionEntry</nowiki> | |||
<nowiki>| Building = [[Refinery]]</nowiki> | |||
<nowiki>| Produces = 10 [[Petrochemicals]]</nowiki> | |||
<nowiki>| Consumed =</nowiki> | |||
<nowiki>* 10 [[Oil]]</nowiki> | |||
<nowiki>| Required =</nowiki> | |||
<nowiki>| Optional =</nowiki> | |||
<nowiki>* [[Computer]] (+ output)</nowiki> | |||
<nowiki>* [[Electricity]] (- time)</nowiki> | |||
<nowiki>}}</nowiki> | |||
<nowiki>{{ProductionEntry</nowiki> | <nowiki>{{ProductionEntry</nowiki> | ||
<nowiki>| Building = [[Refinery]]</nowiki> | <nowiki>| Building = [[Refinery]]</nowiki> | ||
<nowiki>| Produces = 10 [[Water]]</nowiki> | <nowiki>| Produces = 10 [[Water]]</nowiki> | ||
<nowiki>| Consumed =</nowiki> | <nowiki>| Consumed =</nowiki> | ||
<nowiki>* 10 [[Air]]</nowiki> | <nowiki>* 10 [[Air]]</nowiki> | ||
Line 78: | Line 81: | ||
<nowiki>* [[Electricity]]</nowiki> | <nowiki>* [[Electricity]]</nowiki> | ||
<nowiki>| Optional =</nowiki> | <nowiki>| Optional =</nowiki> | ||
<nowiki>* [[Computer]] (+ output)</nowiki> | <nowiki>* [[Computer]] (+ output)</nowiki> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
<nowiki>{{ProductionFooter}}</nowiki> | <nowiki>{{ProductionFooter}}</nowiki> | ||
{{ProductionHeader}} | {{ProductionHeader}} | ||
{{ProductionEntry | |||
| Building = [[Refinery]] | |||
| Produces = 10 [[Petrochemicals]] | |||
| Consumed = | |||
* 10 [[Oil]] | |||
| Required = | |||
| Optional = | |||
* [[Computer]] (+ output) | |||
* [[Electricity]] (- time) | |||
}} | |||
{{ProductionEntry | {{ProductionEntry | ||
| Building = [[Refinery]] | | Building = [[Refinery]] | ||
| Produces = 10 [[Water]] | | Produces = 10 [[Water]] | ||
| Consumed = | | Consumed = | ||
* 10 [[Air]] | * 10 [[Air]] | ||
Line 96: | Line 107: | ||
}} | }} | ||
{{ProductionFooter}} | {{ProductionFooter}} | ||
===Single Entry Example=== | |||
If only one entry is needed, it is possible to use [[Template:Production]] like this: | |||
<nowiki>{{Production</nowiki> | |||
<nowiki>| Building = [[Weapon Smith]]</nowiki> | |||
<nowiki>| Produces = 10 [[Laser Pistol]]</nowiki> | |||
<nowiki>| Consumed =</nowiki> | |||
<nowiki>* 10 [[Metal]]</nowiki> | |||
<nowiki>* 20 [[Plastic]]</nowiki> | |||
<nowiki>* 10 [[Cryo Heat Sink]]</nowiki> | |||
<nowiki>* 10 [[Gems]]</nowiki> | |||
<nowiki>* 10 [[Electronic Part]]s</nowiki> | |||
<nowiki>| Required =</nowiki> | |||
<nowiki>* [[Clamp]]</nowiki> | |||
<nowiki>* [[Screw Driver]]</nowiki> | |||
<nowiki>* [[Computer]]</nowiki> | |||
<nowiki>* [[Electricity]]</nowiki> | |||
<nowiki>| Optional =</nowiki> | |||
<nowiki>}}</nowiki> | |||
End result is the same, just no need to add header and footer. | |||
{{Production | |||
| Building = [[Weapon Smith]] | |||
| Produces = 10 [[Laser Pistol]] | |||
| Consumed = | |||
* 10 [[Metal]] | |||
* 20 [[Plastic]] | |||
* 10 [[Cryo Heat Sink]] | |||
* 10 [[Gems]] | |||
* 10 [[Electronic Part]]s | |||
| Required = | |||
* [[Clamp]] | |||
* [[Screw Driver]] | |||
* [[Computer]] | |||
* [[Electricity]] | |||
| Optional = | |||
}} |
Latest revision as of 14:24, 29 October 2017
How to use
To use this template, simply copy this into the page.
{{ProductionHeader}}
{{ProductionEntry | Building = | Produces = | Consumed = * | Required = * | Optional = * * [[Computer]] (+ output) * [[Electricity]] (- time) }}
{{ProductionFooter}}
Then fill in information as need. See the examples below.
A few of the fields can left blank to invoke the default, which is:
- Building = {{{PAGENAME}}}
- Produces = {{{PAGENAME}}}
Minimal Example
{{ProductionHeader}} {{ProductionEntry | Building = | Produces = (Example Item) | Consumed = | Required = | Optional = }} {{ProductionEntry | Building = (Example Building) | Produces = | Consumed = | Required = | Optional = }} {{ProductionFooter}}
Building | Produces | Consumed | Required | Optional |
---|---|---|---|---|
Production/Doc | (Example Item) |
|
|
|
(Example Building) | Production/Doc |
|
|
|
Full Example
{{ProductionHeader}} {{ProductionEntry | Building = [[Refinery]] | Produces = 10 [[Petrochemicals]] | Consumed = * 10 [[Oil]] | Required = | Optional = * [[Computer]] (+ output) * [[Electricity]] (- time) }} {{ProductionEntry | Building = [[Refinery]] | Produces = 10 [[Water]] | Consumed = * 10 [[Air]] * 10 [[Hydrogen]] | Required = * [[Electricity]] | Optional = * [[Computer]] (+ output) }} {{ProductionFooter}}
Building | Produces | Consumed | Required | Optional |
---|---|---|---|---|
Refinery | 10 Petrochemicals |
|
|
|
Refinery | 10 Water |
|
|
|
Single Entry Example
If only one entry is needed, it is possible to use Template:Production like this:
{{Production | Building = [[Weapon Smith]] | Produces = 10 [[Laser Pistol]] | Consumed = * 10 [[Metal]] * 20 [[Plastic]] * 10 [[Cryo Heat Sink]] * 10 [[Gems]] * 10 [[Electronic Part]]s | Required = * [[Clamp]] * [[Screw Driver]] * [[Computer]] * [[Electricity]] | Optional = }}
End result is the same, just no need to add header and footer.
Building | Produces | Consumed | Required | Optional |
---|---|---|---|---|
Weapon Smith | 10 Laser Pistol |
|
|
|