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

From Team Fortress Wiki
Jump to: navigation, search
Line 3: Line 3:
 
   | t | taunts = {{PAGESINCATEGORY:Taunts|pages|R}} -{{PAGESINCATEGORY:Weapon Taunts|pages|R}} -10
 
   | t | taunts = {{PAGESINCATEGORY:Taunts|pages|R}} -{{PAGESINCATEGORY:Weapon Taunts|pages|R}} -10
 
   | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -4
 
   | w | weapons = {{PAGESINCATEGORY:Weapons|pages|R}} -4
   {{#ifeq|{{{2|}}}|cosmetic|<!--Cosmetic item counts in X quality
+
   | str | strange = {{PAGESINCATEGORY:Strange items|pages|R}} -2
-->| str | strange = {{PAGESINCATEGORY:Strange items|pages|R}} -2
+
  | v | vintage = {{PAGESINCATEGORY:Vintage items|pages|R}} - {{#ifeq|{{{2|}}}|cosmetic|61|1}}
    | v | vintage = {{PAGESINCATEGORY:Vintage items|pages|R}} -61
+
   | g | genuine = {{PAGESINCATEGORY:Genuine items|pages|R}} -1
    | g | genuine = {{PAGESINCATEGORY:Genuine items|pages|R}} -1
+
  | h | haunted = {{PAGESINCATEGORY:Haunted items|pages|R}} -1
    | h | haunted = {{PAGESINCATEGORY:Haunted items|pages|R}} -1
+
  | u | unusual = {{PAGESINCATEGORY:Unusual items|pages|R}} -1
    | u | unusual = {{PAGESINCATEGORY:Unusual items|pages|R}} -1
+
  | col | collectors = {{PAGESINCATEGORY:Collector's items|pages|R}}
    | col | collectors = {{PAGESINCATEGORY:Collector's items|pages|R}}
 
   |<!--All item counts in X quality
 
-->| 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
 
    | u | unusual = {{PAGESINCATEGORY:Unusual items|pages|R}} -1
 
    | col | collectors = {{PAGESINCATEGORY:Collector's items|pages|R}}
 
  }}
 
 
   | s | styles = {{PAGESINCATEGORY:Items with styles|pages|R}} -1
 
   | s | styles = {{PAGESINCATEGORY:Items with styles|pages|R}} -1
 
   | p | paintable = {{PAGESINCATEGORY:Paintable items|pages|R}}
 
   | p | paintable = {{PAGESINCATEGORY:Paintable items|pages|R}}

Revision as of 07:00, 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.

) ) ) ) ) ) ) ) ) ) ) )
  • uc or unusual cosmetics - Total count of cosmetic items that can be obtained in Unusual quality. Count taken from Category:Unusual items: (
)
  • 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.