Difference between revisions of "User:Masamune/Sandbox"
(New page: =Potential Code to use= <nowiki>{{ #expr: {{CURRENTMONTH}} - 1 }}</nowiki> (Use this to list this month AND next months current article) <nowiki>{{ #expr: {{CURRENTMONTH}} + 2 }}</nowiki...) |
|||
Line 17: | Line 17: | ||
Code to create this is: <br> | Code to create this is: <br> | ||
<nowiki>{{Gamehiker Wiki:Today's featured article/{{#time: m/Y}}}} </nowiki> | <nowiki>{{Gamehiker Wiki:Today's featured article/{{#time: m/Y}}}} </nowiki> | ||
+ | |||
+ | '''Current System In Tact?''' | ||
+ | |||
+ | <nowiki>{{ #time: F Y | -1 months }}</nowiki> | ||
+ | |||
+ | <nowiki>{{Gamehiker Wiki:Today's featured article/{{#time: F Y |-1 months}}}} </nowiki> | ||
+ | |||
+ | '''Produces''': | ||
+ | |||
+ | {{Gamehiker Wiki:Today's featured article/{{#time: F Y |-1 months}}}} |
Latest revision as of 16:16, 12 October 2008
Potential Code to use[edit]
{{ #expr: {{CURRENTMONTH}} - 1 }} (Use this to list this month AND next months current article)
{{ #expr: {{CURRENTMONTH}} + 2 }} (Use this on Current Events to list the current two months of gaming plus the next two months afterwards)
Consideration: Will need a more in-depth IF conditional. If the current month is January, CURRENTMONTH-1 will equal 0 instead of 12. In December, CURRENTMONTH+2 will equal 14 instead of 2.
Alternative: {{ #time: m/Y | +2 months }}
Will produce: 08/2024
Note: In order to implement this, will need to shift Featured Articles and Upcoming Games to:
Gamehiker Wiki:Today's featured article/06/2024
Code to create this is:
{{Gamehiker Wiki:Today's featured article/{{#time: m/Y}}}}
Current System In Tact?
{{ #time: F Y | -1 months }}
{{Gamehiker Wiki:Today's featured article/{{#time: F Y |-1 months}}}}
Produces: