Difference between revisions of "Template:Birth date and age2/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
 
Line 1: Line 1:
{{{4|{{{year}}}}}}-{{padleft:{{{5|{{{month}}}}}}|2|0}}-{{padleft:{{{6|{{{day}}}}}}|2|0}}){{#if:{{{df|}}}|{{#expr:{{{6|{{{day}}}}}}}} {{MONTHNAME|{{{5|{{{month}}}}}}}}|{{MONTHNAME|{{{5|{{{month}}}}}}}} {{#expr:{{{6|{{{day}}}}}}}},}} {{{4|{{{year}}}}}} (aged {{age | {{{4|{{{year}}}}}} | {{{5|{{{month}}}}}} | {{{6|{{{day}}}}}} | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }})<!--
+
<span style="display:none"> (<span class="bday">{{{4|{{{year}}}}}}-{{padleft:{{{5|{{{month}}}}}}|2|0}}-{{padleft:{{{6|{{{day}}}}}}|2|0}}</span>)</span>{{#if:{{{df|}}}|{{#expr:{{{6|{{{day}}}}}}}} {{MONTHNAME|{{{5|{{{month}}}}}}}}|{{MONTHNAME|{{{5|{{{month}}}}}}}} {{#expr:{{{6|{{{day}}}}}}}},}} {{{4|{{{year}}}}}} (aged {{age | {{{4|{{{year}}}}}} | {{{5|{{{month}}}}}} | {{{6|{{{day}}}}}} | {{{1|{{{year}}}}}} | {{{2|{{{month}}}}}} | {{{3|{{{day}}}}}} }}){{#if:{{{7|}}}|{{red|1=WARNING:{{{7|(seven)}}}}}}}
 
 
-->{{#ifexpr:{{{3|{{{day|0}}}}}}>31  |error3}}{{#ifexpr:{{{6|{{{day|0}}}}}}>31  |error6}}<!--
 
-->{{#ifexpr:{{{4|{{{year|0}}}}}}>2018|error4}}{{#ifexpr:{{{1|{{{year|0}}}}}}>2018|error1}}<!--
 
-->{{#ifexpr:{{{5|{{{month|1}}}}}}>12 |error5}}{{#ifexpr:{{{2|{{{month|1}}}}}}>12 |error2}}<!--
 
-xx->{{#switch:{{{df|}}}|y|yes|"yes"=|#default=df:{{{df|}}}=errorDF}}<!--
 
 
 
-->{{#invoke:TemplatePar
 
|check
 
|template=Template:Birth date and age2
 
|all= |opt= 1= 2= 3= 4= 5= 6= df= mf=
 
|cat=<!--Chemical articles with unknown parameter in Birth date and age2-->
 
|format=0|errNS=0
 
|preview=<div class="error" style="font-weight:normal">@@@ (See [[Template:Birth date and age2|parameter list]]). This message only shows in Preview, it will not show after you do {{button|{{int:publishchanges}}}}.</div>
 
}}
 

Latest revision as of 19:04, 29 October 2018

({{{year}}}-{{{month}}}-{{{day}}})Expression error: Unrecognized punctuation character "{"., {{{year}}} (aged Error: Need valid year, month, day)