Template:CraftHead: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 174: Line 174:
{{!}}-
{{!}}-


|carvedbow|cb={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
|shapedbow|sb={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
! Material
! Material
! [[Property:Crafting hardness is|Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
! [[Property:Crafting hardness is|Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
Line 189: Line 189:
}}
}}


|carvedammo|ca={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
|carvedammo|ca|shapedammo|sa={{{!}} border="1" class="sortable {{#switch:{{{co}}}|y=mw-collapsible mw-collapsed|}}"
! Material
! Material
! [[Property:Crafting hardness is|Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
! [[Property:Crafting hardness is|Hard]]{{#switch:{{{d|}}}|-=|{{#switch:{{{c|}}}|n|no|-=|!! Dur}}}}
Line 217: Line 217:
|-
|-
| cw=<br />ca= || bone or stone weapons<br />stone or bone ammo
| cw=<br />ca= || bone or stone weapons<br />stone or bone ammo
|-
| sb=<br />sa= || wood bows<br />wood ammo
|-
|-
| mw=<br />mws= || metal weapons<br />swappable metal weapons
| mw=<br />mws= || metal weapons<br />swappable metal weapons

Revision as of 22:42, 18 June 2015

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
sb=
sa=
wood bows
wood ammo
mw=
mws=
metal weapons
swappable metal weapons
t
st=
tools
short tool display

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.