Template:RequirementBox: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:RequirementBox|render
{{PinataRequirements/GameBox
  | game         = {{{game|}}}
| title = {{{title}}}
  | state       = {{{state|}}}
  | game = {{{game|}}}
  | evolve_first = {{{evolve_first|}}}
  | state = {{{state|}}}
| appear       = {{{appear|}}}
  | content =
| visit        = {{{visit|}}}
  <div class="vp-requirements">
| resident    = {{{resident|}}}
  {{#if:{{{appear|}}}|
| romance     = {{{romance|}}}
    {{PinataRequirements/Category
| tricks       = {{{tricks|}}}
      | title = Appear
| bait        = {{{bait|}}}
       | list  = {{{appear}}}
| evolve       = {{{evolve|}}}
    }}
| unblock     = {{{unblock|}}}
  }}
| mature       = {{{mature|}}}
  {{#if:{{{visit|}}}|
}}</includeonly><noinclude><templatedata>{
    {{PinataRequirements/Category
      | title = Visit
      | list  = {{{visit}}}
     }}
  }}
  {{#if:{{{resident|}}}|
    {{PinataRequirements/Category
      | title = Resident
       | list  = {{{resident}}}
    }}
  }}
  {{#if:{{{romance|}}}|
    {{PinataRequirements/Category
      | title = Romance
       | list  = {{{romance}}}
     }}
  }}
  {{#if:{{{tricks|}}}|
    {{PinataRequirements/Category
      | title = Tricks
       | list  = {{{tricks}}}
    }}
  }}
  </div>
}}
</includeonly>
<noinclude>
<templatedata>
{
   "description": "Unified Viva Piñata requirements box with collapsible game header.",
   "description": "Unified Viva Piñata requirements box with collapsible game header.",
   "params": {
   "params": {
    "title": {
      "label": "Game title",
      "type": "string",
      "required": true,
      "example": "Viva Piñata"
    },
     "game": {
     "game": {
       "label": "Game code",
       "label": "Game code",
       "type": "string",
       "type": "string",
       "required": false,
       "required": true,
       "example": "vp1",
       "example": "vp1",
       "description": "vp1 = Classic, tip = Trouble in Paradise, pp = Pocket Paradise"
       "description": "vp1 = Classic, tip = Trouble in Paradise, pp = Pocket Paradise"
Line 63: Line 28:
       "example": "mw-collapsed",
       "example": "mw-collapsed",
       "description": "Leave empty to expand by default"
       "description": "Leave empty to expand by default"
    },
    "evolve_first": {
      "label": "Evolve requirement displays first",
      "type": "string",
      "required": false,
      "example": "true",
      "description": "Leave empty to keep evolve requirement after resident"
     },
     },
     "appear": {
     "appear": {
Line 87: Line 59:
     "tricks": {
     "tricks": {
       "label": "Trick requirements",
       "label": "Trick requirements",
      "type": "content",
      "required": false
    },
    "bait": {
      "label": "Bait requirements",
      "type": "content",
      "required": false
    },
    "evolve": {
      "label": "Evolve requirements",
      "type": "content",
      "required": false
    },
    "unblock": {
      "label": "Unblock requirements",
      "type": "content",
      "required": false
    },
    "mature": {
      "label": "Growth requirements",
       "type": "content",
       "type": "content",
       "required": false
       "required": false