Difference between revisions of "Template:Itemcount"
(test) |
(more fixing) |
||
Line 1: | Line 1: | ||
{{#expr:{{#switch: {{lc:{{{1|}}}}} | {{#expr:{{#switch: {{lc:{{{1|}}}}} | ||
− | | v | vintage = {{PAGESINCATEGORY:Vintage items|pages}} -1 <!-- | + | | v | vintage = {{PAGESINCATEGORY:Vintage items|pages}} -1 <!-- extra page --> |
− | | g | genuine = {{PAGESINCATEGORY:Genuine items|pages}} -1 <!-- | + | | g | genuine = {{PAGESINCATEGORY:Genuine items|pages}} -1 <!-- extra page --> |
− | | strange = {{PAGESINCATEGORY:Strange items|pages}} -2 <!-- | + | | strange = {{PAGESINCATEGORY:Strange items|pages}} -2 <!-- extra pages --> |
− | | u | unusual= {{PAGESINCATEGORY:Unusual items|pages}} -1 <!-- | + | | u | unusual= {{PAGESINCATEGORY:Unusual items|pages}} -1 <!-- extra page --> |
− | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|pages|R}} -1 <!-- | + | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|pages|R}} -1 <!-- extra page --> |
− | | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -1 <!-- | + | | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -1 <!-- extra page --> |
| pv | paint variants = 29 <!-- up to date as of Nov 3, 2014 --> | | pv | paint variants = 29 <!-- up to date as of Nov 3, 2014 --> | ||
− | | s | styles = {{PAGESINCATEGORY:Items with styles|pages}} -1 <!-- | + | | s | styles = {{PAGESINCATEGORY:Items with styles|pages}} -1 <!-- extra page --> |
| p | paintable = {{PAGESINCATEGORY:Paintable items|pages}} | | p | paintable = {{PAGESINCATEGORY:Paintable items|pages}} | ||
| h | haunted = {{PAGESINCATEGORY:Haunted items|pages}} | | h | haunted = {{PAGESINCATEGORY:Haunted items|pages}} | ||
− | | t | taunts = {{PAGESINCATEGORY:Taunts|pages}} - | + | | t | taunts = {{PAGESINCATEGORY:Taunts|pages}} -26 <!-- extra pages --> |
}}}}<noinclude> | }}}}<noinclude> | ||
Line 20: | Line 20: | ||
*'''g''' or '''genuine''' - Count of genuine cosmetics/weapons. | *'''g''' or '''genuine''' - Count of genuine cosmetics/weapons. | ||
*'''strange''' - Count of strange cosmetics/weapons | *'''strange''' - Count of strange cosmetics/weapons | ||
− | *'''u''' or '''unusual''' - Count of unusual cosmetics | + | *'''u''' or '''unusual''' - Count of unusual cosmetics. |
+ | *'''h''' or '''haunted''' - Count of haunted cosmetics. | ||
*'''p''' or '''paintable''' - Count of paintable cosmetic items. | *'''p''' or '''paintable''' - Count of paintable cosmetic items. | ||
*'''pv''' or '''painted variants''' - Count of paint variants. | *'''pv''' or '''painted variants''' - Count of paint variants. |
Revision as of 16:55, 7 January 2020
Documentation for Itemcount
Usage
This template was created for easier changing count of items in lots of articles.
- c or cosmetics - Count of cosmetic items.
- v or vintage - Count of vintage cosmetics/weapons.
- g or genuine - Count of genuine cosmetics/weapons.
- strange - Count of strange cosmetics/weapons
- u or unusual - Count of unusual cosmetics.
- h or haunted - Count of haunted cosmetics.
- p or paintable - Count of paintable cosmetic items.
- pv or painted variants - Count of paint variants.
- s or styles - Count of items with alternate styles.
Example
There are {{Itemcount|c}}
cosmetic items. generates: There are 1820 cosmetic items.