Template:Infobox species: Difference between revisions
Appearance
Admin Jeremy (talk | contribs) No edit summary |
Admin Jeremy (talk | contribs) No edit summary |
||
| Line 6: | Line 6: | ||
|- | |- | ||
| colspan="2" class="infobox-section infobox-journal-cell" | | | colspan="2" class="infobox-section infobox-journal-cell" | | ||
{{{journal_entry|}}} | {{#if:{{{journal_vp1|}}}{{{journal_tip|}}}{{{journal_pp|}}} | ||
| <!-- Version-aware journals --> | |||
{{#ifexpr: | |||
{{#if:{{{journal_vp1|}}}|1|0}} + | |||
{{#if:{{{journal_tip|}}}|1|0}} + | |||
{{#if:{{{journal_pp|}}}|1|0}} | |||
> 1 | |||
| | |||
<div class="vp-journal-tabs"> | |||
{{#if:{{{journal_vp1|}}}|<input type="radio" name="vpj-{{{name}}}" id="vpj-vp1-{{{name}}}" checked>}} | |||
{{#if:{{{journal_tip|}}}|<input type="radio" name="vpj-{{{name}}}" id="vpj-tip-{{{name}}}">}} | |||
{{#if:{{{journal_pp|}}}|<input type="radio" name="vpj-{{{name}}}" id="vpj-pp-{{{name}}}">}} | |||
<div class="vp-journal-tablabels"> | |||
{{#if:{{{journal_vp1|}}}|<label for="vpj-vp1-{{{name}}}">Viva Piñata</label>}} | |||
{{#if:{{{journal_tip|}}}|<label for="vpj-tip-{{{name}}}">Trouble in Paradise</label>}} | |||
{{#if:{{{journal_pp|}}}|<label for="vpj-pp-{{{name}}}">Pocket Paradise</label>}} | |||
</div> | |||
<div class="vp-journal-content"> | |||
{{#if:{{{journal_vp1|}}}|<div class="vp-journal-panel vp1">{{{journal_vp1}}}</div>}} | |||
{{#if:{{{journal_tip|}}}|<div class="vp-journal-panel tip">{{{journal_tip}}}</div>}} | |||
{{#if:{{{journal_pp|}}}|<div class="vp-journal-panel pp">{{{journal_pp}}}</div>}} | |||
</div> | |||
</div> | |||
| | |||
<!-- Only one version present → show it directly --> | |||
{{{journal_vp1|{{{journal_tip|{{{journal_pp|}}}}}}}} | |||
}} | |||
| | |||
<!-- No versioned params → legacy behavior --> | |||
{{{journal_entry|}}} | |||
}} | |||
|- | |- | ||
| class="infobox-section infobox-label-cell" | <span class="infobox-label">Level</span> | | class="infobox-section infobox-label-cell" | <span class="infobox-label">Level</span> | ||
| Line 35: | Line 67: | ||
"candy": {"label": "Candy origin", "description": "Type of candy it's named after", "type": "string"}, | "candy": {"label": "Candy origin", "description": "Type of candy it's named after", "type": "string"}, | ||
"attack_object": {"label": "Attack object", "description": "Object used when fighting or attacking", "type": "string"}, | "attack_object": {"label": "Attack object", "description": "Object used when fighting or attacking", "type": "string"}, | ||
" | "journal_vp1": { | ||
"label": "Journal entry", | "label": "Journal entry (Viva Piñata)", | ||
" | "type": "string" | ||
}, | |||
"journal_tip": { | |||
"label": "Journal entry (Trouble in Paradise)", | |||
"type": "string" | |||
}, | |||
"journal_pp": { | |||
"label": "Journal entry (Pocket Paradise)", | |||
"type": "string" | "type": "string" | ||
} | } | ||
Revision as of 21:23, 21 January 2026
| Piñata | |
|---|---|
| [[File:|250px|center|{{{name}}}]] | |
| Level | |
| Base Value | chocolate coins |
| Animal | |
| Candy | |
| Attack Object | |
Infobox for a piñata species
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Piñata name | name | Species name of the piñata | String | required |
| Image filename | image | Image file of the piñata (without 'File:') | String | optional |
| Level | level | Species level (1–11) | Number | optional |
| Base value | base_value | Value in Chocolate Coins | Number | optional |
| Real animal | real_animal | Real-life animal the piñata is based on | String | optional |
| Candy origin | candy | Type of candy it's named after | String | optional |
| Attack object | attack_object | Object used when fighting or attacking | String | optional |
| Journal entry (Viva Piñata) | journal_vp1 | no description | String | optional |
| Journal entry (Trouble in Paradise) | journal_tip | no description | String | optional |
| Journal entry (Pocket Paradise) | journal_pp | no description | String | optional |