Template:Shiren 6 Item Infobox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{Infobox Row 2 |" to "{{Infobox Row |")
Line 10: Line 10:
     {{Infobox Subtable | colspan = 2 | title = Information |
     {{Infobox Subtable | colspan = 2 | title = Information |
       {{#if: {{{cost|}}} |
       {{#if: {{{cost|}}} |
         {{Infobox Row 2 | Cost | {{{cost}}} }}
         {{Infobox Row | Cost | {{{cost}}} }}
       }}{{#if: {{{value|}}} |
       }}{{#if: {{{value|}}} |
         {{Infobox Row 2 | Value | {{{value}}} }}
         {{Infobox Row | Value | {{{value}}} }}
       }}{{#switch: {{{category|}}}
       }}{{#switch: {{{category|}}}
         | Weapons = {{#if: {{{strength|}}} |
         | Weapons = {{#if: {{{strength|}}} |
           {{Infobox Row 2 | Strength | {{{strength}}} }}
           {{Infobox Row | Strength | {{{strength}}} }}
         }}{{#if: {{{maxbonus|}}} |
         }}{{#if: {{{maxbonus|}}} |
           {{Infobox Row 2 | Max Bonus | {{{maxbonus}}} }}
           {{Infobox Row | Max Bonus | {{{maxbonus}}} }}
         }}{{#if: {{{seal|}}} |
         }}{{#if: {{{seal|}}} |
           {{Infobox Row 2 | Seal | [[File:Shiren 6 - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]] }}
           {{Infobox Row | Seal | [[File:Shiren 6 - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]] }}
         }}
         }}
         | Shields = {{#if: {{{defense|}}} |
         | Shields = {{#if: {{{defense|}}} |
           {{Infobox Row 2 | Defense | {{{defense}}} }}
           {{Infobox Row | Defense | {{{defense}}} }}
         }}{{#if: {{{maxbonus|}}} |
         }}{{#if: {{{maxbonus|}}} |
           {{Infobox Row 2 | Max Bonus | {{{maxbonus}}} }}
           {{Infobox Row | Max Bonus | {{{maxbonus}}} }}
         }}{{#if: {{{seal|}}} |
         }}{{#if: {{{seal|}}} |
           {{Infobox Row 2 | Seal | [[File:Shiren 6 - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]] }}
           {{Infobox Row | Seal | [[File:Shiren 6 - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]] }}
         }}
         }}
         | Riceballs = {{#if: {{{fullness|}}} |
         | Riceballs = {{#if: {{{fullness|}}} |
           {{Infobox Row 2 | Fullness | {{{fullness}}} }}
           {{Infobox Row | Fullness | {{{fullness}}} }}
         }}{{#if: {{{bonus|}}}|
         }}{{#if: {{{bonus|}}}|
           {{Infobox Row 2 | Full-Bonus | {{{bonus}}} }}
           {{Infobox Row | Full-Bonus | {{{bonus}}} }}
         }}
         }}
         | Jars = {{#if: {{{type|}}} |
         | Jars = {{#if: {{{type|}}} |
           {{Infobox Row 2 | Type | {{{type}}} }}
           {{Infobox Row | Type | {{{type}}} }}
         }}{{#if: {{{costplus|}}} |
         }}{{#if: {{{costplus|}}} |
           {{Infobox Row 2 | Cost + | {{{costplus}}} }}
           {{Infobox Row | Cost + | {{{costplus}}} }}
         }}{{#if: {{{valueplus|}}} |
         }}{{#if: {{{valueplus|}}} |
           {{Infobox Row 2 | Value + | {{{valueplus}}} }}
           {{Infobox Row | Value + | {{{valueplus}}} }}
         }}
         }}
         | Projectiles = {{#if: {{{damage|}}} |
         | Projectiles = {{#if: {{{damage|}}} |
           {{Infobox Row 2 | Damage | {{{damage}}} }}
           {{Infobox Row | Damage | {{{damage}}} }}
         }}
         }}
         | Scrolls = {{#if: {{{blank_en|}}} |
         | Scrolls = {{#if: {{{blank_en|}}} |
           {{Infobox Row 2 | Blank Scroll ({{CountryFlag|US}}) | {{{blank_en}}} }}
           {{Infobox Row | Blank Scroll ({{CountryFlag|US}}) | {{{blank_en}}} }}
         }}{{#if: {{{blank_ja|}}} |
         }}{{#if: {{{blank_ja|}}} |
           {{Infobox Row 2 | Blank Scroll ({{CountryFlag|JA}}) | {{{blank_ja}}} }}
           {{Infobox Row | Blank Scroll ({{CountryFlag|JA}}) | {{{blank_ja}}} }}
         }}{{#if: {{{blank_td|}}} |
         }}{{#if: {{{blank_td|}}} |
           {{Infobox Row 2 | Blank Scroll ({{CountryFlag|TW}}) | {{{blank_td}}} }}
           {{Infobox Row | Blank Scroll ({{CountryFlag|TW}}) | {{{blank_td}}} }}
         }}
         }}
         | Staves = {{#if: {{{costplus|}}} |
         | Staves = {{#if: {{{costplus|}}} |
           {{Infobox Row 2 | Cost + | {{{costplus}}} }}
           {{Infobox Row | Cost + | {{{costplus}}} }}
         }}{{#if: {{{valueplus|}}} |
         }}{{#if: {{{valueplus|}}} |
           {{Infobox Row 2 | Value + | {{{valueplus}}} }}
           {{Infobox Row | Value + | {{{valueplus}}} }}
         }}
         }}
         | Traps = {{#if: {{{generate|}}} |
         | Traps = {{#if: {{{generate|}}} |
           {{Infobox Row 2 | # of uses when generated | {{{generate}}} }}
           {{Infobox Row | # of uses when generated | {{{generate}}} }}
         }}{{#if: {{{use|}}} |
         }}{{#if: {{{use|}}} |
           {{Infobox Row 2 | # of uses when used | {{{use}}} }}
           {{Infobox Row | # of uses when used | {{{use}}} }}
         }}
         }}
       }}
       }}

Revision as of 22:03, 28 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