Difference between revisions of "Template:Weapon Time"
Jump to navigation
Jump to search
(fixed that headers weren't hidden) |
(added toggle (wasn't that complicated actually)) |
||
Line 2: | Line 2: | ||
VARIABLES | VARIABLES | ||
− | -->{{#vardefine:col_A}}{{#vardefine:col_C}}{{#switch: {{{collapse|}}} | aiming = {{#vardefine:col_A | true}} | cooldown = {{#vardefine:col_C | true}} }}<!-- | + | -->{{#vardefine:col_A}}{{#vardefine:col_C}}<!-- |
− | -->{{#vardefine: | + | -->{{#switch: {{{collapse|}}} | aiming = {{#vardefine:col_A | true}} | cooldown = {{#vardefine:col_C | true}} }}<!-- |
− | --><!-- | + | -->{{#vardefine:toggle | [<span style="color:#0645ad;" class="mw-collapsible mw-customtoggle-ingredient-list-{{{collapse|}}}" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}">Expand</span><span style="color:#0645ad;" class="mw-collapsible mw-collapsed mw-customtoggle-ingredient-list-{{{collapse|}}}" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}">Collapse</span>]}}<!-- |
TABLE | TABLE | ||
--><div><li style="display:inline-table;"> | --><div><li style="display:inline-table;"> | ||
{| {{STDT|sortable c_06 text-center}} | {| {{STDT|sortable c_06 text-center}} | ||
− | ! colspan="2" rowspan=" | + | ! colspan="2" rowspan="5" | Weapon !! colspan="14" style="border-color:#c56e6c; border-style:solid solid solid none; border-width:1px" | {{DPS}} |
|- style="background-color:#f68a87;" | |- style="background-color:#f68a87;" | ||
− | ! | + | ! colspan="14" style="border-style:none solid none none; border-width:1px; border-color:#c56e6c;" | with [[Aiming Time]] of {{#if: {{#var:col_A}} | 100% {{#var:toggle}} }} |
− | <tr style="background-color:#f68a87;"> | + | <tr style="background-color:#f68a87;" {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> |
− | ! style="border-style:none none none none;" {{!}} 100% {{#if: {{#var:col_C}} || | + | ! style="border-style:none none none none;" {{!}} 100% |
− | </tr> | + | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 180% </th> |
+ | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 125% </th> | ||
+ | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 60% </th> | ||
+ | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 50% </th> | ||
+ | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 10% </th> | ||
+ | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 1% </th> | ||
+ | <th {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> | ||
+ | ! 180% !! 125% !! 60% !! 50% !! 10% !! style="border-style:none solid none none; border-width:1px; border-color:#c56e6c;" {{!}} 1% | ||
+ | </tr> | ||
|- style="background-color:#f68a87;" | |- style="background-color:#f68a87;" | ||
− | ! | + | ! colspan="14" style="border-style:solid solid none none; border-width:1px; border-color:#c56e6c;" | and [[Ranged Cooldown Multiplier]] {{BiotechIcon}} of {{#if: {{#var:col_C}} | 100% {{#var:toggle}} }} |
− | <tr style="background-color:#f68a87;"> | + | <tr style="background-color:#f68a87;" {{#if: {{#var:col_C}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> |
− | ! style="border-style:none none none none;" {{!}} 100% {{#if: {{#var:col_A}} || | + | ! style="border-style:none none none none;" {{!}} 100% |
− | </tr> | + | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> |
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 100% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 80% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 80% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 80% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 80% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 80% </th> | ||
+ | <th {{#if: {{#var:col_A}} | class="mw-collapsible mw-collapsed" id="mw-customcollapsible-ingredient-list-{{{collapse|}}}"}}> 80% </th> | ||
+ | ! style="border-style:none solid none none; border-width:1px; border-color:#c56e6c;" {{!}} 80% | ||
+ | </tr> | ||
|- | |- | ||
{{#ask: [[Aiming Time Base::+]] [[Category:Weapons]] [[Class::!Mechanoid Weapons]] [[Name::!Uranium slug cannon]] [[Name::!Thump cannon]] [[Name::!Autocannon]] [[Name::!Light charge blaster]] [[Name::!Mini-turret gun]] [[Mode::!Single-Use]] | {{#ask: [[Aiming Time Base::+]] [[Category:Weapons]] [[Class::!Mechanoid Weapons]] [[Name::!Uranium slug cannon]] [[Name::!Thump cannon]] [[Name::!Autocannon]] [[Name::!Light charge blaster]] [[Name::!Mini-turret gun]] [[Mode::!Single-Use]] |
Revision as of 12:30, 13 December 2023
This page has been suggested for recoding. Reason: Consider collapsible options to use on the two stat pages - i.e. on Aiming Time, ranged cooldown is collapsed by default by expandible, and vice versa. You can help RimWorld Wiki by improving it. |
Overview
This template is part of a system of templates that generate a table of ranged weapons and their DPS depending on Aiming Time and Ranged Cooldown Multiplier .
- Template:Weapon Time generates the structure of the table and searches for all ranged weapons that should be included in the table.
- Template:Weapon Time Row generates the individual rows for that table and isn't supposed to be used on it's own.
Parameters
Template:Weapon Time has the following optional parameter:
collapse=
Examples
Standard
Including {{Weapon Time}}
on any page results in:
Weapon | DPS | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
with Aiming Time of | |||||||||||||||
100% | 180% | 125% | 60% | 50% | 10% | 1% | 100% | 180% | 125% | 60% | 50% | 10% | 1% | ||
and Ranged Cooldown Multiplier of | |||||||||||||||
100% | 100% | 100% | 100% | 100% | 100% | 100% | 80% | 80% | 80% | 80% | 80% | 80% | 80% | ||
Assault rifle | 100% | 79% | 92% | 115% | 120% | 142% | 148% | 113% | 87% | 103% | 132% | 138% | 169% | 178% | |
Autopistol | 100% | 84% | 95% | 110% | 113% | 126% | 130% | 118% | 97% | 111% | 133% | 137% | 157% | 162% | |
Bolt-action rifle | 100% | 70% | 88% | 127% | 136% | 192% | 211% | 110% | 75% | 96% | 144% | 156% | 234% | 263% | |
Chain shotgun | 100% | 75% | 91% | 120% | 126% | 160% | 170% | 110% | 81% | 99% | 135% | 143% | 188% | 202% | |
Charge lance | 100% | 76% | 91% | 118% | 124% | 153% | 162% | 114% | 84% | 103% | 138% | 146% | 189% | 202% | |
Charge rifle | 100% | 81% | 93% | 113% | 117% | 136% | 141% | 113% | 89% | 105% | 131% | 136% | 162% | 169% | |
EMP grenades | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
EMP launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Frag grenades | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
Greatbow | 100% | 69% | 88% | 130% | 140% | 206% | 230% | 109% | 73% | 95% | 146% | 159% | 250% | 287% | |
Heavy SMG | 100% | 80% | 93% | 114% | 118% | 138% | 144% | 113% | 88% | 104% | 131% | 137% | 164% | 172% | |
Incendiary launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
LMG | 100% | 74% | 90% | 121% | 127% | 163% | 174% | 109% | 79% | 98% | 135% | 143% | 190% | 205% | |
Machine pistol | 100% | 80% | 93% | 114% | 118% | 138% | 143% | 112% | 88% | 103% | 130% | 136% | 163% | 170% | |
Minigun | 100% | 77% | 92% | 117% | 123% | 149% | 157% | 107% | 82% | 98% | 127% | 134% | 166% | 176% | |
Molotov cocktails | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
Pila | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Pump shotgun | 100% | 75% | 91% | 120% | 126% | 160% | 171% | 113% | 82% | 101% | 140% | 148% | 197% | 213% | |
Recurve bow | 100% | 73% | 90% | 123% | 131% | 173% | 186% | 112% | 79% | 99% | 142% | 152% | 212% | 232% | |
Revolver | 100% | 89% | 96% | 107% | 109% | 117% | 119% | 120% | 104% | 115% | 130% | 133% | 145% | 148% | |
Short bow | 100% | 74% | 90% | 122% | 129% | 168% | 180% | 112% | 80% | 100% | 141% | 150% | 206% | 225% | |
Smoke launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Sniper rifle | 100% | 67% | 87% | 132% | 143% | 219% | 248% | 109% | 71% | 93% | 147% | 162% | 265% | 309% | |
Hellcat rifle | 100% | 78% | 92% | 116% | 121% | 146% | 153% | 112% | 85% | 102% | 133% | 140% | 174% | 184% | |
Nerve spiker | 100% | 73% | 90% | 123% | 131% | 173% | 186% | 112% | 79% | 99% | 142% | 152% | 212% | 232% | |
Tactical turret gun | 100% | 100% | 100% | 100% | 100% | 100% | 100% | 124% | 124% | 124% | 124% | 124% | 124% | 124% | |
Flamebow | 100% | 74% | 90% | 122% | 129% | 168% | 180% | 112% | 80% | 100% | 141% | 150% | 206% | 225% | |
Grenadier armor | 100% | 68% | 87% | 132% | 143% | 217% | 246% | 109% | 71% | 93% | 147% | 161% | 263% | 307% |
Collapse Ranged Cooldown Multiplier
Including {{Weapon Time|collapse = cooldown}}
on any page results in:
Weapon | DPS | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
with Aiming Time of | |||||||||||||||
100% | 180% | 125% | 60% | 50% | 10% | 1% | 100% | 180% | 125% | 60% | 50% | 10% | 1% | ||
and Ranged Cooldown Multiplier of 100% [ExpandCollapse] | |||||||||||||||
100% | 100% | 100% | 100% | 100% | 100% | 100% | 80% | 80% | 80% | 80% | 80% | 80% | 80% | ||
Assault rifle | 100% | 79% | 92% | 115% | 120% | 142% | 148% | 113% | 87% | 103% | 132% | 138% | 169% | 178% | |
Autopistol | 100% | 84% | 95% | 110% | 113% | 126% | 130% | 118% | 97% | 111% | 133% | 137% | 157% | 162% | |
Bolt-action rifle | 100% | 70% | 88% | 127% | 136% | 192% | 211% | 110% | 75% | 96% | 144% | 156% | 234% | 263% | |
Chain shotgun | 100% | 75% | 91% | 120% | 126% | 160% | 170% | 110% | 81% | 99% | 135% | 143% | 188% | 202% | |
Charge lance | 100% | 76% | 91% | 118% | 124% | 153% | 162% | 114% | 84% | 103% | 138% | 146% | 189% | 202% | |
Charge rifle | 100% | 81% | 93% | 113% | 117% | 136% | 141% | 113% | 89% | 105% | 131% | 136% | 162% | 169% | |
EMP grenades | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
EMP launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Frag grenades | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
Greatbow | 100% | 69% | 88% | 130% | 140% | 206% | 230% | 109% | 73% | 95% | 146% | 159% | 250% | 287% | |
Heavy SMG | 100% | 80% | 93% | 114% | 118% | 138% | 144% | 113% | 88% | 104% | 131% | 137% | 164% | 172% | |
Incendiary launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
LMG | 100% | 74% | 90% | 121% | 127% | 163% | 174% | 109% | 79% | 98% | 135% | 143% | 190% | 205% | |
Machine pistol | 100% | 80% | 93% | 114% | 118% | 138% | 143% | 112% | 88% | 103% | 130% | 136% | 163% | 170% | |
Minigun | 100% | 77% | 92% | 117% | 123% | 149% | 157% | 107% | 82% | 98% | 127% | 134% | 166% | 176% | |
Molotov cocktails | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
Pila | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Pump shotgun | 100% | 75% | 91% | 120% | 126% | 160% | 171% | 113% | 82% | 101% | 140% | 148% | 197% | 213% | |
Recurve bow | 100% | 73% | 90% | 123% | 131% | 173% | 186% | 112% | 79% | 99% | 142% | 152% | 212% | 232% | |
Revolver | 100% | 89% | 96% | 107% | 109% | 117% | 119% | 120% | 104% | 115% | 130% | 133% | 145% | 148% | |
Short bow | 100% | 74% | 90% | 122% | 129% | 168% | 180% | 112% | 80% | 100% | 141% | 150% | 206% | 225% | |
Smoke launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Sniper rifle | 100% | 67% | 87% | 132% | 143% | 219% | 248% | 109% | 71% | 93% | 147% | 162% | 265% | 309% | |
Hellcat rifle | 100% | 78% | 92% | 116% | 121% | 146% | 153% | 112% | 85% | 102% | 133% | 140% | 174% | 184% | |
Nerve spiker | 100% | 73% | 90% | 123% | 131% | 173% | 186% | 112% | 79% | 99% | 142% | 152% | 212% | 232% | |
Tactical turret gun | 100% | 100% | 100% | 100% | 100% | 100% | 100% | 124% | 124% | 124% | 124% | 124% | 124% | 124% | |
Flamebow | 100% | 74% | 90% | 122% | 129% | 168% | 180% | 112% | 80% | 100% | 141% | 150% | 206% | 225% | |
Grenadier armor | 100% | 68% | 87% | 132% | 143% | 217% | 246% | 109% | 71% | 93% | 147% | 161% | 263% | 307% |
Collapse Aiming Time
Including {{Weapon Time|collapse = aiming}}
on any page results in:
Weapon | DPS | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
with Aiming Time of 100% [ExpandCollapse] | |||||||||||||||
100% | 180% | 125% | 60% | 50% | 10% | 1% | 100% | 180% | 125% | 60% | 50% | 10% | 1% | ||
and Ranged Cooldown Multiplier of | |||||||||||||||
100% | 100% | 100% | 100% | 100% | 100% | 100% | 80% | 80% | 80% | 80% | 80% | 80% | 80% | ||
Assault rifle | 100% | 79% | 92% | 115% | 120% | 142% | 148% | 113% | 87% | 103% | 132% | 138% | 169% | 178% | |
Autopistol | 100% | 84% | 95% | 110% | 113% | 126% | 130% | 118% | 97% | 111% | 133% | 137% | 157% | 162% | |
Bolt-action rifle | 100% | 70% | 88% | 127% | 136% | 192% | 211% | 110% | 75% | 96% | 144% | 156% | 234% | 263% | |
Chain shotgun | 100% | 75% | 91% | 120% | 126% | 160% | 170% | 110% | 81% | 99% | 135% | 143% | 188% | 202% | |
Charge lance | 100% | 76% | 91% | 118% | 124% | 153% | 162% | 114% | 84% | 103% | 138% | 146% | 189% | 202% | |
Charge rifle | 100% | 81% | 93% | 113% | 117% | 136% | 141% | 113% | 89% | 105% | 131% | 136% | 162% | 169% | |
EMP grenades | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
EMP launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Frag grenades | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
Greatbow | 100% | 69% | 88% | 130% | 140% | 206% | 230% | 109% | 73% | 95% | 146% | 159% | 250% | 287% | |
Heavy SMG | 100% | 80% | 93% | 114% | 118% | 138% | 144% | 113% | 88% | 104% | 131% | 137% | 164% | 172% | |
Incendiary launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
LMG | 100% | 74% | 90% | 121% | 127% | 163% | 174% | 109% | 79% | 98% | 135% | 143% | 190% | 205% | |
Machine pistol | 100% | 80% | 93% | 114% | 118% | 138% | 143% | 112% | 88% | 103% | 130% | 136% | 163% | 170% | |
Minigun | 100% | 77% | 92% | 117% | 123% | 149% | 157% | 107% | 82% | 98% | 127% | 134% | 166% | 176% | |
Molotov cocktails | 100% | 78% | 92% | 117% | 122% | 148% | 155% | 115% | 86% | 104% | 137% | 145% | 182% | 194% | |
Pila | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Pump shotgun | 100% | 75% | 91% | 120% | 126% | 160% | 171% | 113% | 82% | 101% | 140% | 148% | 197% | 213% | |
Recurve bow | 100% | 73% | 90% | 123% | 131% | 173% | 186% | 112% | 79% | 99% | 142% | 152% | 212% | 232% | |
Revolver | 100% | 89% | 96% | 107% | 109% | 117% | 119% | 120% | 104% | 115% | 130% | 133% | 145% | 148% | |
Short bow | 100% | 74% | 90% | 122% | 129% | 168% | 180% | 112% | 80% | 100% | 141% | 150% | 206% | 225% | |
Smoke launcher | 100% | 71% | 89% | 125% | 133% | 182% | 198% | 111% | 77% | 98% | 143% | 154% | 222% | 247% | |
Sniper rifle | 100% | 67% | 87% | 132% | 143% | 219% | 248% | 109% | 71% | 93% | 147% | 162% | 265% | 309% | |
Hellcat rifle | 100% | 78% | 92% | 116% | 121% | 146% | 153% | 112% | 85% | 102% | 133% | 140% | 174% | 184% | |
Nerve spiker | 100% | 73% | 90% | 123% | 131% | 173% | 186% | 112% | 79% | 99% | 142% | 152% | 212% | 232% | |
Tactical turret gun | 100% | 100% | 100% | 100% | 100% | 100% | 100% | 124% | 124% | 124% | 124% | 124% | 124% | 124% | |
Flamebow | 100% | 74% | 90% | 122% | 129% | 168% | 180% | 112% | 80% | 100% | 141% | 150% | 206% | 225% | |
Grenadier armor | 100% | 68% | 87% | 132% | 143% | 217% | 246% | 109% | 71% | 93% | 147% | 161% | 263% | 307% |
The above documentation is transcluded from Template:Weapon Time Row/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |