Difference between revisions of "User:Jh34ghu43gu/Template:Sandbox template"

From Team Fortress Wiki
Jump to: navigation, search
(please)
(wowee an unusual taunt category)
Line 7: Line 7:
 
   | g | genuine = {{PAGESINCATEGORY:Genuine items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|33|0}}
 
   | g | genuine = {{PAGESINCATEGORY:Genuine items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|33|0}}
 
   | h | haunted = {{PAGESINCATEGORY:Haunted items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|2|0}} + 8 <!--add 8 for hween masks-->
 
   | h | haunted = {{PAGESINCATEGORY:Haunted items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|2|0}} + 8 <!--add 8 for hween masks-->
   | u | unusual = {{PAGESINCATEGORY:Unusual items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|2 - {{PAGESINCATEGORY:Taunts|pages|R}} + {{PAGESINCATEGORY:Weapon Taunts|pages|R}} + 10<!--10 List pages-->|0}}
+
   | u | unusual = {{PAGESINCATEGORY:Unusual items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|2 - {{PAGESINCATEGORY:Unusual taunts|pages|R}}|0}}
 
   | col | collectors = {{PAGESINCATEGORY:Collector's items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|136|0}}
 
   | col | collectors = {{PAGESINCATEGORY:Collector's items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|136|0}}
 
   | s | styles = {{PAGESINCATEGORY:Items with styles|pages|R}} -1
 
   | s | styles = {{PAGESINCATEGORY:Items with styles|pages|R}} -1

Revision as of 08:26, 11 November 2024

Documentation for Jh34ghu43gu/Template:Sandbox template

Usage

Pictogram comment.png 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.

) ) ) )
    • Optional second argument cosmetic to get the total count of cosmetic items obtainable in Strange quality: (
) )
    • Optional second argument cosmetic to get the total count of cosmetic items obtainable in Vintage quality: (
) )
    • Optional second argument cosmetic to get the total count of cosmetic items obtainable in Genuine quality: (
) )
    • Optional second argument cosmetic to get the total count of cosmetic items obtainable in Haunted quality: (
) )
    • Optional second argument cosmetic to get the total count of cosmetic items obtainable in Unusual quality: (
) )
    • Optional second argument cosmetic to get the total count of cosmetic items obtainable in Collector's quality: (
) ) ) )

*uc or unusual cosmetics - Total count of cosmetic items that can be obtained in Unusual quality. Count taken from Category:Unusual items: (

) Use {{Itemcount|u|cosmetic}} for unusual cosmetics count.
  • ut or unusual taunts - Total count of taunts that can be obtained in Unusual quality. Count taken from Category:Unusual taunts: (
)
  • uw or unusual weapons - Total count of weapons that can be obtained in Unusual quality. Count taken from Category:Decorated items: (
) ) ) )

Example

There are {{Itemcount|c}} cosmetic items. generates: There are

cosmetic items.