Difference between revisions of "Template:Melee Weapons Table/Material"
Jump to navigation
Jump to search
(trying to fix missing icon for non-stuffable weapons) |
(Replaced template Q with #show) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: | + | <includeonly><!-- |
+ | !!! WARNING !!! | ||
+ | This template needs to be highly optimised since it is usually called dozens of times on a page. Check the "Preprocessor visited node count" when editing this template | ||
+ | |||
+ | VARIABLES | ||
+ | -->{{#vardefine:weaponMWT | {{{weaponMWT}}} }}<!-- | ||
+ | -->{{#vardefine:stufftags | {{lc: {{#show:{{#var:weaponMWT}}|?Stuff Tags|link=none}} }} }}<!-- | ||
+ | |||
+ | CALL THE ROW TEMPLATE | ||
+ | -->{{#if: {{#var:stufftags}}<!-- | ||
+ | stuffable weapons --> | ||
| {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} | | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|leathery}} || [[Stuff Category::Leathery]] OR}} | ||
{{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} | {{#ifeq: | {{#pos:{{#var:stufftags}}|fabric}} || [[Stuff Category::Fabric]] OR}} | ||
Line 5: | Line 15: | ||
{{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} | {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}} || [[Stuff Category::Stony]] OR}} | ||
{{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] | {{#ifeq: | {{#pos:{{#var:stufftags}}|metallic}} || [[Stuff Category::Metallic]] OR}} [[Stuff Category::PLACEHOLDER]] | ||
+ | | named args = true | ||
+ | | ?Name = material | ||
| format = template | | format = template | ||
| template = Melee Weapons Table Row | | template = Melee Weapons Table Row | ||
| link = none | | link = none | ||
− | }} | + | }}<!-- |
+ | non-stuffable weapons --> | ||
| {{Melee Weapons Table Row}} | | {{Melee Weapons Table Row}} | ||
− | }}</includeonly><noinclude> | + | }}<!-- |
+ | |||
+ | DOCUMENTATION | ||
+ | --></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 11:52, 14 November 2023
Overview[edit]
This template can be used as an intermediate template if you want to call Template:Melee Weapons Table Row but want multiple materials.
Example[edit]
The following example is taken from blunt weapons.
<div><li style="display: inline-table;"> {| {{STDT|any}} ! Feature !! Toggle {{Control Panel|MeleeWeaponsTable|label = [[Material]]}} |} </li></div> <div><li style="display: inline-table;"> {| {{STDT|sortable c_06 text-center}} ! colspan="2" rowspan="2" style="vertical-align: middle;" | Name ! style="vertical-align: middle;" rowspan="2" | Material ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Awful ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Poor ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Normal or<br/>no Quality ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Good ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Excellent ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Masterwork ! colspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Legendary ! rowspan="2" style="border:#c56e6c 2px; border-style: none solid none solid;" | Average<br/>cooldown ! rowspan="2" style="vertical-align: middle; border:#c56e6c 2px; border-style: none solid none solid;" | Damage<br/>type ! rowspan="2" style="vertical-align: middle;" data-sort-type="number" | Value<br/>in {{Icon Small|silver}} |- ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none none none solid;" | {{DPS}} ! style="background-color:#f68a87; border:#c56e6c 2px; border-style: none solid none none;" | {{AP}} |- ! {{Icon Small|human}} ! style="text-align: left" | Unarmed [[human]] ! – | data-sort-value="{{#vardefineecho:humanDPS|{{True Melee DPS Calculator|Human}} }}" | – | data-sort-value="{{#var:trueAP }}" | – | data-sort-value="{{#var:humanDPS}}" | – | data-sort-value="{{#var:trueAP }}" | – | {{#var:humanDPS}} | {{#var:trueAP}}% | data-sort-value="{{#var:humanDPS}}" | – | data-sort-value="{{#var:trueAP }}" | – | data-sort-value="{{#var:humanDPS}}" | – | data-sort-value="{{#var:trueAP }}" | – | data-sort-value="{{#var:humanDPS}}" | – | data-sort-value="{{#var:trueAP }}" | – | data-sort-value="{{#var:humanDPS}}" | – | data-sort-value="{{#var:trueAP }}" | – | 2 s | Blunt | – |- {{#ask: [[Category:Blunt Weapons]] [[Mode::Melee]] | named args = yes | ?Name = weaponMWT | format = template | template = Melee Weapons Table/Material | limit = 500 | sort = Name }} |} :{{Note label|Ultra|C|C}} These weapons cannot be created by the player, they are able to be obtained through quests and purchasing them from Merchants. All but the [[Eltex staff]] come in "[[Persona weapon|persona]]" variants that cannot be wielded by anyone other than the bonded pawn unless it has the "[[Persona weapon#Freewielder|freewielder]]" trait, so make sure you choose a good pawn to use them. </li></div>
Feature | Toggle |
---|---|
Material |
Name | Material | Awful | Poor | Normal or no Quality |
Good | Excellent | Masterwork | Legendary | Average cooldown |
Damage type |
Value in | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DPS | AP | DPS | AP | DPS | AP | DPS | AP | DPS | AP | DPS | AP | DPS | AP | ||||||
Unarmed human | – | – | – | – | – | 4.1 | 12% | – | – | – | – | – | – | – | – | 2 s | Blunt | – | |
Beer | – | – | – | – | – | 4.4 | 12.75% | – | – | – | – | – | – | – | – | 2 s | Blunt | 12 | |
Breach axe | Bioferrite | 4.71 | 8.61% | 5.19 | 9.5% | 5.68 | 10.39% | 6.17 | 11.28% | 6.65 | 12.17% | 7.87 | 14.39% | 8.84 | 16.16% | 1.25 s | Blunt | 83 | |
Breach axe | Gold | 5.14 | 9.4% | 5.68 | 10.39% | 6.22 | 11.38% | 6.76 | 12.36% | 7.3 | 13.35% | 8.65 | 15.82% | 9.73 | 17.79% | 1.25 s | Blunt | 5015 | |
Breach axe | Plasteel | 5.6 | 8.61% | 6.18 | 9.5% | 6.76 | 10.39% | 7.34 | 11.28% | 7.92 | 12.17% | 9.37 | 14.39% | 10.52 | 16.16% | 1.05 s | Blunt | 490 | |
Breach axe | Silver | 5.14 | 9.4% | 5.68 | 10.39% | 6.22 | 11.38% | 6.76 | 12.36% | 7.3 | 13.35% | 8.65 | 15.82% | 9.73 | 17.79% | 1.25 s | Blunt | 520 | |
Breach axe | Steel | 5.14 | 9.4% | 5.68 | 10.39% | 6.22 | 11.38% | 6.76 | 12.36% | 7.3 | 13.35% | 8.65 | 15.82% | 9.73 | 17.79% | 1.25 s | Blunt | 113 | |
Breach axe | Uranium | 6.76 | 13.35% | 7.51 | 14.83% | 8.26 | 16.31% | 9.01 | 17.79% | 9.76 | 19.28% | 11.63 | 22.98% | 14.18 | 28.46% | 1.38 s | Blunt | 335 | |
Club | Bioferrite | – | – | – | – | 5.75 | 17.15% | – | – | – | – | – | – | – | – | 2 s | Blunt | 41 | |
Club | Gold | – | – | – | – | 6.31 | 18.83% | – | – | – | – | – | – | – | – | 2 s | Blunt | 4005 | |
Club | Granite blocks | – | – | – | – | 5.05 | 18.83% | – | – | – | – | – | – | – | – | 2.5 s | Blunt | 42 | |
Club | Limestone blocks | – | – | – | – | 5.05 | 18.83% | – | – | – | – | – | – | – | – | 2.5 s | Blunt | 42 | |
Club | Marble blocks | – | – | – | – | 5.05 | 18.83% | – | – | – | – | – | – | – | – | 2.5 s | Blunt | 41 | |
Club | Plasteel | – | – | – | – | 6.9 | 17.15% | – | – | – | – | – | – | – | – | 1.67 s | Blunt | 370 | |
Club | Sandstone blocks | – | – | – | – | 5.05 | 18.83% | – | – | – | – | – | – | – | – | 2.5 s | Blunt | 41 | |
Club | Silver | – | – | – | – | 6.31 | 18.83% | – | – | – | – | – | – | – | – | 2 s | Blunt | 405 | |
Club | Slate blocks | – | – | – | – | 5.05 | 18.83% | – | – | – | – | – | – | – | – | 2.5 s | Blunt | 42 | |
Club | Steel | – | – | – | – | 6.31 | 18.83% | – | – | – | – | – | – | – | – | 2 s | Blunt | 80 | |
Club | Jade | – | – | – | – | 7.3 | 27.25% | – | – | – | – | – | – | – | – | 2.5 s | Blunt | 205 | |
Club | Uranium | – | – | – | – | 8.42 | 27.25% | – | – | – | – | – | – | – | – | 2.17 s | Blunt | 250 | |
Club | Wood | – | – | – | – | 5.75 | 17.15% | – | – | – | – | – | – | – | – | 2 s | Blunt | 51 | |
Eltex staff [C] | – | 3.98 | 12.6% | 4.12 | 13.4% | 4.51 | 16.5% | 4.88 | 17.85% | 5.24 | 19.2% | 6.16 | 22.58% | 6.9 | 25.28% | 2.45 s | Blunt | 2,000 | |
Mace | Bioferrite | 5.19 | 15.74% | 5.76 | 17.46% | 6.32 | 19.18% | 6.88 | 20.89% | 7.45 | 22.61% | 8.86 | 26.9% | 9.98 | 30.34% | 2 s | Blunt | 92 | |
Mace | Gold | 5.69 | 17.27% | 6.32 | 19.18% | 6.95 | 21.08% | 7.57 | 22.99% | 8.2 | 24.9% | 9.76 | 29.67% | 11.02 | 33.49% | 2 s | Blunt | 5020 | |
Mace | Plasteel | 6.23 | 15.74% | 6.91 | 17.46% | 7.58 | 19.18% | 8.26 | 20.89% | 8.94 | 22.61% | 10.63 | 26.9% | 13.02 | 31.56% | 1.6 s | Blunt | 495 | |
Mace | Silver | 5.69 | 17.27% | 6.32 | 19.18% | 6.95 | 21.08% | 7.57 | 22.99% | 8.2 | 24.9% | 9.76 | 29.67% | 11.02 | 33.49% | 2 s | Blunt | 520 | |
Mace | Steel | 5.69 | 17.27% | 6.32 | 19.18% | 6.95 | 21.08% | 7.57 | 22.99% | 8.2 | 24.9% | 9.76 | 29.67% | 11.02 | 33.49% | 2 s | Blunt | 117 | |
Mace | Uranium | 7.57 | 24.9% | 8.43 | 27.76% | 9.3 | 30.63% | 10.17 | 33.49% | 11.04 | 36.35% | 13.87 | 46.22% | 15.78 | 52.59% | 2.2 s | Blunt | 340 | |
Mace | Wood | 5.19 | 15.74% | 5.76 | 17.46% | 6.32 | 19.18% | 6.88 | 20.89% | 7.45 | 22.61% | 8.86 | 26.9% | 9.98 | 30.34% | 2 s | Blunt | 75 | |
Persona zeushammer [C] | – | 9.91 | 31.07% | 11.06 | 34.7% | 13.17 | 40% | 14.49 | 44% | 15.8 | 48% | 19.1 | 58% | 21.73 | 66% | 2.05 s | Blunt + EMP | 3,000 | |
Warhammer | Bioferrite | 5.13 | 19.16% | 5.7 | 21.31% | 6.28 | 23.45% | 6.85 | 25.6% | 7.42 | 27.74% | 8.86 | 33.1% | 10 | 37.39% | 2.5 s | Blunt | 275 | |
Warhammer | Gold | 5.64 | 21.07% | 6.28 | 23.45% | 6.91 | 25.83% | 7.55 | 28.22% | 8.19 | 30.6% | 9.78 | 36.56% | 11.26 | 43.73% | 2.6 s | Blunt | 15060 | |
Warhammer | Plasteel | 6.21 | 19.16% | 6.9 | 21.31% | 7.59 | 23.45% | 8.29 | 25.6% | 8.98 | 27.74% | 10.71 | 33.1% | 12.67 | 39.35% | 2.08 s | Blunt | 1495 | |
Warhammer | Silver | 5.64 | 21.07% | 6.28 | 23.45% | 6.91 | 25.83% | 7.55 | 28.22% | 8.19 | 30.6% | 9.78 | 36.56% | 11.26 | 43.73% | 2.6 s | Blunt | 1565 | |
Warhammer | Steel | 5.64 | 21.07% | 6.28 | 23.45% | 6.91 | 25.83% | 7.55 | 28.22% | 8.19 | 30.6% | 9.78 | 36.56% | 11.26 | 43.73% | 2.6 s | Blunt | 350 | |
Warhammer | Uranium | 7.53 | 30.6% | 8.41 | 34.18% | 9.29 | 37.75% | 10.17 | 41.33% | 11.17 | 47.7% | 13.5 | 57.64% | 15.36 | 65.59% | 2.86 s | Blunt | 1025 | |
Warhammer | Wood | 5.13 | 19.16% | 5.7 | 21.31% | 6.28 | 23.45% | 6.85 | 25.6% | 7.42 | 27.74% | 8.86 | 33.1% | 10 | 37.39% | 2.5 s | Blunt | 225 | |
Wood | – | – | – | – | – | 4.78 | 14.25% | – | – | – | – | – | – | – | – | 2 s | Blunt | 1.2 | |
Zeushammer [C] | – | 7.62 | 31.07% | 8.52 | 34.7% | 9.41 | 38.33% | 10.3 | 41.97% | 11.78 | 48% | 14.24 | 58% | 16.2 | 66% | 2.75 s | Blunt + EMP | 2,000 |
- C These weapons cannot be created by the player, they are able to be obtained through quests and purchasing them from Merchants. All but the Eltex staff come in "persona" variants that cannot be wielded by anyone other than the bonded pawn unless it has the "freewielder" trait, so make sure you choose a good pawn to use them.
The above documentation is transcluded from Template:Melee Weapons Table/Material/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. |