Difference between revisions of "Template:Board Title Start"

From EUSwiki
Jump to: navigation, search
 
Line 2: Line 2:
 
{{#ifexpr:
 
{{#ifexpr:
 
{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}} = {{#regex:{{PAGENAME}}|%^Nov(\d\d)$%|$1}}
 
{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}} = {{#regex:{{PAGENAME}}|%^Nov(\d\d)$%|$1}}
|{{#formatdate:01 {{#regex:{{PAGENAME}}|%^(May)\d\d$%|$1}} 20{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}}|ISO 8601}}
+
|{{#dateformat:01 {{lc:{{#regex:{{PAGENAME}}|%^(May)\d\d$%|$1}}}} 20{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}}|ymd}}
 
|{{#ifexpr:
 
|{{#ifexpr:
 
{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}} > {{#regex:{{PAGENAME}}|%^Nov(\d\d)$%|$1}}
 
{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}} > {{#regex:{{PAGENAME}}|%^Nov(\d\d)$%|$1}}
|{{#formatdate:01 {{#regex:{{PAGENAME}}|%^(Nov)\d\d$%|$1}} 20{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}}|ISO 8601}}
+
|{{#dateformat:01 {{lc:{{#regex:{{PAGENAME}}|%^(Nov)\d\d$%|$1}}}} 20{{#regex:{{PAGENAME}}|%^May(\d\d)$%|$1}}|ymd}}
 
|ERR
 
|ERR
 
}}
 
}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 17:56, 13 November 2018

This page is intended to be used to determine the first operative years in the title of a Board Homepage (e.g. 2017, 2018 etc)