Template:Player Birthdate and Age: Difference between revisions

From LCARS
(Created page with "<includeonly>{{#time: {{#switch: {{{df|}}} | y = j F Y | sd = Ym.d | #default = F j, Y }} |{{{1|1985}}}{{padleft:{{{2|11}}}|2|0|}}{{padleft:{{{3|25}}}|2|0}}}} (ag...")
 
mNo edit summary
Line 23: Line 23:
|}
|}


[[Category:Utility Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 14:55, 12 August 2016


Usage

For use with displaying a player's birthdate and age in in real time. Default display is Month DD, YYYY; use parameter df=y for the alternative display of DD Month YYYY or df=sd for ucip stardate of YYYYMM.DD.

Examples

Code Result
{{Player Birthdate and Age|1980|03|04}} March 4, 1980 (age: 44)
{{Player Birthdate and Age|1980|09|10|df=y}} 10 September 1980 (age: 43)
{{Player Birthdate and Age|1980|12|25|df=sd}} 198012.25 (age: 43)