Template:Shiren 1 DS Item Infobox: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
m (N. Harmonik moved page Template:Shiren 1 DS Items Infobox to Template:Shiren 1 DS Item Infobox without leaving a redirect: Text replacement - "Items Infobox" to "Item Infobox")
No edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div class="templateTheme infoboxItem">
{{Shiren 1 DS Infobox Table |
<div class="infoboxItemRow">
  {{Shiren 1 DS Item Infobox Header | {{{category|}}} }}
<div class="templatePrimary infoboxTitle infoboxItemIcon" style="display: flex; justify-content: center; align-items: center;">[[File:Shiren 1 DS - {{#switch:{{{category|}}}|
  {{Shiren 1 DS Infobox Header | colspan = 2 | {{{name|}}} | {{{kana|}}} | {{{romaji|}}} | {{{hepburn|}}} }}
Armbands=Armband|
  {{Shiren 1 DS Infobox Image | colspan = 2 | {{{image|}}} | {{{description_en|}}} | {{{size|}}} | {{{name|}}}}}
Weapons=Weapon|
  {{Shiren 1 DS Infobox Description | colspan = 2 | multiple = true | {{{description_en|}}} | {{{description_ja|}}} }}
Shields=Shield|
  {{#if: {{{cost|}}} {{{value|}}} |
Herbs=Herb|
    {{Shiren 1 DS Infobox Subtable | colspan = 2 | title = Information |
Riceballs=Riceball|
      {{#if: {{{cost|}}} |
Jars=Jar|
        {{Shiren 1 DS Infobox Row | Cost | {{{cost}}} }}
Projectiles=Arrow|
      }}{{#if: {{{value|}}} |
Scrolls|#default=Scroll|
        {{Shiren 1 DS Infobox Row | Value | {{{value}}} }}
Staves=Staff|
      }}{{#switch: {{lc: {{{category|}}}}}
Traps=Trap|
        | weapons | weapon = {{#if: {{{strength|}}} |
Stones=Piggy Stone|
          {{Shiren 1 DS Infobox Row | Strength | {{{strength}}} }}
Cannonballs=Cannonball|
        }}{{#if: {{{maxbonus|}}} |
Gitan=Gitan
          {{Shiren 1 DS Infobox Row | Max Bonus | {{{maxbonus}}} }}
}}.png|frameless]]</div>
        }}{{#if: {{{seal|}}} |
<div class="templatePrimary infoboxTitle infoboxItemCategory"><span style="font-weight: bold;">{{#switch:{{{category|}}}|
          {{Shiren 1 DS Infobox Row | Seal | [[File:Shiren 1 DS - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]] }}
Armbands=Armband|
        }}
Weapons=Weapon|
        | shields | shield = {{#if: {{{defense|}}} |
Shields=Shield|
          {{Shiren 1 DS Infobox Row | Defense | {{{defense}}} }}
Herbs=Herb|
        }}{{#if: {{{maxbonus|}}} |
Riceballs=Riceball|
          {{Shiren 1 DS Infobox Row | Max Bonus | {{{maxbonus}}} }}
Jars=Jar|
        }}{{#if: {{{seal|}}} |
Projectiles=Projectile|
          {{Shiren 1 DS Infobox Row | Seal | [[File:Shiren 1 DS - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]] }}
Scrolls=Scroll|
        }}
Staves=Staff|
        | riceballs | riceball = {{#if: {{{fullness|}}} |
Traps=Trap|
          {{Shiren 1 DS Infobox Row | Fullness | {{{fullness}}} }}
Stones=Stone|
        }}{{#if: {{{bonus|}}}|
Cannonballs=Cannonball|
          {{Shiren 1 DS Infobox Row | Full-Bonus | {{{bonus}}} }}
#default={{{category|}}}
        }}
}}</span></div>
        | jars | jar = {{#if: {{{type|}}} |
</div>
          {{Shiren 1 DS Infobox Row | Type | {{{type}}} }}
<div class="templatePrimary infoboxTitle"><span class="infoboxEnTitle">
        }}{{#if: {{{costplus|}}} |
<span class="infoboxKaTitle">{{#if:{{{name|}}} | {{{name}}} | {{PAGENAME}} }}</span>
          {{Shiren 1 DS Infobox Row | Cost + | {{{costplus}}} }}
<span class="infoboxHeTitle">{{#if:{{{kana|}}} | <br>{{#if:{{{romaji|}}} | {{Tt|{{{kana}}}|{{{romaji}}}}} | {{{kana}}} }} }}{{#if:{{{hepburn|}}}| <br>{{{hepburn}}} }}</span>
        }}{{#if: {{{valueplus|}}} |
</span></div>
          {{Shiren 1 DS Infobox Row | Value + | {{{valueplus}}} }}
{{#switch:{{{category|}}}|
        }}
Weapons=
        | projectiles | projectile = {{#if: {{{damage|}}} |
<div class="infoboxImage">[[File:Shiren 1 DS - {{#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>|
          {{Shiren 1 DS Infobox Row | Damage | {{{damage}}} }}
Shields=
        }}
<div class="infoboxImage">[[File:Shiren 1 DS - {{#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>|
        | scrolls | scroll = {{#if: {{{blank_en|}}} |
Traps=
          {{Shiren 1 DS Infobox Row | Blank Scroll ({{CountryFlag|US}}) | {{{blank_en}}} }}
<div class="infoboxImage">[[File:Shiren 1 DS - {{{name|}}}.png|alt={{#if:{{{description_en|}}} | {{{description_en}}} | No description available }}|frameless]]</div>
        }}{{#if: {{{blank_ja|}}} |
          {{Shiren 1 DS Infobox Row | Blank Scroll ({{CountryFlag|JA}}) | {{{blank_ja}}} }}
        }}
        | staves | staff = {{#if: {{{costplus|}}} |
          {{Shiren 1 DS Infobox Row | Cost + | {{{costplus}}} }}
        }}{{#if: {{{valueplus|}}} |
          {{Shiren 1 DS Infobox Row | Value + | {{{valueplus}}} }}
        }}
        | traps | trap = {{#if: {{{generate|}}} |
          {{Shiren 1 DS Infobox Row | # of uses when generated | {{{generate}}} }}
        }}{{#if: {{{use|}}} |
          {{Shiren 1 DS Infobox Row | # of uses when used | {{{use}}} }}
        }}
      }}
    }}
  }}
}}
}}
<div class="templateSecondary infoboxContext infoboxDescription">
 
<tabber>
<!-- AUTOCATEGORIZATION -->
English={{#if:{{{description_en|}}} | {{{description_en}}} | ''No description available.'' }}
{{#if: {{NAMESPACE}} <!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | + }} | <!-- Do not categorize --> | [[Category:Shiren 1 DS items|{{{name|}}}]] }}<!-- end AUTOCATEGORIZATION -->
|-|
</onlyinclude>
Japanese={{#if:{{{description_ja|}}} | {{{description_ja}}} | ''説明はありません'' }}
<noinclude>{{Clear}}{{doc}}
</tabber>
</div>
<div>
{{#if:{{{cost|}}} {{{value|}}} {{{fullness|}}} {{{bonus|}}} {{{damage|}}}|
<div class="infoboxContent mw-collapsible">
<div class="templatePrimary infoboxContext">Information</div>
<div class="mw-collapsible-content">
{{#if:{{{cost|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Cost</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{cost}}}</span></div>
</div>
}}{{#if:{{{value|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Value</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{value}}}</span></div>
</div>
}}{{#switch:{{{category|}}}|
Weapons={{#if:{{{strength|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Strength</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{strength}}}</span></div>
</div>
}}{{#if:{{{maxbonus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Max Bonus</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{maxbonus}}}</span></div>
</div>
}}{{#if:{{{seal|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Seal</span></div>
<div class="templatePrimary infoboxBodyRow" style="justify-content: center;"><span>[[File:Shiren 1 DS - Weapon Seal {{{seal}}}.png|alt=Weapon Seal {{{seal}}}|frameless]]</span></div>
</div>
}}|
Shields={{#if:{{{defense|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Defense</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{defense}}}</span></div>
</div>
}}{{#if:{{{maxbonus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Max Bonus</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{maxbonus}}}</span></div>
</div>
}}{{#if:{{{seal|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Seal</span></div>
<div class="templatePrimary infoboxBodyRow" style="justify-content: center;"><span>[[File:Shiren 1 DS - Shield Seal {{{seal}}}.png|alt=Shield Seal {{{seal}}}|frameless]]</span></div>
</div>
}}|
Riceballs={{#if:{{{fullness|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Fullness</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{fullness}}}</span></div>
</div>
}}{{#if:{{{bonus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Full-Bonus</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{bonus}}}</span></div>
</div>
}}|
Jars={{#if:{{{type|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Type</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{type}}}</span></div>
</div>
}}{{#if:{{{costplus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Cost +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{costplus}}}</span></div>
</div>
}}{{#if:{{{valueplus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Value +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{valueplus}}}</span></div>
</div>
}}|
Projectiles={{#if:{{{damage|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Damage</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{damage}}}</span></div>
</div>
}}|
Scrolls={{#if:{{{blank_en|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Blank Scroll ({{CountryFlag|US}})</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{blank_en}}}</span></div>
</div>
}}{{#if:{{{blank_ja|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Blank Scroll ({{CountryFlag|JA}})</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{blank_ja}}}</span></div>
</div>
}}|
Staves={{#if:{{{costplus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Cost +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{costplus}}}</span></div>
</div>
}}{{#if:{{{valueplus|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Value +</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{valueplus}}}</span></div>
</div>
}}|
Traps={{#if:{{{generate|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span># of uses when generated</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{generate}}}</span></div>
</div>
}}{{#if:{{{use|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span># of uses when used</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{use}}}</span></div></div>
}}
}}
</div></div>
}}
</div></div><!-- AUTOCATEGORIZATION -->{{#if:{{NAMESPACE}} <!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | + }} | <!-- Do not categorize --> | [[Category:Shiren 1 DS items|{{{name|}}}]] }}<!-- end AUTOCATEGORIZATION -->
</onlyinclude><noinclude>{{Clear}}{{doc}}
[[Category:Shiren 1 DS Infobox Templates]]
[[Category:Shiren 1 DS Infobox Templates]]
</noinclude>
</noinclude>

Revision as of 22:13, 24 June 2024

Template:Shiren 1 DS Infobox Table


Template-info.png Documentation

Usage

{{Shiren 1 DS Item Infobox
  | category       =  
  | name           =
  | jpname         = 
  | romaji         = 
  | image          = 
  | description    = 
  | description_ja = 
  | cost           = 
  | value          = 
}}

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

  | strength = 
  | maxbonus = 
  | rune     = 

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

  | defense  = 
  | maxbonus = 
  | 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      = 
  | costplus  = 
  | valueplus = 

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 = 

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

  | costplus  = 
  | valueplus = 

Full Syntax

{{Shiren 1 DS Item Infobox
  | category       = 
  | name           =
  | jpname         = 
  | romaji         = 
  | image          = 
  | description    = 
  | description_ja = 
  | cost           = 
  | value          = 
  | strength       = 
  | maxbonus       = 
  | rune           = 
  | defense        = 
  | fullness       = 
  | bonus          = 
  | type           = 
  | costplus       = 
  | valueplus      = 
  | damage         = 
  | blank_en       = 
  | blank_ja       = 
}}

Syntax guide