Template:Shiren 6 Item Infobox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
(Created page with "<onlyinclude> <div class="templateTheme infoboxItem"> <div class="infoboxItemRow"> <div class="templatePrimary infoboxTitle infoboxItemIcon" style="display: flex; justify-content: center; align-items: center;">File:Shiren 6 - {{#switch:{{{category|}}}| Armbands=Armband| Weapons=Weapon| Shields=Shield| Herbs=Herb| Riceballs=Riceball| Jars=Jar| Projectiles=Arrow| Scrolls|#default=Scroll| Staves=Staff| Traps=Trap| Stones=Piggy Stone| Cannonballs=Cannonball| Gitan=Gitan }}...")
 
mNo edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div class="templateTheme infoboxItem">
<div class="newInfobox">
<div class="infoboxItemRow">
<div class="infoboxItemRow">
<div class="templatePrimary infoboxTitle infoboxItemIcon" style="display: flex; justify-content: center; align-items: center;">[[File:Shiren 6 - {{#switch:{{{category|}}}|
<div class="templatePrimary infoboxTitle infoboxItemIcon" style="display: flex; justify-content: center; align-items: center;">[[File:Shiren 6 - {{#switch:{{{category|}}}|
Line 33: Line 33:
}}</span></div>
}}</span></div>
</div>
</div>
<div class="templatePrimary infoboxTitle"><span class="infoboxEnTitle">
{{Infobox Header | {{{name|}}} | {{{kana|}}} | {{{romaji|}}} | {{{hepburn|}}} }}
<span class="infoboxKaTitle">{{#if:{{{name|}}} | {{{name}}} | {{PAGENAME}} }}</span>
<span class="infoboxHeTitle">{{#if:{{{kana|}}} | <br>{{#if:{{{romaji|}}} | {{Tt|{{{kana}}}|{{{romaji}}}}} | {{{kana}}} }} }}{{#if:{{{hepburn|}}}| <br>{{{hepburn}}} }}</span>
</span></div>
{{#switch:{{{category|}}}|
{{#switch:{{{category|}}}|
Weapons=
Weapons|Shields|Traps={{Infobox Image | {{{image|}}} | {{{description_en|}}} | {{{size|}}} | {{{name|}}} }}
<div class="infoboxImage">[[File:Shiren 6 - {{#switch:{{{name|}}}|Cudgel X=Cudgel|Dragonkill X=Dragonkiller|Goldblade X=Golden Blade|Master X=Mastersword|Polearm X=Polearm|#default={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}}}.png|alt={{#if:{{{description_en|}}} | {{{description_en}}} | No description available }}|frameless]]</div>|
Shields=
<div class="infoboxImage">[[File:Shiren 6 - {{#switch:{{{name|}}}|Armor X=Armor Ward|Blast X=Blast Shield|Bronze X=Bronzeward|Dragon X=Dragonward|Golden X=Gold Shield|Hide X=Hide Shield|Iron X=Iron Shield|Spiked X=Spiked Ward|Wood X=Wood Shield|#default={{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}}}.png|alt={{#if:{{{description_en|}}} | {{{description_en}}} | No description available }}|frameless]]</div>|
Traps=
<div class="infoboxImage">[[File:Shiren 6 - {{{name|}}}.png|alt={{#if:{{{description_en|}}} | {{{description_en}}} | No description available }}|frameless]]</div>
}}
}}
<div class="templateSecondary infoboxContext infoboxDescription">
{{Infobox Description | {{{description_en|}}} | {{{description_ja|}}} }}
<tabber>
English={{#if:{{{description_en|}}} | {{{description_en}}} | ''No description available.'' }}
|-|
Japanese={{#if:{{{description_ja|}}} | {{{description_ja}}} | ''説明はありません。'' }}
</tabber>
</div>
<div>
<div>
{{#if:{{{cost|}}} {{{value|}}} {{{fullness|}}} {{{bonus|}}} {{{damage|}}}|
{{#if:{{{cost|}}} {{{value|}}}|
<div class="infoboxContent mw-collapsible">
<div class="infoboxContent mw-collapsible">
<div class="templatePrimary infoboxContext">Information</div>
<div class="templatePrimary infoboxContext">Information</div>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{#if:{{{cost|}}}|
{{#if:{{{cost|}}}|
<div class="infoboxRow">
{{Infobox Row | Cost | {{{cost}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Cost</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{cost}}}</span></div>
</div>
}}{{#if:{{{value|}}}|
}}{{#if:{{{value|}}}|
<div class="infoboxRow">
{{Infobox Row | Value | {{{value}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Value</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{value}}}</span></div>
</div>
}}{{#switch:{{{category|}}}|
}}{{#switch:{{{category|}}}|
Weapons={{#if:{{{strength|}}}|
Weapons={{#if:{{{strength|}}}|
<div class="infoboxRow">
{{Infobox Row | Strength | {{{strength}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Strength</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{strength}}}</span></div>
</div>
}}{{#if:{{{maxbonus|}}}|
}}{{#if:{{{maxbonus|}}}|
<div class="infoboxRow">
{{Infobox Row | Max Bonus | {{{maxbonus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Max Bonus</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{maxbonus}}}</span></div>
</div>
}}{{#if:{{{seal|}}}|
}}{{#if:{{{seal|}}}|
<div class="infoboxRow">
{{Infobox Row | Seal | [[File:Shiren 6 - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]] }}
<div class="templatePrimary infoboxHeadRow"><span>Seal</span></div>
<div class="templatePrimary infoboxBodyRow" style="justify-content: center;"><span>[[File:Shiren 6 - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]]</span></div>
</div>
}}|
}}|
Shields={{#if:{{{defense|}}}|
Shields={{#if:{{{defense|}}}|
<div class="infoboxRow">
{{Infobox Row | Defense | {{{defense}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Defense</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{defense}}}</span></div>
</div>
}}{{#if:{{{maxbonus|}}}|
}}{{#if:{{{maxbonus|}}}|
<div class="infoboxRow">
{{Infobox Row | Max Bonus | {{{maxbonus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Max Bonus</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{maxbonus}}}</span></div>
</div>
}}{{#if:{{{seal|}}}|
}}{{#if:{{{seal|}}}|
<div class="infoboxRow">
{{Infobox Row | Seal | [[File:Shiren 6 - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]] }}
<div class="templatePrimary infoboxHeadRow"><span>Seal</span></div>
<div class="templatePrimary infoboxBodyRow" style="justify-content: center;"><span>[[File:Shiren 6 - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]]</span></div>
</div>
}}|
}}|
Riceballs={{#if:{{{fullness|}}}|
Riceballs={{#if:{{{fullness|}}}|
<div class="infoboxRow">
{{Infobox Row | Fullness | {{{fullness}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Fullness</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{fullness}}}</span></div>
</div>
}}{{#if:{{{bonus|}}}|
}}{{#if:{{{bonus|}}}|
<div class="infoboxRow">
{{Infobox Row | Full-Bonus | {{{bonus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Full-Bonus</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{bonus}}}</span></div>
</div>
}}|
}}|
Jars={{#if:{{{type|}}}|
Jars={{#if:{{{type|}}}|
<div class="infoboxRow">
{{Infobox Row | Type | {{{type}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Type</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{type}}}</span></div>
</div>
}}{{#if:{{{costplus|}}}|
}}{{#if:{{{costplus|}}}|
<div class="infoboxRow">
{{Infobox Row | Cost + | {{{costplus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Cost +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{costplus}}}</span></div>
</div>
}}{{#if:{{{valueplus|}}}|
}}{{#if:{{{valueplus|}}}|
<div class="infoboxRow">
{{Infobox Row | Value + | {{{valueplus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Value +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{valueplus}}}</span></div>
</div>
}}|
}}|
Projectiles={{#if:{{{damage|}}}|
Projectiles={{#if:{{{damage|}}}|
<div class="infoboxRow">
{{Infobox Row | Damage | {{{damage}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Damage</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{damage}}}</span></div>
</div>
}}|
}}|
Scrolls={{#if:{{{blank_en|}}}|
Scrolls={{#if:{{{blank_en|}}}|
<div class="infoboxRow">
{{Infobox Row | Blank Scroll ({{CountryFlag|US}}) | {{{blank_en}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Blank Scroll ({{CountryFlag|US}})</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{blank_en}}}</span></div>
</div>
}}{{#if:{{{blank_ja|}}}|
}}{{#if:{{{blank_ja|}}}|
<div class="infoboxRow">
{{Infobox Row | Blank Scroll ({{CountryFlag|JA}}) | {{{blank_ja}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Blank Scroll ({{CountryFlag|JA}})</span></div>
}}{{#if:{{{blank_tw|}}}|
<div class="templateSecondary infoboxBodyRow"><span>{{{blank_ja}}}</span></div>
{{Infobox Row | Blank Scroll ({{CountryFlag|TW}}) | {{{blank_tw}}} }}
</div>
}}|
}}|
Staves={{#if:{{{costplus|}}}|
Staves={{#if:{{{costplus|}}}|
<div class="infoboxRow">
{{Infobox Row | Cost + | {{{costplus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Cost +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{costplus}}}</span></div>
</div>
}}{{#if:{{{valueplus|}}}|
}}{{#if:{{{valueplus|}}}|
<div class="infoboxRow">
{{Infobox Row | Value + | {{{valueplus}}} }}
<div class="templatePrimary infoboxHeadRow"><span>Value +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{valueplus}}}</span></div>
</div>
}}|
}}|
Traps={{#if:{{{generate|}}}|
Traps={{#if:{{{generate|}}}|
<div class="infoboxRow">
{{Infobox Row | # of uses when generated | {{{generate}}} }}
<div class="templatePrimary infoboxHeadRow"><span># of uses when generated</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{generate}}}</span></div>
</div>
}}{{#if:{{{use|}}}|
}}{{#if:{{{use|}}}|
<div class="infoboxRow">
{{Infobox Row | # of uses when used | {{{use}}} }}
<div class="templatePrimary infoboxHeadRow"><span># of uses when used</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{use}}}</span></div>
</div>
}}
}}
}}
}}

Revision as of 09:04, 8 October 2023


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