Difference between revisions of "Template:Navbox experiments"

From The Perfect Tower II
Jump to navigation Jump to search
(Created page with "{{Navbox | name = {{subst:PAGENAME}} | title = Experiments | listclass = hlist | list1 = * x30px Fire * File:Experim...")
 
(Add state param, templatedata)
Line 3: Line 3:
 
| title = Experiments
 
| title = Experiments
 
| listclass = hlist
 
| listclass = hlist
 +
| state = {{{state|}}}
 
| list1 =  
 
| list1 =  
 
* [[File:Experiment Fire icon.png|x30px]] [[Experiment: Fire|Fire]]
 
* [[File:Experiment Fire icon.png|x30px]] [[Experiment: Fire|Fire]]
Line 18: Line 19:
 
| list2 =
 
| list2 =
 
* ''Related building: [[File:Purple resource.png|x20px]] [[Laboratory]]''
 
* ''Related building: [[File:Purple resource.png|x20px]] [[Laboratory]]''
}}
+
}}<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"state": {
 +
"label": "Initial State",
 +
"description": "Whether the box should be expanded or collapsed initially.",
 +
"example": "expanded",
 +
"type": "string",
 +
"default": "autocollapse"
 +
}
 +
},
 +
"description": "Add a navbox with links to laboratory experiments",
 +
"format": "inline"
 +
}
 +
</templatedata>
 +
</noinclude>

Revision as of 02:44, 4 March 2021

Add a navbox with links to laboratory experiments

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Initial Statestate

Whether the box should be expanded or collapsed initially.

Default
autocollapse
Example
expanded
Stringoptional