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

From Team Fortress Wiki
Jump to: navigation, search
(wah)
(please)
Line 6: Line 6:
 
   | v | vintage = {{PAGESINCATEGORY:Vintage items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|50|0}}
 
   | v | vintage = {{PAGESINCATEGORY:Vintage items|pages|R}} - {{#ifeq:{{{2|}}}|cosmetic|50|0}}
 
   | 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:Taunts|pages|R}} + {{PAGESINCATEGORY:Weapon Taunts|pages|R}} + 10<!--10 List pages-->|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}}
Line 42: Line 42:
 
*'''p''' or '''paintable''' - Total count of items that can be painted. Count taken from [[:Category:Paintable items]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|p}})
 
*'''p''' or '''paintable''' - Total count of items that can be painted. Count taken from [[:Category:Paintable items]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|p}})
 
*'''pv''' or '''paint variants''' - Total count of [[paint]] colors. Count taken from [[:Category:Paint images]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|pv}})
 
*'''pv''' or '''paint variants''' - Total count of [[paint]] colors. Count taken from [[:Category:Paint images]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|pv}})
<s>*'''uc''' or '''unusual cosmetics''' - Total count of cosmetic items that can be obtained in Unusual quality. Count taken from [[:Category:Unusual items]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|uc}})<s> Use {{tlx|Itemcount|u|cosmetic}} for unusual cosmetics count.
+
<s>*'''uc''' or '''unusual cosmetics''' - Total count of cosmetic items that can be obtained in Unusual quality. Count taken from [[:Category:Unusual items]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|uc}})</s> Use {{tlx|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]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|ut}})
 
*'''ut''' or '''unusual taunts''' - Total count of taunts that can be obtained in Unusual quality. Count taken from [[:Category:Unusual taunts]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|ut}})
 
*'''uw''' or '''unusual weapons''' - Total count of weapons that can be obtained in Unusual quality. Count taken from [[:Category:Decorated items]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|uw}})
 
*'''uw''' or '''unusual weapons''' - Total count of weapons that can be obtained in Unusual quality. Count taken from [[:Category:Decorated items]]: ({{User:Jh34ghu43gu/Template:Sandbox_template|uw}})

Revision as of 08:24, 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.