A Wiki in the Desert
Log in

Difference between revisions of "Template:Laboratory"

From A Wiki in the Desert
m (Removed construction site from infobox)
 
(24 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
| ibname  = {{{name|{{FULLPAGENAME}}}}}
 
| ibname  = {{{name|{{FULLPAGENAME}}}}}
 
| ibtype  = {{FULLPAGENAME}}
 
| ibtype  = {{FULLPAGENAME}}
| image  = {{#if: {{{image|}}} | {{{image|}}} }}
+
| image  = Building - Laboratory.png
 +
| content =
 +
{{ #if:{{{location|}}} |
 +
{{#invoke:Infobox|stacked|Location|{{{location|}}} }}
 
}}
 
}}
{{#set: Has location={{{location}}}}}{{#set: Has name={{{name|{{FULLPAGENAME}}}}}}}{{#set: Has house={{{house}}}}}
+
{{#invoke:Infobox|stacked|Level|{{{level|1}}} }}
 +
{{#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>
{{Documentation}}
 
[[Category:Laboratories]]
 
 
[[Category:Content templates]]
 
[[Category:Content templates]]
</noinclude>
+
<templatedata>
 +
{
 +
"params": {
 +
"name": {
 +
"label": "Name",
 +
"description": "A descriptive name of the lab",
 +
"example": "Amigos 1",
 +
"type": "string",
 +
"required": true
 +
},
 +
"location": {
 +
"label": "Location",
 +
"description": "This should be defined with the location template",
 +
"example": "{{Location | 1000 | -2000}}",
 +
"type": "wiki-template-name",
 +
"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"
 +
}
 +
},
 +
"description": "This template defines a laboratory built in the world. Should be on a page named Laboratory/<Number>."
 +
}
 +
</templatedata></noinclude>

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>.

Template parameters

ParameterDescriptionTypeStatus
Namename

A descriptive name of the lab

Example
Amigos 1
Stringrequired
Locationlocation

This should be defined with the location template

Example
{{Location | 1000 | -2000}}
Templatesuggested
Levellevel

The level of the lab

Auto value
1
Numberoptional
Househouse

The house that this laboratory belongs to

Auto value
Unknownsuggested
Statusstatus

Condition that describes whether the Lab can process pips or is offline

Example
Online or Upgrading
Auto value
Online
Stringoptional