Template:RequirementBox: Difference between revisions
Admin Jeremy (talk | contribs) (Created page with "<includeonly> {{PinataRequirements/GameBox | title = {{{title}}} | game = {{{game|}}} | state = {{{state|}}} | content = <div class="vp-requirements"> {{#if:{{{appear|}}}| {{PinataRequirements/Category | title = Appear | list = {{{appear}}} }} }} {{#if:{{{visit|}}}| {{PinataRequirements/Category | title = Visit | list = {{{visit}}} }} }} {{#if:{{{resident|}}}| {{PinataRequirements/Category | t...") |
Admin Jeremy (talk | contribs) No edit summary |
||
| Line 39: | Line 39: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"description": "Unified Viva Piñata requirements box with collapsible game header.", | |||
"params": { | |||
"title": { | |||
"label": "Game title", | |||
"type": "string", | |||
"required": true, | |||
"example": "Viva Piñata" | |||
}, | |||
"game": { | |||
"label": "Game code", | |||
"type": "string", | |||
"required": false, | |||
"example": "vp1", | |||
"description": "vp1 = Classic, tip = Trouble in Paradise, pp = Pocket Paradise" | |||
}, | |||
"state": { | |||
"label": "Collapsed by default", | |||
"type": "string", | |||
"required": false, | |||
"example": "mw-collapsed", | |||
"description": "Leave empty to expand by default" | |||
}, | |||
"appear": { | |||
"label": "Appear requirements", | |||
"type": "content", | |||
"required": false, | |||
"example": "* [[File:Dirt_icon.png]] Have 10 square pinometers of soil" | |||
}, | |||
"visit": { | |||
"label": "Visit requirements", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"resident": { | |||
"label": "Resident requirements", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"romance": { | |||
"label": "Romance requirements", | |||
"type": "content", | |||
"required": false | |||
}, | |||
"tricks": { | |||
"label": "Trick requirements", | |||
"type": "content", | |||
"required": false | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Revision as of 23:50, 2 January 2026
Unified Viva Piñata requirements box with collapsible game header.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Game title | title | no description
| String | required |
| Game code | game | vp1 = Classic, tip = Trouble in Paradise, pp = Pocket Paradise
| String | optional |
| Collapsed by default | state | Leave empty to expand by default
| String | optional |
| Appear requirements | appear | no description
| Content | optional |
| Visit requirements | visit | no description | Content | optional |
| Resident requirements | resident | no description | Content | optional |
| Romance requirements | romance | no description | Content | optional |
| Trick requirements | tricks | no description | Content | optional |