Template:Torneko 1 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">
  {{Torneko 1 Item Infobox Header | {{{category|}}} }}
<div class="templatePrimary infoboxTitle infoboxItemIcon" style="display: flex; justify-content: center; align-items: center;">[[File:Torneko 1 - {{#switch:{{{category|}}}|
  {{Infobox Header | colspan = 2 | {{{name|}}} | {{{kana|}}} | {{{romaji|}}} | {{{hepburn|}}} }}
Rings=Ring|
  {{Infobox Image | colspan = 2 | {{{image|}}} | {{{description_en|}}} | {{{size|}}} | {{{name|}}} }}
Weapons=Weapon|
  {{Infobox Description | colspan = 2 | {{{description_en|}}} | {{{description_ja|}}} }}
Shields=Shield|
  {{#if: {{{shop value|}}} |
Herbs and Seeds=Herb|
    {{Infobox Subtable | colspan = 2 | title = Information |
Foods=Food|
      {{#if: {{{shop value|}}} |
Arrows=Arrow|
        {{Torneko 1 Infobox Row | Shop value | {{{shop value}}} }}
Scrolls|#default=Scroll|
      }}{{#switch: {{lc: {{{category|}}}}}
Staves=Staff|
        | weapons | weapon = {{#if: {{{strength|}}} |
Gold=Gold
          {{Torneko 1 Infobox Row | Strength | {{{strength}}} }}
}}.png|32px|frameless]]</div>
        }}{{#if: {{{maxbonus|}}} |
<div class="templatePrimary infoboxTitle infoboxItemCategory"><span style="font-weight: bold;">{{#switch:{{{category|}}}|
          {{Torneko 1 Infobox Row | Max Bonus | {{{maxbonus}}} }}
Rings=Ring|
        }}
Weapons=Weapon|
        | shields | shield = {{#if: {{{defense|}}} |
Shields=Shield|
          {{Torneko 1 Infobox Row | Defense | {{{defense}}} }}
Herbs and Seeds=Herb|
        }}{{#if: {{{maxbonus|}}} |
Foods=Food|
          {{Torneko 1 Infobox Row | Max Bonus | {{{maxbonus}}} }}
Arrows=Arrow|
        }}
Scrolls|#default=Scroll|
        | food = {{#if: {{{fullness|}}} |
Staves=Staff|
          {{Torneko 1 Infobox Row | Fullness | {{{fullness}}} }}
Gold=Gold
        }}
#default={{{category|}}}
        | arrows | arrow = {{#if: {{{damage|}}} |
}}</span></div>
          {{Torneko 1 Infobox Row | Damage | {{{damage}}} }}
</div>
        }}
<div class="templatePrimary infoboxTitle"><span class="infoboxEnTitle">
      }}
<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>
<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:{{{shop value|}}} {{{fullness|}}} {{{damage|}}}|
<div class="infoboxContent mw-collapsible">
<div class="templatePrimary infoboxContext">Information</div>
<div class="mw-collapsible-content">
{{#if:{{{shop value|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Shop Value</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{shop 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>
}}|
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>
}}|
Food={{#if:{{{fullness|}}}|
<div class="infoboxRow">
<div class="templatePrimary infoboxHeadRow"><span>Fullness</span></div>
<div class="templateSecondary infoboxBodyRow"><span>{{{fullness}}}</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>
}}|
}}
}}
</div></div>
 
}}
<!-- AUTOCATEGORIZATION -->
</div></div><!-- AUTOCATEGORIZATION -->{{#if:{{NAMESPACE}} <!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | + }} | <!-- Do not categorize --> | [[Category:Torneko 1|{{{name|}}}]] }}<!-- end AUTOCATEGORIZATION -->
{{#if: {{NAMESPACE}} <!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | + }} | <!-- Do not categorize --> | [[Category:Torneko 1 items|{{{name|}}}]] }}<!-- end AUTOCATEGORIZATION -->
</onlyinclude><noinclude>{{Clear}}{{doc}}
</onlyinclude>
<noinclude>{{Clear}}{{doc}}
[[Category:Torneko 1 Infobox Templates]]
[[Category:Torneko 1 Infobox Templates]]
</noinclude>
</noinclude>

Revision as of 10:21, 3 March 2024

Template:Infobox Table


Template-info.png Documentation

Usage

{{Torneko 1 Item Infobox
  | category       =  
  | name           =
  | jpname         = 
  | romaji         = 
  | image          =
  | description =  
  | shop value     = 
}}

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

  | strength = 
  | maxbonus =  

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

  | defense  = 
  | maxbonus = 

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

  | fullness = 

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

  | damage = 

Full Syntax

{{Torneko 1 Item Infobox
  | category       = 
  | name           =
  | jpname         = 
  | romaji         = 
  | image          =
  | description =  
  | shop value     = 
  | strength       = 
  | maxbonus       = 
  | defense        = 
  | fullness       = 
  | damage         = 
}}