Difference between revisions of "User:Cooper Kid/Cosmetic image generator"

From Team Fortress Wiki
Jump to: navigation, search
Line 12: Line 12:
 
{{Item image|<!--***Do not remove the includeonly or subst tags, they allow for it to be embedded properly. They have no effect on the page appearance.***
 
{{Item image|<!--***Do not remove the includeonly or subst tags, they allow for it to be embedded properly. They have no effect on the page appearance.***
  
--></noinclude>{{<includeonly>subst:</includeonly>#switch:{{<includeonly>subst:</includeonly>#expr:({{<includeonly>subst:</includeonly>CURRENTWEEK}}*{{<includeonly>subst:</includeonly>CURRENTYEAR}}) mod 1060}}
+
--></noinclude>{{<includeonly>subst:</includeonly>#switch:{{<includeonly>subst:</includeonly>#expr:({{<includeonly>subst:</includeonly>CURRENTWEEK}}*{{<includeonly>subst:</includeonly>CURRENTYEAR}}) mod 1081}}
  
 
| 0 = Batter's Helmet
 
| 0 = Batter's Helmet
Line 1,285: Line 1,285:
 
| 1059 = Prinny Pouch
 
| 1059 = Prinny Pouch
 
| 1060 = Prinny Machete
 
| 1060 = Prinny Machete
 +
 +
| 1061 = Combustible Cutie
 +
| 1062 = Class Crown
 +
| 1063 = Burly Beast
 +
| 1064 = Pestering Jester
 +
| 1065 = Mo'Horn
 +
| 1066 = Toadstool Topper
 +
| 1067 = Big Topper
 +
| 1068 = Heavy Tourism
 +
| 1069 = Corpus Christi Cranium
 +
| 1070 = Spirit of the Bombing Past
 +
| 1071 = Lil' Bitey
 +
| 1072 = Colossal Cranium
 +
| 1073 = Showstopper
 +
| 1074 = Cranial Carcharodon
 +
| 1075 = Spooktacles
 +
| 1076 = El Paso Poncho
 +
| 1077 = Wide-Brimmed Bandito
 +
| 1078 = Nasty Norsemann
 +
| 1079 = Surgeon's Sidearms
 +
| 1080 = Mad Mask, Wing Mann
 +
 +
| 1081 = Unusual Cap
 
}}<noinclude><!--
 
}}<noinclude><!--
  

Revision as of 20:10, 11 November 2016

This template's purpose is to select a random image every week to be displayed on the cosmetics page.

A random cosmetic item is selected every Monday. The Featured cosmetic template can then be changed manually.

It is currently: Week 33, August 2020 (this is here to smooth out any discrepancies between client time and server time).

The items are listed in the code in chronological order, grouped by update, so adding more is easy. However the mod digit must be altered to reflect the new number of items whenever more are added.

The program changes and selects a new item whenever new ones are added; as such the list should only be updated at the end of each week to avoid confusion.

Image Log

Current Featured cosmetic:                  
Image Generator Log
2017 Cosmetic
Week 1 Dadliest Catch
Week 2 Angel of Death

Notes:
Italic text indicates repeated items.
Green text indicates Christmas themed items.
Purple text indicates Halloween themed items.