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

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<noinclude>'''This template's purpose is to select a random hat of the month to be displayed on the [[misc]] page.
 
<noinclude>'''This template's purpose is to select a random hat of the month to be displayed on the [[misc]] page.
  
Refresh this template on the first of each month by editing and saving it to select a random hat. The [[Template:The misc of the month|Misc of the Month template]] can then be changed manually.'''  
+
The [[Template:The misc of the month|Misc of the Month template]] can then be changed manually.'''  
  
 
<big>'''Last refreshed: {{#switch:{{CURRENTMONTH}}
 
<big>'''Last refreshed: {{#switch:{{CURRENTMONTH}}
Line 16: Line 16:
 
| 11 = <span style="color:red">November
 
| 11 = <span style="color:red">November
 
| 12 = <span style="color:red">December
 
| 12 = <span style="color:red">December
}} {{CURRENTYEAR}}'''</span></big>
+
}} {{CURRENTYEAR}}'''</span></big> (this is here to avoid any discrepancies between client time and server time).
  
 
The misc items are listed in the code in chronological order, making it easy to add more. However the ''mod'' digit must be altered to reflect the new number of hats.
 
The misc items are listed in the code in chronological order, making it easy to add more. However the ''mod'' digit must be altered to reflect the new number of hats.
Line 23: Line 23:
 
</noinclude>
 
</noinclude>
  
'''{{#switch:{{#expr:({{CURRENTMONTH}}*{{CURRENTYEAR}}) mod 88}}
+
'''{{#switch:{{#expr:({{CURRENTMONTH}}*{{CURRENTYEAR}}) mod 89}}
  
 
| 1 = {{Misc of the month image|Gentle Manne's Service Medal|Soldiermedal.png}}
 
| 1 = {{Misc of the month image|Gentle Manne's Service Medal|Soldiermedal.png}}
Line 138: Line 138:
 
| 87 = {{Misc of the month image|Cold War Luchador|Cold War Luchador.png}}
 
| 87 = {{Misc of the month image|Cold War Luchador|Cold War Luchador.png}}
 
| 88 = {{Misc of the month image|Mark of the Saint|Mark of the Saint.png}}
 
| 88 = {{Misc of the month image|Mark of the Saint|Mark of the Saint.png}}
 +
 +
| 89 = {{Misc of the month image|Dr. Whoa|Dr. Whoa.png}}
 +
 
}}'''
 
}}'''
  

Revision as of 02:19, 1 December 2011

This template's purpose is to select a random hat of the month to be displayed on the misc page.

The Misc of the Month template can then be changed manually.

Last refreshed: January 2025 (this is here to avoid any discrepancies between client time and server time).

The misc items are listed in the code in chronological order, making it easy to add more. However the mod digit must be altered to reflect the new number of hats.

The program changes whenever new items are added; as such the list should only be updated at the end of each month to avoid confusion.


Template:Misc of the month image


See Also: User:Cooper Kid/Hat of the Month