Difference between revisions of "Template:Apparel Material Table"
(Removing excess whtiespace) |
m (note always below the table) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>==Material | + | <includeonly>== Material table == |
{{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }} | {{#vardefine:name | {{{ 1 | {{PAGENAME}}}}} }} | ||
− | {{#vardefine:armorsharp|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:armorblunt|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Blunt}}|R}}}}{{#vardefine:armorheat|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}}}}{{#vardefine:insulationheat|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Heat}}|R}}}}{{#vardefine:insulationcold|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Cold}}|R}}}}{{#vardefine: | + | {{#vardefine:armorsharp|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:armorblunt|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Blunt}}|R}}}}{{#vardefine:armorheat|{{formatnum:{{Q|{{#var:name}}|Armor Factor - Sharp}}|R}}}}{{#vardefine:HP|{{formatnum:{{Q|{{#var:name}}|Max Hit Points Base}}|R}}}}{{#vardefine:insulationheat|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Heat}}|R}}}}{{#vardefine:insulationcold|{{formatnum:{{Q|{{#var:name}}|Insulation Factor - Cold}}|R}}}}{{#vardefine:stufftags|{{lc:{{Q|{{#var:name}}|Stuff Tags}}}}}} |
<div><li style="display: inline-table;"> | <div><li style="display: inline-table;"> | ||
{| {{STDT|sortable c_03 text-center}} | {| {{STDT|sortable c_03 text-center}} | ||
− | |||
! Material | ! Material | ||
! data-sort-type="number" | Sharp | ! data-sort-type="number" | Sharp | ||
Line 13: | Line 12: | ||
! data-sort-type="number" | Insulation - Heat | ! data-sort-type="number" | Insulation - Heat | ||
! data-sort-type="number" | Market Value | ! data-sort-type="number" | Market Value | ||
− | + | <!-- #pos returns 0 if its at the first place in the string, thus an {{#if:{{#pos:{{#var:stufftags}}|Leathery|}} fails to detect leathery if its the first vs a null response. This just tests that it doesn't return nothing essentially. --> | |
− | <! | + | {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery|}} || |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}| | + | {{#ask: [[Stuff Category::Leathery]] |
− | {{ | + | | format = template |
− | + | | template = Apparel Material Table Row | |
− | + | | link = none | |
− | + | }} }}<!-- | |
− | + | -->{{#ifeq: | {{#pos:{{#var:stufftags}}|fabric|}} || | |
− | + | {{#ask: [[Stuff Category::Fabric]] | |
− | + | | format = template | |
− | {{ | + | | template = Apparel Material Table Row |
− | {{ | + | | link = none |
− | {{ | + | }} }}<!-- |
− | + | -->{{#ifeq: | {{#pos:{{#var:stufftags}}|woody|}} || | |
− | + | {{#ask: [[Stuff Category::Woody]] | |
− | + | | format = template | |
− | + | | template = Apparel Material Table Row | |
− | {{ | + | | link = none |
− | + | }} }}<!-- | |
− | + | -->{{#ifeq: | {{#pos:{{#var:stufftags}}|stony|}} || | |
− | + | {{#ask: [[Stuff Category::Stony]] | |
− | + | | format = template | |
− | + | | template = Apparel Material Table Row | |
− | }} | + | | link = none |
− | + | }} }}<!-- | |
− | {{#ifeq: | {{#pos:{{#var:stufftags}}| | + | -->{{#ifeq: | {{#pos:{{#var:stufftags}}|metallic|}} || |
− | {{ | + | {{#ask: [[Stuff Category::Metallic]] |
− | + | | format = template | |
− | + | | template = Apparel Material Table Row | |
− | + | | link = none | |
− | + | }} }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#ifeq: | {{#pos:{{#var:stufftags}}| | ||
− | |||
− | |||
− | |||
− | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#ifeq: | {{#pos:{{#var:stufftags}}| | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
|} | |} | ||
− | <sup>Assuming Normal quality, for the effect of other qualities, see [[Quality]].</sup> </li></div></includeonly><noinclude> | + | <br/><sup>Assuming Normal quality, for the effect of other qualities, see [[Quality]].</sup></li></div></includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 00:29, 14 December 2022
Template:Apparel Material Table has been deprecated or removed from the wiki; it is no longer updated or in use. Reason: Functionality merged with Template: Apparel Stats Table |
Description[edit]
This template generates a table summarizing stats for a piece of apparel, including Sharp, Blunt and Heat armor, heat and cold insulation, HP, and Market Value, for the variety of different materials available for it.
The template will automatically detect the material types applicable to the item using the Stuff Tags variable in the infobox and display them. The item must be stuffable and must have the correct Resource X/Resource X Amount parameters in addition to the Stuff Tags, and Resource 1 must be set to "Stuff".
Note that it will automatically add the appropriate heading.
This template is dependent on Template:Apparel Material Table Row.
This template supersedes and merges Template:Clothing material table and Template:Armor material table, but they will be maintained at least until replacement is complete. Lifespan may be extended to ensure Page History integrity.
Parameters[edit]
The first parameter (if present) will specify which piece of apparel to generate the template for.
If absent, {{PAGENAME}}
will be used.
Example usage[edit]
{{Apparel Material Table}}
on the Plate armor page would produce:
Material table
Material | Sharp | Blunt | Heat | Item HP | Insulation - Cold | Insulation - Heat | Market Value |
---|---|---|---|---|---|---|---|
Wooden Plate armor | 39.42% | 39.42% | 29.2% | 188.5 | -8 °C (-14.4 °F) | +0 °C (0 °F) | 300 |
Bioferrite Plate armor | 80.3% | 36.5% | 36.5% | 580 | -2.5 °C (-4.5 °F) | +0 °C (0 °F) | 470 |
Golden Plate armor | 52.56% | 26.28% | 26.28% | 174 | -3 °C (-5.4 °F) | +0 °C (0 °F) | 17125 |
Plasteel Plate armor | 83.22% | 40.15% | 47.45% | 812 | -3 °C (-5.4 °F) | +0 °C (0 °F) | 1830 |
Silver Plate armor | 52.56% | 26.28% | 26.28% | 203 | -3 °C (-5.4 °F) | +0 °C (0 °F) | 1835 |
Steel Plate armor | 65.7% | 32.85% | 43.8% | 290 | -3 °C (-5.4 °F) | +0 °C (0 °F) | 460 |
Uranium Plate armor | 78.84% | 39.42% | 47.45% | 725 | -3 °C (-5.4 °F) | +0 °C (0 °F) | 1280 |
Assuming Normal quality, for the effect of other qualities, see Quality.
{{Apparel Material Table | Duster}}
on any page would produce:
Material table
Material | Sharp | Blunt | Heat | Item HP | Insulation - Cold | Insulation - Heat | Market Value |
---|---|---|---|---|---|---|---|
Bearskin Duster | 33.6% | 7.2% | 45% | 260 | -12 °C (-21.6 °F) | +17 °C (30.6 °F) | 310 |
Birdskin Duster | 20.1% | 4.2% | 45% | 200 | -6 °C (-10.8 °F) | +8.5 °C (15.3 °F) | 180 |
Bluefur Duster | 24.3% | 7.2% | 45% | 260 | -12 °C (-21.6 °F) | +13.6 °C (24.5 °F) | 220 |
Camelhide Duster | 24.3% | 7.2% | 45% | 260 | -9.6 °C (-17.3 °F) | +20.4 °C (36.7 °F) | 220 |
Chinchilla fur Duster | 20.1% | 4.2% | 45% | 200 | -18 °C (-32.4 °F) | +13.6 °C (24.5 °F) | 555 |
Dog leather Duster | 24.3% | 7.2% | 45% | 260 | -8.4 °C (-15.1 °F) | +13.6 °C (24.5 °F) | 196 |
Dread leather Duster | 38.1% | 7.2% | 45% | 260 | -12 °C (-21.6 °F) | +10.2 °C (18.4 °F) | 315 |
Elephant leather Duster | 33.6% | 7.2% | 45% | 300 | -8.4 °C (-15.1 °F) | +10.2 °C (18.4 °F) | 230 |
Foxfur Duster | 24.3% | 6.3% | 45% | 200 | -12 °C (-21.6 °F) | +13.6 °C (24.5 °F) | 315 |
Guinea pig fur Duster | 20.1% | 4.2% | 45% | 120 | -22.8 °C (-41 °F) | +15.3 °C (27.5 °F) | 435 |
Heavy fur Duster | 37.2% | 7.2% | 45% | 300 | -18 °C (-32.4 °F) | +11.9 °C (21.4 °F) | 300 |
Human leather Duster | 19.2% | 7.2% | 45% | 260 | -7.2 °C (-13 °F) | +10.2 °C (18.4 °F) | 370 |
Lightleather Duster | 16.2% | 4.2% | 45% | 200 | -7.2 °C (-13 °F) | +10.2 °C (18.4 °F) | 188 |
Lizardskin Duster | 24.3% | 8.1% | 45% | 200 | -7.2 °C (-13 °F) | +10.2 °C (18.4 °F) | 205 |
Panthera fur Duster | 27.9% | 7.2% | 45% | 260 | -9.6 °C (-17.3 °F) | +20.4 °C (36.7 °F) | 275 |
Patchleather Duster | 13.5% | 5.7% | 27% | 200 | -5.4 °C (-9.7 °F) | +7.65 °C (13.8 °F) | 156 |
Pigskin Duster | 19.2% | 7.2% | 45% | 260 | -7.2 °C (-13 °F) | +10.2 °C (18.4 °F) | 188 |
Plainleather Duster | 24.3% | 7.2% | 45% | 260 | -9.6 °C (-17.3 °F) | +13.6 °C (24.5 °F) | 205 |
Rhinoceros leather Duster | 38.7% | 7.2% | 45% | 300 | -8.4 °C (-15.1 °F) | +11.9 °C (21.4 °F) | 370 |
Thrumbofur Duster | 62.4% | 10.8% | 45% | 400 | -20.4 °C (-36.7 °F) | +18.7 °C (33.7 °F) | 1155 |
Wolfskin Duster | 30.6% | 7.2% | 45% | 260 | -14.4 °C (-25.9 °F) | +13.6 °C (24.5 °F) | 275 |
Alpaca wool Duster | 10.8% | 0% | 33% | 200 | -18 °C (-32.4 °F) | +13.6 °C (24.5 °F) | 340 |
Bison wool Duster | 10.8% | 0% | 33% | 200 | -15.6 °C (-28.1 °F) | +10.2 °C (18.4 °F) | 250 |
Cloth Duster | 10.8% | 0% | 5.4% | 200 | -10.8 °C (-19.4 °F) | +15.3 °C (27.5 °F) | 156 |
Devilstrand Duster | 42% | 10.8% | 90% | 260 | -12 °C (-21.6 °F) | +20.4 °C (36.7 °F) | 475 |
Hyperweave Duster | 60% | 16.2% | 86.4% | 480 | -15.6 °C (-28.1 °F) | +22.1 °C (39.8 °F) | 755 |
Megasloth wool Duster | 24% | 0% | 33% | 200 | -20.4 °C (-36.7 °F) | +10.2 °C (18.4 °F) | 250 |
Muffalo wool Duster | 10.8% | 0% | 33% | 200 | -16.8 °C (-30.2 °F) | +10.2 °C (18.4 °F) | 250 |
Sheep wool Duster | 10.8% | 0% | 33% | 200 | -15.6 °C (-28.1 °F) | +8.5 °C (15.3 °F) | 250 |
Synthread Duster | 28.2% | 7.8% | 27% | 260 | -13.2 °C (-23.8 °F) | +18.7 °C (33.7 °F) | 355 |
Assuming Normal quality, for the effect of other qualities, see Quality.
The above documentation is transcluded from Template:Apparel Material Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |