Difference between revisions of "Template:Laboratory"
From A Wiki in the Desert
(20 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
| ibtype = {{FULLPAGENAME}} | | ibtype = {{FULLPAGENAME}} | ||
| image = Building - Laboratory.png | | image = Building - Laboratory.png | ||
+ | | content = | ||
+ | {{ #if:{{{location|}}} | | ||
+ | {{#invoke:Infobox|stacked|Location|{{{location|}}} }} | ||
}} | }} | ||
− | + | {{#invoke:Infobox|stacked|Level|{{{level|1}}} }} | |
− | {{#set: Has location={{{location}}}}}{{#set: Has name={{{name|{{FULLPAGENAME}}}}}}}{{#set: Has house={{{house}}}}}{{ | + | {{#invoke:Infobox|stacked|Status|{{{status|Online}}} }} |
+ | {{#invoke:Infobox|stacked|Last Updated|{{#ask: [[{{FULLPAGENAME}}]] |?Modification date#LOCL#TO=|mainlabel=-}} }} | ||
+ | }} | ||
+ | {{#set: Has location={{{location}}}}}{{#set: Has name={{{name|{{FULLPAGENAME}}}}}}}{{#set: Has house={{{house}}}}}{{#set: Has number={{#replace:{{FULLPAGENAME}}|Laboratory/|}}}}{{#set: Has level={{{level|1}}}}}{{#set: Has status={{{status|Online}}}}} | ||
[[Category:Laboratories]]</includeonly><noinclude> | [[Category:Laboratories]]</includeonly><noinclude> | ||
[[Category:Content templates]] | [[Category:Content templates]] | ||
Line 25: | Line 31: | ||
"type": "wiki-template-name", | "type": "wiki-template-name", | ||
"suggested": true | "suggested": true | ||
+ | }, | ||
+ | "level": { | ||
+ | "label": "Level", | ||
+ | "description": "The level of the lab", | ||
+ | "type": "number", | ||
+ | "autovalue": "1" | ||
+ | }, | ||
+ | "house": { | ||
+ | "label": "House", | ||
+ | "description": "The house that this laboratory belongs to", | ||
+ | "autovalue": "", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "status": { | ||
+ | "label": "Status", | ||
+ | "description": "Condition that describes whether the Lab can process pips or is offline", | ||
+ | "example": "Online or Upgrading", | ||
+ | "type": "string", | ||
+ | "autovalue": "Online" | ||
} | } | ||
}, | }, |
Latest revision as of 07:52, 24 July 2021
This template defines a laboratory built in the world. Should be on a page named Laboratory/<Number>.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | A descriptive name of the lab
| String | required |
Location | location | This should be defined with the location template
| Template | suggested |
Level | level | The level of the lab
| Number | optional |
House | house | The house that this laboratory belongs to
| Unknown | suggested |
Status | status | Condition that describes whether the Lab can process pips or is offline
| String | optional |