Template:CraftHead: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(full impliment of row for collapse)
(removing header links for metal weapons)
Line 123: Line 123:


|metalweapon|mw={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
|metalweapon|mw={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
! [[Property:Crafting hardness is|Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
! Hard{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
! Mod
! Mod
! Pierce
! [[Property:Puncture damage is|Pierce]]
! Slice
! [[Property:Slice damage is|Slice]]
! [[Property:Impact damage is|Impact]]
! Impact
! FOI
! [[Property:FOI is|FOI]]
! [[Property:Balance is|Balance]]
! Balance
! [[Property:Suitedness is|Suit]]{{#switch:{{{c|}}}|n|no|-=|!! [[Property:Construction is|Construction]]}}
! Suit{{#switch:{{{c|}}}|n|no|-=|!! Construction}}
! [[Property:Weight of|WT]]{{#switch:{{{co}}}|y=!!  }}
! WT{{#switch:{{{co}}}|y=!!  }}
{{#if:{{{h|}}}|
{{#if:{{{h|}}}|
{{!}}+ <big>'''{{{h}}}'''</big>
{{!}}+ <big>'''{{{h}}}'''</big>
Line 137: Line 137:


|swappablemetalweapon|mws={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
|swappablemetalweapon|mws={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
! [[Property:Crafting hardness is|Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
! Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
! Mod
! Mod
! Mode
! Mode
! Pierce
! [[Property:Puncture damage is|Pierce]]
! Slice
! [[Property:Slice damage is|Slice]]
! [[Property:Impact damage is|Impact]]
! Impact
! FOI
! [[Property:FOI is|FOI]]
! [[Property:Balance is|Balance]]
! Balance
! [[Property:Suitedness is|Suit]]{{#switch:{{{c|}}}|n|no|-=|!! [[Property:Construction is|Construction]]}}
! Suit{{#switch:{{{c|}}}|n|no|-=|!! Construction}}
! [[Property:Weight of|WT]]{{#switch:{{{co}}}|y=!! &nbsp;}}
! WT{{#switch:{{{co}}}|y=!! &nbsp;}}
{{#if:{{{h|}}}|
{{#if:{{{h|}}}|
{{!}}+ <big>'''{{{h}}}'''</big>
{{!}}+ <big>'''{{{h}}}'''</big>

Revision as of 19:14, 31 December 2014

A template for setting up crafting template tables.

The first variable determines which it's set up for.

sma=
lma=
metal armor, short form
metal armor, long form
sla=
lla=
leather, bone, or stone armor, short form
leather, bone, or stone armor, long form
sls=
lls=
leather shield, short form
leather shield, long form
sms=
lms=
metal shield, short form
metal shield, long form
cw=
ca=
bone or stone weapons
stone or bone ammo
mw=
mws=
metal weapons
swappable metal weapons
t= tools

Variable "h" determines if there is a table title and what it is. Note that for unknown reasons, adding a title will disable sorting.

Variable "co" determines if the table is collapsible.

Variable "d" determines if durability is shown, with "-" disabling.

Variable "c" determines if construction and durability are shown, with "-" disabling.