Jump to content

Template:Infobox species: Difference between revisions

From Piñata Journal
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Infobox generic/styles.css" />
{| class="infobox infobox-species"
{| class="infobox infobox-species"
|-
|-
Line 6: Line 7:
|-
|-
| colspan="2" class="infobox-section infobox-journal-cell" |
| colspan="2" class="infobox-section infobox-journal-cell" |
{{#if:{{{journal_vp1|}}}{{{journal_tip|}}}{{{journal_pp|}}}|
<!-- NEW MULTI-JOURNAL PATH -->
{{#ifexpr:
{{#if:{{{journal_vp1|}}}|1|0}}+
{{#if:{{{journal_tip|}}}|1|0}}+
{{#if:{{{journal_pp|}}}|1|0}}
>1
|
<div class="vp-journal-multi">
{{#if:{{{journal_tip|}}}|
<details class="vp-journal-block" open>
<summary>Trouble in Paradise</summary>
<div class="vp-journal-text">
{{{journal_tip}}}
</div>
</details>
}}
{{#if:{{{journal_vp1|}}}|
<details class="vp-journal-block">
<summary>Viva Piñata</summary>
<div class="vp-journal-text">
{{{journal_vp1}}}
</div>
</details>
}}
{{#if:{{{journal_pp|}}}|
<details class="vp-journal-block">
<summary>Pocket Paradise</summary>
<div class="vp-journal-text">
{{{journal_pp}}}
</div>
</details>
}}
</div>
|
<!-- SINGLE-JOURNAL PATH (backward compatible) -->
{{{journal_vp1|{{{journal_tip|{{{journal_pp|}}}}}}}}
}}
|
<!-- LEGACY PARAM -->
{{{journal_entry|}}}
{{{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 81:
     "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_entry": {
"journal_vp1": {
   "label": "Journal entry",
   "label": "Journal entry (Viva Piñata)",
   "description": "Journal entry displayed under the image",
   "type": "string"
},
"journal_tip": {
  "label": "Journal entry (Trouble in Paradise)",
  "type": "string"
},
"journal_pp": {
  "label": "Journal entry (Pocket Paradise)",
   "type": "string"
   "type": "string"
}
}

Latest revision as of 11:09, 25 January 2026

Piñata
[[File:|250px|center|{{{name}}}]]
Level
Base Value chocolate coins
Animal
Candy
Attack Object

Infobox for a piñata species

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Piñata namename

Species name of the piñata

Stringrequired
Image filenameimage

Image file of the piñata (without 'File:')

Stringoptional
Levellevel

Species level (1–11)

Numberoptional
Base valuebase_value

Value in Chocolate Coins

Numberoptional
Real animalreal_animal

Real-life animal the piñata is based on

Stringoptional
Candy origincandy

Type of candy it's named after

Stringoptional
Attack objectattack_object

Object used when fighting or attacking

Stringoptional
Journal entry (Viva Piñata)journal_vp1

no description

Stringoptional
Journal entry (Trouble in Paradise)journal_tip

no description

Stringoptional
Journal entry (Pocket Paradise)journal_pp

no description

Stringoptional