Difference between revisions of "Template:Itemcount"
(Using automation, except for number of painted variants. I tried using Category:Painted item images / Category:Painted items but it was way off.) |
(Fancy functions.) |
||
Line 1: | Line 1: | ||
{{#expr:{{#switch: {{lc:{{{1|}}}}} | {{#expr:{{#switch: {{lc:{{{1|}}}}} | ||
− | | v | vintage = {{PAGESINCATEGORY:Vintage items}} -1 <!-- [[Vintage]] --> | + | | v | vintage = {{PAGESINCATEGORY:Vintage items|pages}} -1 <!-- [[Vintage]] --> |
− | | g | genuine = {{PAGESINCATEGORY:Genuine items}} -1 <!-- [[Genuine]] --> | + | | g | genuine = {{PAGESINCATEGORY:Genuine items|pages}} -1 <!-- [[Genuine]] --> |
− | | strange = {{PAGESINCATEGORY:Strange items}} -2 <!-- [[Strange]], [[Strange Part]] --> | + | | strange = {{PAGESINCATEGORY:Strange items|pages}} -2 <!-- [[Strange]], [[Strange Part]] --> |
− | | u | unusual= {{PAGESINCATEGORY:Unusual items}} -1 <!-- [[Unusual]] --> | + | | u | unusual= {{PAGESINCATEGORY:Unusual items|pages}} -1 <!-- [[Unusual]] --> |
− | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|R}} - | + | | c | cosmetics = {{PAGESINCATEGORY:Cosmetic items|pages|R}} -1 <!-- [[Cosmetic items]] --> |
− | | w | weapons = {{PAGESINCATEGORY:Weapons|R}} - | + | | 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}} -1 <!-- [[Styles]] --> | + | | s | styles = {{PAGESINCATEGORY:Items with styles|pages}} -1 <!-- [[Styles]] --> |
− | | p | paintable = {{PAGESINCATEGORY:Paintable items}} | + | | p | paintable = {{PAGESINCATEGORY:Paintable items|pages}} |
− | | h | haunted = {{PAGESINCATEGORY:Haunted items}} | + | | h | haunted = {{PAGESINCATEGORY:Haunted items|pages}} |
}}}}<noinclude> | }}}}<noinclude> | ||
{{doc begin}} | {{doc begin}} |
Revision as of 07:22, 28 March 2015
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.