Template:Birthyear and Age: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
(Created page with "<includeonly>{{{1}}} {{{2}}} (age {#switch:{{{2|}}} |ABY |aby |Aby |ABy |AbY |aBY |abY = {{#expr:{{Current year}}-{{{1}}}}}) |BBY |bby |Bby |BBy...")
 
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{{1}}} {{{2}}} (age&nbsp;{#switch:{{{2|}}}
<includeonly>{{{2}}} {{{1}}} (age&nbsp;{{#switch:{{{1|}}}
   |ABY
   |ABY
   |aby
   |aby
Line 6: Line 6:
   |AbY
   |AbY
   |aBY  
   |aBY  
   |abY = {{#expr:{{Current year}}-{{{1}}}}})
   |abY = {{#expr:{{Current year}}-{{{2}}}}}
   |BBY
   |BBY
   |bby
   |bby
Line 13: Line 13:
   |BbY
   |BbY
   |bBY  
   |bBY  
   |bbY = {{#expr:{{Current year}}+{{{1}}}}})
   |bbY = {{#expr:{{Current year}}+{{{2}}}}}
  |{{#expr:{{Current year}}+{{{2}}}}}
}})
}})
</includeonly>
</includeonly>
<noinclude>
<noinclude>
For you use with displaying date and age for characters. To use this template, put in the numerical value of the year of birth '''ONLY''' as the first variable, then enter either '''BBY''' or '"ABY"' as the second variable.
For you use with displaying date and age for characters. To use this template enter either '''BBY''' or '''ABY''' as the first variable, then put in the numerical value of the year of birth '''ONLY''' as the second variable.
 
===Usage===
===Usage===
<nowiki>{{Birthyear_and_Age|YEAR|ABY or BBY}}</nowiki>
<nowiki>{{Birthyear_and_Age|ABY or BBY|YEAR}}</nowiki>
</noinclude><noinclude>[[Category:Utility templates|{{PAGENAME}}]]</noinclude>
</noinclude><noinclude>[[Category:Utility templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:34, 22 February 2016


For you use with displaying date and age for characters. To use this template enter either BBY or ABY as the first variable, then put in the numerical value of the year of birth ONLY as the second variable.

Usage

{{Birthyear_and_Age|ABY or BBY|YEAR}}