Difference between revisions of "Template:Itemcount"
(more fixing) |
m |
||
(35 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#expr:{{#switch: {{lc:{{{1|}}}}} | {{#expr:{{#switch: {{lc:{{{1|}}}}} | ||
− | | | + | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|pages|R}} - 12 |
− | | | + | | t | taunts = {{PAGESINCATEGORY:Taunts|pages|R}} -{{PAGESINCATEGORY:Weapon Taunts|pages|R}} -10 |
− | | strange = {{PAGESINCATEGORY:Strange items|pages}} -2 | + | | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -4 |
− | | | + | | str | strange = {{PAGESINCATEGORY:Strange items|pages|R}} -2 |
− | | | + | | v | vintage = {{PAGESINCATEGORY:Vintage items|pages|R}} -1 |
− | | | + | | g | genuine = {{PAGESINCATEGORY:Genuine items|pages|R}} -1 |
− | | | + | | h | haunted = {{PAGESINCATEGORY:Haunted items|pages|R}} -1 |
− | | s | styles = {{PAGESINCATEGORY:Items with styles|pages}} -1 | + | | u | unusual = {{PAGESINCATEGORY:Unusual items|pages|R}} -1 |
− | | p | paintable = {{PAGESINCATEGORY:Paintable items|pages}} | + | | col | collectors = {{PAGESINCATEGORY:Collector's items|pages|R}} |
− | | | + | | s | styles = {{PAGESINCATEGORY:Items with styles|pages|R}} -1 |
− | | | + | | p | paintable = {{PAGESINCATEGORY:Paintable items|pages|R}} |
− | + | | pv | paint variants = {{PAGESINCATEGORY:Paint images|files|R}} -{{PAGESINCATEGORY:Custom paint colors|files|R}} -(({{PAGESINCATEGORY:Paint images|files|R}} -{{PAGESINCATEGORY:Custom paint colors|files|R}})/2) | |
+ | | uc | unusual cosmetics = {{PAGESINCATEGORY:Unusual items|pages|R}} -{{PAGESINCATEGORY:Unusual taunts|pages|R}} -3 | ||
+ | | ut | unusual taunts = {{PAGESINCATEGORY:Unusual taunts|pages|R}} | ||
+ | | uw | unusual weapons = {{PAGESINCATEGORY:Decorated items|pages|R}} -1 | ||
+ | | uce | unusual cosmetic effects = {{PAGESINCATEGORY:Cosmetic Unusuals|files|R}} -({{PAGESINCATEGORY:Team-colored cosmetic Unusuals|files|R}}/2) | ||
+ | | ute | unusual taunt effects = {{PAGESINCATEGORY:Taunt Unusuals|files|R}} -({{PAGESINCATEGORY:Team-colored taunt Unusuals|files|R}}/2) | ||
+ | | uwe | unusual weapon effects = {{PAGESINCATEGORY:Weapon Unusuals|files|R}} | ||
}}}}<noinclude> | }}}}<noinclude> | ||
{{doc begin}} | {{doc begin}} | ||
== Usage == | == Usage == | ||
+ | {{Note|Some counts are not directly taken from the categories, but rather use calculations to exclude certain pages. Please see template's source for specifics.}} | ||
+ | |||
This template was created for easier changing count of items in lots of articles. | This template was created for easier changing count of items in lots of articles. | ||
− | *'''c''' or '''cosmetics''' - Count of | + | *'''c''' or '''cosmetics''' - Total count of [[cosmetic items]]. Count taken from [[:Category:Cosmetic items]]: ({{Itemcount|c}}) |
− | *'''v''' or '''vintage''' - | + | *'''t''' or '''taunts''' - Total count of [[taunts]], minus any default ones. Count taken from [[:Category:Taunts]]: ({{Itemcount|t}}) |
− | *'''g''' or '''genuine''' - | + | *'''w''' or '''weapons''' - Total count of [[weapons]], including [[reskins]]. Count taken from [[:Category:Weapons]]: ({{Itemcount|w}}) |
− | *''' | + | *'''str''' or '''strange''' - Total count of items that can be obtained in [[Strange]] quality. Count taken from [[:Category:Strange items]]: ({{Itemcount|str}}) |
− | *'''u''' or '''unusual''' - Count of | + | *'''v''' or '''vintage''' - Total count of items that can be obtained in [[Vintage]] quality. Count taken from [[:Category:Vintage items]]: ({{Itemcount|v}}) |
− | *''' | + | *'''g''' or '''genuine''' - Total count of items that can be obtained in [[Genuine]] quality. Count taken from [[:Category:Genuine items]]: ({{Itemcount|g}}) |
− | *'''p''' or '''paintable''' - | + | *'''h''' or '''haunted''' - Total count of items that can be obtained in [[Haunted]] quality. Count taken from [[:Category:Haunted items]]: ({{Itemcount|h}}) |
− | *'''pv''' or ''' | + | *'''u''' or '''unusual''' - Total count of items that can be obtained in [[Unusual]] quality. Count taken from [[:Category:Unusual items]]: ({{Itemcount|u}}) |
− | *''' | + | *'''col''' or '''collectors''' - Total count of items that can be obtained in [[Collector's]] quality. Count taken from [[:Category:Collector's items]]: ({{Itemcount|col}}) |
+ | *'''s''' or '''styles''' - Total count of items with [[styles]]. Count taken from [[:Category:Items with styles]]: ({{Itemcount|s}}) | ||
+ | *'''p''' or '''paintable''' - Total count of items that can be painted. Count taken from [[:Category:Paintable items]]: ({{Itemcount|p}}) | ||
+ | *'''pv''' or '''paint variants''' - Total count of [[paint]] colors. Count taken from [[:Category:Paint images]]: ({{Itemcount|pv}}) | ||
+ | *'''uc''' or '''unusual cosmetics''' - Total count of cosmetic items that can be obtained in Unusual quality. Count taken from [[:Category:Unusual items]]: ({{Itemcount|uc}}) | ||
+ | *'''ut''' or '''unusual taunts''' - Total count of taunts that can be obtained in Unusual quality. Count taken from [[:Category:Unusual taunts]]: ({{Itemcount|ut}}) | ||
+ | *'''uw''' or '''unusual weapons''' - Total count of weapons that can be obtained in Unusual quality. Count taken from [[:Category:Decorated items]]: ({{Itemcount|uw}}) | ||
+ | *'''uce''' or '''unusual cosmetic effects''' - Total count of Unusual cosmetic effects. Count taken from [[:Category:Cosmetic Unusuals]]: ({{Itemcount|uce}}) | ||
+ | *'''ute''' or '''unusual taunt effects''' - Total count of Unusual taunt effects. Count taken from [[:Category:Taunt Unusuals]]: ({{Itemcount|ute}}) | ||
+ | *'''uwe''' or '''unusual weapon effects''' - Total count of Unusual weapon effects. Count taken from [[:Category:Weapon Unusuals]]: ({{Itemcount|uwe}}) | ||
== Example == | == Example == |
Latest revision as of 21:24, 2 February 2024
Documentation for Itemcount
Usage
Some counts are not directly taken from the categories, but rather use calculations to exclude certain pages. Please see template's source for specifics.
This template was created for easier changing count of items in lots of articles.
- c or cosmetics - Total count of cosmetic items. Count taken from Category:Cosmetic items: (1820)
- t or taunts - Total count of taunts, minus any default ones. Count taken from Category:Taunts: (95)
- w or weapons - Total count of weapons, including reskins. Count taken from Category:Weapons: (209)
- str or strange - Total count of items that can be obtained in Strange quality. Count taken from Category:Strange items: (1309)
- v or vintage - Total count of items that can be obtained in Vintage quality. Count taken from Category:Vintage items: (109)
- g or genuine - Total count of items that can be obtained in Genuine quality. Count taken from Category:Genuine items: (299)
- h or haunted - Total count of items that can be obtained in Haunted quality. Count taken from Category:Haunted items: (211)
- u or unusual - Total count of items that can be obtained in Unusual quality. Count taken from Category:Unusual items: (697)
- col or collectors - Total count of items that can be obtained in Collector's quality. Count taken from Category:Collector's items: (365)
- s or styles - Total count of items with styles. Count taken from Category:Items with styles: (293)
- p or paintable - Total count of items that can be painted. Count taken from Category:Paintable items: (1255)
- pv or paint variants - Total count of paint colors. Count taken from Category:Paint images: (29)
- uc or unusual cosmetics - Total count of cosmetic items that can be obtained in Unusual quality. Count taken from Category:Unusual items: (600)
- ut or unusual taunts - Total count of taunts that can be obtained in Unusual quality. Count taken from Category:Unusual taunts: (95)
- uw or unusual weapons - Total count of weapons that can be obtained in Unusual quality. Count taken from Category:Decorated items: (44)
- uce or unusual cosmetic effects - Total count of Unusual cosmetic effects. Count taken from Category:Cosmetic Unusuals: (277)
- ute or unusual taunt effects - Total count of Unusual taunt effects. Count taken from Category:Taunt Unusuals: (125)
- uwe or unusual weapon effects - Total count of Unusual weapon effects. Count taken from Category:Weapon Unusuals: (5)
Example
There are {{Itemcount|c}}
cosmetic items. generates: There are 1820 cosmetic items.