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

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#vardefine:name|{{{weapon}}} }}{{#if: {{#vardefineecho:stufftags| {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}
+
<includeonly>{{#vardefine:weapon|{{{weapon}}} }}{{#if: {{#vardefineecho:stufftags| {{lc:{{Q|{{#var:name}}|Stuff Tags}} }} }}
 
  | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 
  | {{#ask: {{#ifeq: | {{#pos:{{#var:stufftags}}|woody}}    || [[Stuff Category::Woody]]    OR}}
 
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
 
           {{#ifeq: | {{#pos:{{#var:stufftags}}|stony}}    || [[Stuff Category::Stony]]    OR}}
Line 7: Line 7:
 
     | format = template
 
     | format = template
 
     | template = Melee Weapons Table Row
 
     | template = Melee Weapons Table Row
     | limit = 20
+
     | limit = 12
 
     | link = none
 
     | link = none
 
   }}
 
   }}

Revision as of 20:36, 12 November 2023

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

Overview

This template can be used as an intermediate template if you want to call Template:Melee Weapons Table Row but want multiple materials.

Example

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
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    [[]] (Error: Page does not exist) [[|]] 4.1 12% 2 s Blunt Expression error: Unexpected < operator.
    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.