Difference between revisions of "Template:FootballSeason"
Jump to navigation
Jump to search
imported>Stefan-S (add comment for people that might want to use code for current minus argument number of years) |
imported>Sardanaphalus m (index) |
||
| Line 1: | Line 1: | ||
{{#ifexpr: {{CURRENTMONTH}} < 08 |{{#expr:{{CURRENTYEAR}}-1}}–{{#time: y}}}}{{#ifexpr: {{CURRENTMONTH}} >07 |{{CURRENTYEAR}}–{{#expr:{{#time: y}}+1}}}}<noinclude> | {{#ifexpr: {{CURRENTMONTH}} < 08 |{{#expr:{{CURRENTYEAR}}-1}}–{{#time: y}}}}{{#ifexpr: {{CURRENTMONTH}} >07 |{{CURRENTYEAR}}–{{#expr:{{#time: y}}+1}}}}<noinclude> | ||
{{info|This template helps to generate a CURRENT SEASON string using parserfunctions. These are date dependant and change from <last year>-<this year> (ie. 2008-09) to <this year>-<next year> (ie. 2009-10) on August 1 automatically. Please be reminded that this code does NOT work for a current year less than 9, since <nowiki>{{#expr:{{#time: y}}+1}}</nowiki> will expand to "9" if current year is 8, NOT "09" which is the intent, the only fix that I can think of for this is #sub: from [[mw:Extension:StringFunctions]] which is not running on any wikipedia as of today.}} | {{info|This template helps to generate a CURRENT SEASON string using parserfunctions. These are date dependant and change from <last year>-<this year> (ie. 2008-09) to <this year>-<next year> (ie. 2009-10) on August 1 automatically. Please be reminded that this code does NOT work for a current year less than 9, since <nowiki>{{#expr:{{#time: y}}+1}}</nowiki> will expand to "9" if current year is 8, NOT "09" which is the intent, the only fix that I can think of for this is #sub: from [[mw:Extension:StringFunctions]] which is not running on any wikipedia as of today.}} | ||
| − | [[Category:English football portal|{{SUBPAGENAME}}]] | + | [[Category:English football portal|τ{{SUBPAGENAME}}]] |
</noinclude> | </noinclude> | ||
Revision as of 07:54, 11 July 2014
2025–26
| 40x40px | This template helps to generate a CURRENT SEASON string using parserfunctions. These are date dependant and change from <last year>-<this year> (ie. 2008-09) to <this year>-<next year> (ie. 2009-10) on August 1 automatically. Please be reminded that this code does NOT work for a current year less than 9, since {{#expr:{{#time: y}}+1}} will expand to "9" if current year is 8, NOT "09" which is the intent, the only fix that I can think of for this is #sub: from mw:Extension:StringFunctions which is not running on any wikipedia as of today. |