Template:Infobox Weapon: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="wikitable infobox"
<infobox>
|+ {{{name|{{PAGENAME}}}}}
    <title source="title">
! colspan="2" | Weapon Information
        <default>{{PAGENAME}}</default>
|-
    </title>
! Type
    <image source="image">
| [[:Category:{{{type}}} weapons|{{{type}}}]] [[:Category:{{{handedness}}}-hand weapons|{{{handedness}}}-hand]]
        <default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default>
|-
        <caption source="description" />
! Char Allocation
    </image>
| {{{allocation|?}}} slots
    <group>
|-
        <header>Weapon Information</header>
! Used By
        <data source="type">
| {{#if:{{{class1|}}}|[[{{{class1}}}]]}}{{#if:{{{class2|}}}|, [[{{{class2}}}]]}}{{#if:{{{class3|}}}|, [[{{{class3}}}]]}}
            <label>Type</label>
|-
            <format><!--
! Attack
                -->{{#switch:{{{type}}}<!--
| {{{attack|?}}}
                    -->|Claymore|Sword|Pole|Catalyst|Range|Special|Dagger|Gloves = [[{{{type}}} weapons|{{{type}}}]]<!--
|-
                    -->|#default = {{{type|}}}<!--
! Defense
                -->}}
| {{{defense|?}}}
            </format>
|-
        </data>
! Magic
        <data source="handedness">
| {{{magic|?}}}
            <label>Hands</label>
|-
            <format>{{{handedness|?}}}-hand</format>
! Rarity
        </data>
| {{{rarity|Common}}}
        <data source="allocation">
|-
            <label>Char Allocation</label>
! Value
            <format>{{{allocation|?}}} slots</format>
| {{{value|?}}} gold
        </data>
|}
        <data source="class1">
            <label>Primary Class</label>
        </data>
        <data source="class2">
            <label>Secondary Class</label>
        </data>
        <data source="class3">
            <label>Tertiary Class</label>
        </data>
        <data source="attack">
            <label>Attack</label>
        </data>
        <data source="defense">
            <label>Defense</label>
        </data>
        <data source="magic">
            <label>Magic</label>
        </data>
        <data source="rarity">
            <label>Rarity</label>
        </data>
        <data source="value">
            <label>Value</label>
            <format>{{{value|?}}} gold</format>
        </data>
        <data source="drop1">
            <label>Drops From</label>
        </data>
        <data source="drop2">
            <label>Also Drops From</label>
        </data>
        <data source="notes">
            <label>Special Notes</label>
        </data>
    </group>
    <group layout="horizontal">
        <header>Requirements</header>
        <data source="level">
            <label>Level</label>
        </data>
        <data source="str">
            <label>STR</label>
        </data>
        <data source="dex">
            <label>DEX</label>
        </data>
        <data source="int">
            <label>INT</label>
        </data>
    </group>
</infobox>
 
<!-- Categories -->
[[Category:{{{type}}} weapons]]
[[Category:{{{type}}} weapons]]
[[Category:{{{handedness}}}-hand weapons]]
[[Category:{{{handedness}}}-hand weapons]]
Line 35: Line 87:
{{#if:{{{class3|}}}|[[Category:{{{class3}}} weapons]]}}
{{#if:{{{class3|}}}|[[Category:{{{class3}}} weapons]]}}
{{#if:{{{drop1|}}}|[[Category:Dropped by {{{drop1}}}]]}}
{{#if:{{{drop1|}}}|[[Category:Dropped by {{{drop1}}}]]}}
{{#if:{{{drop2|}}}|[[Category:Dropped by {{{drop2}}}]]}}
</includeonly>
</includeonly>
<noinclude>
{{Documentation|Type=Infobox}}
</noinclude>

Revision as of 03:28, 6 January 2026


Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

The documentation for this template is missing. Click here to create it.