Template:Shiren 1 SFC Item Infobox: Difference between revisions

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

Revision as of 13:03, 3 February 2024

Template:Infobox Table


Template-info.png Documentation

Usage

{{Shiren 1 SFC Item Infobox
  | category       =  
  | name           =
  | jpname         = 
  | romaji         = 
  | image          = 
  | size           =
  | description =  
  | 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 Pots 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 = 
  | blank_zh = 

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

  | costplus  = 
  | valueplus = 

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

  | generate = 
  | use      = 

Full Syntax

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

Syntax guide