Difference between revisions of "Template:Chinese Year"

From blackwiki
Jump to navigation Jump to search
imported>Orienomesh-w
imported>Cydebot
m (Robot - Moving category Chinese Traditional Date and Time to Category:Chinese traditional date and time templates per CFD at Wikipedia:Categories for discussion/Log/2015 March 10.)
Line 10: Line 10:
 
| {{#ifexpr: {{#time:z|{{ctime:x|{{#expr:{{{2|{{ctime:Y}}}}}+1}} |0|1|1}} }} >  {{solarterm|{{#expr:{{{2|{{ctime:Y}}}}}+1}}|3}}|a leap year with dual Vernal Commences({{zh|t=两頭春|s=两头春}})|a common year with early Vernal Commences({{zh|t=年頭春|s=年头春}})}}}}
 
| {{#ifexpr: {{#time:z|{{ctime:x|{{#expr:{{{2|{{ctime:Y}}}}}+1}} |0|1|1}} }} >  {{solarterm|{{#expr:{{{2|{{ctime:Y}}}}}+1}}|3}}|a leap year with dual Vernal Commences({{zh|t=两頭春|s=两头春}})|a common year with early Vernal Commences({{zh|t=年頭春|s=年头春}})}}}}
 
|l={{#ifexpr:{{ctime:01|{{{2|{{ctime:Y}} }}} }}
 
|l={{#ifexpr:{{ctime:01|{{{2|{{ctime:Y}} }}} }}
<{{ctime:01|{{#expr:{{{2|{{ctime:Y}}}}}+1}}}}|13|12}} months or {{#expr: -{{ctime:01|{{{2|{{ctime:Y}} }}} }}+{{ctime:01|{{#expr:{{{2|{{ctime:Y}}}}}+1}}}} +{{#time:z|{{{2|{{ctime:Y}}}}}-12-31}} +1}} days}} <noinclude>[[Category:Chinese Traditional Date and Time]]<templatedata>
+
<{{ctime:01|{{#expr:{{{2|{{ctime:Y}}}}}+1}}}}|13|12}} months or {{#expr: -{{ctime:01|{{{2|{{ctime:Y}} }}} }}+{{ctime:01|{{#expr:{{{2|{{ctime:Y}}}}}+1}}}} +{{#time:z|{{{2|{{ctime:Y}}}}}-12-31}} +1}} days}} <noinclude>[[Category:Chinese traditional date and time templates]]<templatedata>
 
{
 
{
 
"description": "",
 
"description": "",

Revision as of 23:58, 24 March 2015

13 months or 383 days

Template parameters

ParameterDescriptionTypeStatus
format1 f

the output format of the Chinese year

Stringoptional
year2 y

The year number in Chinese calendar

Numberoptional