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

From Team Fortress Wiki
Jump to: navigation, search
m (moved User:Cooper Kid/Misc of the Month to User:Cooper Kid/Misc image generator: Changing from monthly to weekly.)
(Modified to generate a new image weekly.)
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 image every week to be displayed on the [[misc]] page.
  
The [[Template:The misc of the month|Misc of the Month template]] can then be changed manually.'''  
+
A random miscellaneous item is selected every Monday. The [[Template:The misc of the month|Misc of the Month template]] can then be changed manually.'''  
  
<big>'''Current month: <span style="color:red">{{CURRENTMONTHNAME}} {{CURRENTYEAR}}'''</span></big> (this is here to avoid any discrepancies between client time and server time).
+
<big>'''It is currently: <span style="color:red">Week {{CURRENTWEEK}}, {{CURRENTMONTHNAME}} {{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 items.
+
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 whenever new items are added; as such the list should only be updated at the end of each month to avoid confusion.
+
The program changes whenever new items are added; as such the list should only be updated at the end of each week to avoid confusion.
 
</noinclude>
 
</noinclude>
  
'''{{#switch:{{#expr:({{CURRENTMONTH}}*{{CURRENTYEAR}}) mod 104}}
+
'''{{#switch:{{#expr:({{CURRENTWEEK}}*{{CURRENTYEAR}}) mod 104}}
  
 
| 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 148: Line 148:
  
 
<noinclude>
 
<noinclude>
''See Also: [[User:Cooper Kid/Hat of the Month]]''
+
''See Also: [[User:Cooper Kid/Hat image generator]]''
 
</noinclude>
 
</noinclude>

Revision as of 12:11, 16 January 2012

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

A random miscellaneous item is selected every Monday. The Misc of the Month template can then be changed manually.

It is currently: Week 1, January 2025 (this is here to avoid 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 whenever new items are added; as such the list should only be updated at the end of each week to avoid confusion.


Template:Misc of the month image


See Also: User:Cooper Kid/Hat image generator