Difference between revisions of "User:Masamune/Sandbox"

From Gamehiker Wiki
Jump to navigation Jump to search
(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...)
(No difference)

Revision as of 16:11, 12 October 2008

Potential Code to use

{{ #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: 11/2024

Note: In order to implement this, will need to shift Featured Articles and Upcoming Games to:
Gamehiker Wiki:Today's featured article/09/2024

Code to create this is:
{{Gamehiker Wiki:Today's featured article/{{#time: m/Y}}}}