Difference between revisions of "Template:Itemcount"
(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 <!-- [[Vintage]] --> |
− | | g | genuine = {{PAGESINCATEGORY:Genuine items|pages}} -1 <!-- | + | | g | genuine = {{PAGESINCATEGORY:Genuine items|pages}} -1 <!-- [[Genuine]] --> |
− | | strange = {{PAGESINCATEGORY:Strange items|pages}} -2 <!-- | + | | strange = {{PAGESINCATEGORY:Strange items|pages}} -2 <!-- [[Strange]], [[Strange Part]] --> |
− | | u | unusual= {{PAGESINCATEGORY:Unusual items|pages}} -1 <!-- | + | | u | unusual= {{PAGESINCATEGORY:Unusual items|pages}} -1 <!-- [[Unusual]] --> |
− | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|pages|R}} -1 <!-- | + | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|pages|R}} -1 <!-- [[Cosmetic items]] --> |
− | | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -1 <!-- | + | | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -1 <!-- [[Weapons]] --> |
| 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 <!-- [[Styles]] --> |
| p | paintable = {{PAGESINCATEGORY:Paintable items|pages}} | | p | paintable = {{PAGESINCATEGORY:Paintable items|pages}} | ||
| h | haunted = {{PAGESINCATEGORY:Haunted items|pages}} | | h | haunted = {{PAGESINCATEGORY:Haunted items|pages}} | ||
− | |||
− | |||
}}}}<noinclude> | }}}}<noinclude> | ||
{{doc begin}} | {{doc begin}} | ||
Line 20: | Line 18: | ||
*'''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/weapons. |
− | |||
*'''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 17:33, 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/weapons.
- 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.