Difference between revisions of "Template:Melee Weapons Table/Material"

From RimWorld Wiki
Jump to navigation Jump to search
(use #ask again. it wasn't the issue. Fixed leftover #var:weapon)
(Replaced template Q with #show)
 
Line 1: Line 1:
 
<includeonly><!--
 
<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
 
VARIABLES
 
-->{{#vardefine:weaponMWT | {{{weaponMWT}}} }}<!--
 
-->{{#vardefine:weaponMWT | {{{weaponMWT}}} }}<!--
-->{{#vardefine:stufftags | {{lc: {{Q|{{#var:weaponMWT}}|Stuff Tags}} }} }}<!--
+
-->{{#vardefine:stufftags | {{lc: {{#show:{{#var:weaponMWT}}|?Stuff Tags|link=none}} }} }}<!--
  
 
CALL THE ROW TEMPLATE
 
CALL THE ROW TEMPLATE

Latest revision as of 11:52, 14 November 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

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
    MaterialRitual Quality Check Off.pngRitual Quality Check On.png
  • Name Material Awful Poor Normal or
    no Quality
    Good Excellent Masterwork Legendary Average
    cooldown
    Damage
    type
    Value
    in Silver
    DPS AP DPS AP DPS AP DPS AP DPS AP DPS AP DPS AP
    Human Unarmed human 4.1 12% 2 s Blunt
    Beer Beer 4.4 12.75% 2 s Blunt 12
    Breach axe Breach axe Bioferrite 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 Breach axe Gold 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 Breach axe Plasteel 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 Breach axe Silver 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 Breach axe Steel 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 Breach axe Uranium 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 Club Bioferrite Bioferrite 5.75 17.15% 2 s Blunt 41
    Club Club Gold Gold 6.31 18.83% 2 s Blunt 4005
    Club Club Granite blocks Granite blocks 5.05 18.83% 2.5 s Blunt 42
    Club Club Limestone blocks Limestone blocks 5.05 18.83% 2.5 s Blunt 42
    Club Club Marble blocks Marble blocks 5.05 18.83% 2.5 s Blunt 41
    Club Club Plasteel Plasteel 6.9 17.15% 1.67 s Blunt 370
    Club Club Sandstone blocks Sandstone blocks 5.05 18.83% 2.5 s Blunt 41
    Club Club Silver Silver 6.31 18.83% 2 s Blunt 405
    Club Club Slate blocks Slate blocks 5.05 18.83% 2.5 s Blunt 42
    Club Club Steel Steel 6.31 18.83% 2 s Blunt 80
    Club Club Jade Jade 7.3 27.25% 2.5 s Blunt 205
    Club Club Uranium Uranium 8.42 27.25% 2.17 s Blunt 250
    Club Club Wood Wood 5.75 17.15% 2 s Blunt 51
    Eltex staff Eltex staff Content added by the Royalty DLC [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 Mace Bioferrite 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 Mace Gold 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 Mace Plasteel 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 Mace Silver 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 Mace Steel 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 Mace Uranium 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 Mace Wood 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 Persona zeushammer Content added by the Royalty DLC [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 Warhammer Content added by the Royalty DLC Bioferrite 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 Warhammer Content added by the Royalty DLC Gold 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 Warhammer Content added by the Royalty DLC Plasteel 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 Warhammer Content added by the Royalty DLC Silver 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 Warhammer Content added by the Royalty DLC Steel 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 Warhammer Content added by the Royalty DLC Uranium 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 Warhammer Content added by the Royalty DLC Wood 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 Wood 4.78 14.25% 2 s Blunt 1.2
    Zeushammer Zeushammer Content added by the Royalty DLC [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.