Template:RequirementBox: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
<includeonly>
{{RequirementBox/GameBox
<details class="vp-gamebox" {{#ifeq:{{{state|}}}|mw-collapsed||open=open}}>
| title = {{{title}}}
  <summary class="vp-gamebox-header">{{{title}}}</summary>
| game  = {{{game|}}}
  <div class="vp-gamebox-content">
| state = {{{state|}}}
    <div class="vp-requirements">
| content =
      {{#if:{{{appear|}}}| {{RequirementBox/Category | title = Appear | list = {{{appear}}} }} }}
  <div class="vp-requirements">
      {{#if:{{{visit|}}}| {{RequirementBox/Category | title = Visit | list = {{{visit}}} }} }}
  {{#if:{{{appear|}}}|
      {{#if:{{{resident|}}}| {{RequirementBox/Category | title = Resident | list = {{{resident}}} }} }}
    {{RequirementBox/Category
      {{#if:{{{romance|}}}| {{RequirementBox/Category | title = Romance | list = {{{romance}}} }} }}
      | title = Appear
      {{#if:{{{tricks|}}}| {{RequirementBox/Category | title = Tricks | list = {{{tricks}}} }} }}
      | list = {{{appear}}}
    </div>
    }}
  }}
  {{#if:{{{visit|}}}|
    {{RequirementBox/Category
      | title = Visit
      | list = {{{visit}}}
    }}
  }}
  {{#if:{{{resident|}}}|
    {{RequirementBox/Category
      | title = Resident
      | list = {{{resident}}}
    }}
  }}
  {{#if:{{{romance|}}}|
    {{RequirementBox/Category
      | title = Romance
      | list = {{{romance}}}
    }}
  }}
  {{#if:{{{tricks|}}}|
    {{RequirementBox/Category
      | title = Tricks
      | list = {{{tricks}}}
    }}
  }}
   </div>
   </div>
}}</includeonly><noinclude><templatedata>{
</details>
</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": {