Permanently protected template

Template:Birth date: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
m (Changed protection settings for "Template:Birth date" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
mNo edit summary
 
Line 1: Line 1:
<span style="display:none">(<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{MONTHNUMBER|{{{2|{{{month}}}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>)</span>{{#if:{{{df|}}}
<includeonly>{{ #if: {{{df|}}}
|{{#expr:{{{3|{{{day}}}}}}}} {{MONTHNAME|{{{2|{{{month}}}}}}}}
| {{ #if: {{{3|{{{day|}}}}}}|{{ #ifexpr: ( {{{3|{{{day|}}}}}} > 31 ) OR ( {{{3|{{{day|}}}}}} < 1 )| {{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|{{{3|{{{day|}}}}}} }}| {{error|Must include a valid day}} }} {{ #if:{{{2|{{{month|}}}}}}|{{ #ifexpr: ( {{{2|{{{month|}}}}}} > 12 ) OR ( {{{2|{{{month|}}}}}} < 1 )| &nbsp;{{error|invalid month}}{{main other|[[Category:Pages using age template with invalid date]]}}|{{MONTHNAME|{{{2|{{{month|}}}}}}}} }}| &nbsp;{{error|Must include a valid month}} }}, {{ #if: {{{1|{{{year|}}}}}}| {{ #ifexpr: ( {{{1|{{{year}}}}}} > {{CURRENTYEAR}} )
|{{MONTHNAME|{{{2|{{{month<noinclude>|1</noinclude>}}}}}}}} {{#expr:{{{3|{{{day<noinclude>|1</noinclude>}}}}}}}},
  | &nbsp;{{error|invalid year}}{{main other|[[Category:Pages using age template with invalid date]]}}|{{{1|{{{year|}}}}}} }}| {{error|Must include a valid year}} }}
}} {{#expr:{{{1|{{{year<noinclude>|1900</noinclude>}}}}}}}}<includeonly><!--
    | {{ #if:{{{2|{{{month|}}}}}}|{{ #ifexpr: ( {{{2|{{{month|}}}}}} > 12 ) OR ( {{{2|{{{month|}}}}}} < 1 )| {{error|invalid month}}{{main other|[[Category:Pages using age template with invalid date]]}}|{{MONTHNAME|{{{2|{{{month|}}}}}}}} }}| {{error|Must include a valid month}} }} {{ #if: {{{3|{{{day|}}}}}}|{{ #ifexpr: ( {{{3|{{{day|}}}}}} > 31 ) OR ( {{{3|{{{day|}}}}}} < 1 )| &nbsp;{{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|{{{3|{{{day|}}}}}} }}| &nbsp;{{error|Must include a valid day}} }}, {{ #if: {{{1|{{{year|}}}}}}| {{ #ifexpr: ( {{{1|{{{year}}}}}} > {{CURRENTYEAR}} )
-- Error checks --
  | &nbsp;{{error|invalid year}}{{main other|[[Category:Pages using age template with invalid date]]}}|{{{1|{{{year|}}}}}} }}| {{error|Must include a valid year}} }}
-->{{#ifexpr: ( {{{1|{{{year}}}}}} > {{CURRENTYEAR}} )
  | &#32;{{error|invalid year}}{{main other|[[Category:Pages using age template with invalid date]]}}
}}{{#if:{{{2|}}}|{{#ifexpr: ( {{{2|{{{month}}}}}} > 12 ) OR ( {{{2|{{{month}}}}}} < 1 )
| &#32;{{error|invalid month}}{{main other|[[Category:Pages using age template with invalid date]]}}|}}
}}{{#if:{{{3|}}}|{{#ifexpr: ( {{{3|{{{day}}}}}} > 31 ) OR ( {{{3|{{{day}}}}}} < 1 )
  | &#32;{{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>



Latest revision as of 01:56, 20 June 2023