Difference between revisions of "Template:Ctime:E"

From blackwiki
Jump to navigation Jump to search
imported>Orienomesh-w
imported>Cydebot
m (Robot - Moving category Chinese Traditional Date to Category:Chinese traditional date templates per CFD at Wikipedia:Categories for discussion/Log/2015 March 10.)
 
Line 1: Line 1:
{{#expr:{{{3|{{ctime:Y}}}}}+({{{1|-2698}}}>0)-{{{1|-2698}}}}}{{{2|AH}}}<noinclude>[[Category:Chinese Traditional Date]]<templatedata>
+
{{#expr:{{{3|{{ctime:Y}}}}}+({{{1|-2698}}}>0)-{{{1|-2698}}}}}{{{2|AH}}}<noinclude>[[Category:Chinese traditional date templates]]<templatedata>
 
{
 
{
 
"params": {
 
"params": {

Latest revision as of 23:59, 24 March 2015

4724AH

to get the year number upon a given epoch

Template parameters

ParameterDescriptionTypeStatus
epoch1 e

the given epoch, add "-" for BC

Default
-2698
Numberoptional
symbol2 s

the symber of the epoch

Default
AH
Stringoptional
year3 y

the year number

Default
current year number in the Chinese calendar
Numberoptional