Jump to content

Template:Infobox species: Difference between revisions

From Piñata Journal
No edit summary
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_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"
}
}

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

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