Template:Shiren 6 Item Infobox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div class="newInfobox">
{{Infobox Table |
{{#if:{{{category|}}}|
  {{Shiren 6 Infobox Item Header | {{{category|}}} }}
<div class="infoboxItemRow">
  {{Infobox Header 2 | colspan = 2 | {{{name|}}} | {{{kana|}}} | {{{romaji|}}} | {{{hepburn|}}} }}
<div class="templatePrimary infoboxTitle infoboxItemIcon">[[File:Shiren 6 - {{#switch:{{{category|}}}|
  {{#switch: {{{category|}}}
Armbands=Armband|
    | Weapons | Shields | Traps = {{Infobox Image 2 | colspan = 2 | {{{image|}}} | {{{description_en|}}} | {{{size|}}} | {{{name|}}} }}
Weapons=Weapon|
  }}
Shields=Shield|
  {{Infobox Description 2 | colspan = 2 | {{{description_en|}}} | {{{description_ja|}}} }}
Herbs=Herb|
  {{#if: {{{cost|}}} {{{value|}}} |
Riceballs=Riceball|
    {{Infobox Subtable | colspan = 2 | title = Information |
Jars=Jar|
      {{#if: {{{cost|}}} |
Projectiles=Arrow|
        {{Infobox Row 2 | Cost | {{{cost}}} }}
Scrolls|#default=Scroll|
      }}{{#if: {{{value|}}} |
Staves=Staff|
        {{Infobox Row 2 | Value | {{{value}}} }}
Traps=Trap|
      }}{{#switch: {{{category|}}}
Stones=Piggy Stone|
        | Weapons = {{#if: {{{strength|}}} |
Cannonballs=Cannonball|
          {{Infobox Row 2 | Strength | {{{strength}}} }}
Gitan=Gitan
        }}{{#if: {{{maxbonus|}}} |
}}.png|frameless]]</div>
          {{Infobox Row 2 | Max Bonus | {{{maxbonus}}} }}
<div class="templatePrimary infoboxTitle infoboxItemCategory"><span style="font-weight: bold;">{{#switch:{{{category|}}}|
        }}{{#if: {{{seal|}}} |
Armbands=Armband|
          {{Infobox Row 2 | Seal | [[File:Shiren 6 - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]] }}
Weapons=Weapon|
        }}
Shields=Shield|
        | Shields = {{#if: {{{defense|}}} |
Herbs=Herb|
          {{Infobox Row 2 | Defense | {{{defense}}} }}
Riceballs=Riceball|
        }}{{#if: {{{maxbonus|}}} |
Jars=Jar|
          {{Infobox Row 2 | Max Bonus | {{{maxbonus}}} }}
Projectiles=Projectile|
        }}{{#if: {{{seal|}}} |
Scrolls=Scroll|
          {{Infobox Row 2 | Seal | [[File:Shiren 6 - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]] }}
Staves=Staff|
        }}
Traps=Trap|
        | Riceballs = {{#if: {{{fullness|}}} |
Stones=Stone|
          {{Infobox Row 2 | Fullness | {{{fullness}}} }}
Cannonballs=Cannonball|
        }}{{#if: {{{bonus|}}}|
#default={{{category|}}}
          {{Infobox Row 2 | Full-Bonus | {{{bonus}}} }}
}}</span></div>
        }}
</div>
        | Jars = {{#if: {{{type|}}} |
          {{Infobox Row 2 | Type | {{{type}}} }}
        }}{{#if: {{{costplus|}}} |
          {{Infobox Row 2 | Cost + | {{{costplus}}} }}
        }}{{#if: {{{valueplus|}}} |
          {{Infobox Row 2 | Value + | {{{valueplus}}} }}
        }}
        | Projectiles = {{#if: {{{damage|}}} |
          {{Infobox Row 2 | Damage | {{{damage}}} }}
        }}
        | Scrolls = {{#if: {{{blank_en|}}} |
          {{Infobox Row 2 | Blank Scroll ({{CountryFlag|US}}) | {{{blank_en}}} }}
        }}{{#if: {{{blank_ja|}}} |
          {{Infobox Row 2 | Blank Scroll ({{CountryFlag|JA}}) | {{{blank_ja}}} }}
        }}{{#if: {{{blank_td|}}} |
          {{Infobox Row 2 | Blank Scroll ({{CountryFlag|TW}}) | {{{blank_td}}} }}
        }}
        | Staves = {{#if: {{{costplus|}}} |
          {{Infobox Row 2 | Cost + | {{{costplus}}} }}
        }}{{#if: {{{valueplus|}}} |
          {{Infobox Row 2 | Value + | {{{valueplus}}} }}
        }}
        | Traps = {{#if: {{{generate|}}} |
          {{Infobox Row 2 | # of uses when generated | {{{generate}}} }}
        }}{{#if: {{{use|}}} |
          {{Infobox Row 2 | # of uses when used | {{{use}}} }}
        }}
      }}
    }}
  }}
}}
}}
{{Infobox Header | {{{name|}}} | {{{kana|}}} | {{{romaji|}}} | {{{hepburn|}}} }}
{{#switch:{{{category|}}}|
Weapons|Shields|Traps={{Infobox Image | {{{image|}}} | {{{description_en|}}} | {{{size|}}} | {{{name|}}} }}
}}
{{Infobox Description | {{{description_en|}}} | {{{description_ja|}}} }}
<div>
{{#if:{{{cost|}}} {{{value|}}}|
<div class="infoboxContent mw-collapsible">
<div class="templatePrimary infoboxContext">Information</div>
<div class="mw-collapsible-content">
{{#if:{{{cost|}}}|
{{Infobox Row | Cost | {{{cost}}} }}
}}{{#if:{{{value|}}}|
{{Infobox Row | Value | {{{value}}} }}
}}{{#switch:{{{category|}}}|
Weapons={{#if:{{{strength|}}}|
{{Infobox Row | Strength | {{{strength}}} }}
}}{{#if:{{{maxbonus|}}}|
{{Infobox Row | Max Bonus | {{{maxbonus}}} }}
}}{{#if:{{{seal|}}}|
{{Infobox Row | Seal | [[File:Shiren 6 - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]] }}
}}|
Shields={{#if:{{{defense|}}}|
{{Infobox Row | Defense | {{{defense}}} }}
}}{{#if:{{{maxbonus|}}}|
{{Infobox Row | Max Bonus | {{{maxbonus}}} }}
}}{{#if:{{{seal|}}}|
{{Infobox Row | Seal | [[File:Shiren 6 - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]] }}
}}|
Riceballs={{#if:{{{fullness|}}}|
{{Infobox Row | Fullness | {{{fullness}}} }}
}}{{#if:{{{bonus|}}}|
{{Infobox Row | Full-Bonus | {{{bonus}}} }}
}}|
Jars={{#if:{{{type|}}}|
{{Infobox Row | Type | {{{type}}} }}
}}{{#if:{{{costplus|}}}|
{{Infobox Row | Cost + | {{{costplus}}} }}
}}{{#if:{{{valueplus|}}}|
{{Infobox Row | Value + | {{{valueplus}}} }}
}}|
Projectiles={{#if:{{{damage|}}}|
{{Infobox Row | Damage | {{{damage}}} }}
}}|
Scrolls={{#if:{{{blank_en|}}}|
{{Infobox Row | Blank Scroll ({{CountryFlag|US}}) | {{{blank_en}}} }}
}}{{#if:{{{blank_ja|}}}|
{{Infobox Row | Blank Scroll ({{CountryFlag|JA}}) | {{{blank_ja}}} }}
}}{{#if:{{{blank_td|}}}|
{{Infobox Row | Blank Scroll ({{CountryFlag|TW}}) | {{{blank_td}}} }}
}}|
Staves={{#if:{{{costplus|}}}|
{{Infobox Row | Cost + | {{{costplus}}} }}
}}{{#if:{{{valueplus|}}}|
{{Infobox Row | Value + | {{{valueplus}}} }}
}}|
Traps={{#if:{{{generate|}}}|
{{Infobox Row | # of uses when generated | {{{generate}}} }}
}}{{#if:{{{use|}}}|
{{Infobox Row | # of uses when used | {{{use}}} }}
}}
}}
</div>
</div>
}}
</div>
</div>


<!-- AUTOCATEGORIZATION -->
<!-- AUTOCATEGORIZATION -->
{{#if:{{NAMESPACE}} <!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | + }} | <!-- Do not categorize --> | [[Category:Shiren 6 items|{{{name|}}}]] }}<!-- end AUTOCATEGORIZATION -->
{{#if: {{NAMESPACE}} <!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | + }} | <!-- Do not categorize --> | [[Category:Shiren 6 items|{{{name|}}}]] }}<!-- end AUTOCATEGORIZATION -->
</onlyinclude>
</onlyinclude>
<noinclude>{{Clear}}{{doc}}
<noinclude>{{Clear}}{{doc}}
[[Category:Shiren 6 Infobox Templates]]
[[Category:Shiren 6 Infobox Templates]]
</noinclude>
</noinclude>

Revision as of 17:31, 23 November 2023

Template:Infobox Table


Template-info.png Documentation

Usage

{{Shiren 6 Item Infobox
  | category        = 
  | name            = 
  | jpname          = 
  | romaji          = 
  | image           = 
  | img_size         = 
  | img description = 
  | description     = 
  | description jp  = 
  | caption         = 
  | data title      = 
  | cost            = 
  | value           = 
}}

Add the following if the item is from the Weapons category.

  | strength  = 
  | max bonus = 
  | rune      = 

Add the following if the item is from the Shields category.

  | defense   = 
  | max bonus = 
  | rune      = 

Add the following if the item is from the Riceballs category.

  | fullness = 
  | bonus    = 

Add the following if the item is from the Jars category.

  | type       = 
  | cost plus  = 
  | value plus = 

Add the following if the item is from the Projectiles category.

  | damage = 

Add the following if the item is from the Scrolls category.

  | blank en = 
  | blank ja = 
  | blank td = 

Add the following if the item is from the Staves category.

  | cost plus  = 
  | value plus = 

Add the following if the item is from the Traps category.

  | generate = 
  | use      = 

Full Syntax

{{Shiren 6 Item Infobox
  | category        = 
  | name            = 
  | jpname          = 
  | romaji          = 
  | image           = 
  | img_size         = 
  | img description = 
  | description     = 
  | description jp  = 
  | caption         = 
  | data title      = 
  | cost            = 
  | value           = 
  | strength        = 
  | max bonus       = 
  | rune            = 
  | defense         = 
  | fullness        = 
  | bonus           = 
  | type            = 
  | cost plus       = 
  | value plus      = 
  | damage          = 
  | blank en        = 
  | blank ja        = 
  | blank td        = 
  | generate        = 
  | use             = 
}}

Syntax guide