Template:PrintInputDate: Difference between revisions

From Shadow Chronicles - Mortal
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{{1|}}}|{{#if:{{{2|}}}|-{{{2|}}}{{#if:{{{3|}}}|-{{{3|}}}}}}}|<strong class="warning">No defined date found!</strong>}}</includeonly><noinclude>
<includeonly>{{#dateformat:{{{1|}}}{{#if:{{{2|}}}|-{{{2|}}}{{#if:{{{3|}}}|-{{{3|}}}}}}}|{{#if:{{{4|}}}|{{{4|}}}|ISO 8601}}}}</includeonly><noinclude>
==Example use==
== Exsample use ==
  <nowiki>{{PrintInputDate|YYYY|MM|DD}}</nowiki>
  <nowiki>:{{PrintInputDate|2010|04|11|dmy}}
:{{PrintInputDate|2010|04|11|}}
:{{PrintInputDate|2010|04|}}
:{{PrintInputDate|2010||}}
:{{PrintInputDate|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
:{{PrintInputDate|||}}</nowiki>
 
:{{PrintInputDate|2010|04|11|dmy}}
:{{PrintInputDate|2010|04|11|}}
:{{PrintInputDate|2010|04|}}
:{{PrintInputDate|2010||}}
:{{PrintInputDate|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
:{{PrintInputDate|||}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 17:44, 13 July 2017

Exsample use

:{{PrintInputDate|2010|04|11|dmy}}
:{{PrintInputDate|2010|04|11|}}
:{{PrintInputDate|2010|04|}}
:{{PrintInputDate|2010||}}
:{{PrintInputDate|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}
:{{PrintInputDate|||}}
11 April 2010
2010-04-11
2010-04
2010
2024-11-21