Template:Birth date: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{1|}}}{{{2|}}}{{{3|}}}|{{#time: Y-m-d | {{{1}}}-{{{2}}}-{{{3}}} }}}}</includeonly>
{{#if: {{{1|}}}{{{2|}}}{{{3|}}} |
  {{#time: Y-m-d | {{{1}}}-{{{2}}}-{{{3}}} }}
}}
</includeonly>
<noinclude>
== Documentation ==
This template outputs a formatted birth date.
 
=== Usage ===
<syntaxhighlight lang="mediawiki">
{{birth|YYYY|MM|DD}}
</syntaxhighlight>
 
* `YYYY` - Year of birth (e.g., 1928)
* `MM` - Month of birth (e.g., 10)
* `DD` - Day of birth (e.g., 10)
 
=== Example ===
<syntaxhighlight lang="mediawiki">
{{birth|1928|10|10}}
</syntaxhighlight>
 
Produces:
```plaintext
1928-10-10

Latest revision as of 01:03, 7 January 2025