Template:RequirementBox: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:RequirementBox|render
<details class="vp-gamebox" {{#ifeq:{{{state|}}}|mw-collapsed||open=open}}>
| game        = {{{game|}}}
  <summary class="vp-gamebox-header">{{{title}}}</summary>
| state        = {{{state|}}}
  <div class="vp-gamebox-content">
| evolve_first = {{{evolve_first|}}}
    <div class="vp-requirements">
| appear       = {{{appear|}}}
      {{#if:{{{appear|}}}| {{RequirementBox/Category | title = Appear | list = {{{appear}}} }} }}
| visit        = {{{visit|}}}
       {{#if:{{{visit|}}}| {{RequirementBox/Category | title = Visit | list = {{{visit}}} }} }}
| resident    = {{{resident|}}}
      {{#if:{{{resident|}}}| {{RequirementBox/Category | title = Resident | list = {{{resident}}} }} }}
| romance      = {{{romance|}}}
       {{#if:{{{romance|}}}| {{RequirementBox/Category | title = Romance | list = {{{romance}}} }} }}
| tricks       = {{{tricks|}}}
       {{#if:{{{tricks|}}}| {{RequirementBox/Category | title = Tricks | list = {{{tricks}}} }} }}
| bait        = {{{bait|}}}
    </div>
| evolve       = {{{evolve|}}}
  </div>
| unblock      = {{{unblock|}}}
</details>
| mature      = {{{mature|}}}
</includeonly><noinclude><templatedata>{
}}</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 34: 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 58: 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