Difference between revisions of "Template:Ctime:T"
Jump to navigation
Jump to search
imported>Orienomesh-w (←Created page with '{{#expr: 30*12 -({{ctime:l|{{{2|{{ctime:Y}}}}}}} mod 2) -({{ctime:l|{{{2|{{ctime:Y}}}}}}}/2 mod 2) -({{ctime:l|{{{2|{{ctime:Y}}}}}}}/4 mod 2) -({{ctime:l|{{{2|{{...') |
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.) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{#expr: 30*12 | {{#expr: 30*12 | ||
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}} mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/2 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/4 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/8 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/16 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/32 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/64 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/128 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/256 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/512 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/1024 mod 2) |
| − | -({{ctime:l|{{{ | + | -({{ctime:l|{{{1|{{ctime:Y}}}}}}}/2048 mod 2) |
| − | -({{ctime:L|{{ctime:Y}}}}<>0)*({{ctime:l|{{{ | + | -({{ctime:L|{{ctime:Y}}}}<>0)*({{ctime:l|{{{1|{{ctime:Y}}}}}}}/4096 mod 2-30)}}<noinclude>[[Category:Chinese traditional date templates]]<templatedata> |
{ | { | ||
| − | "description": "to get | + | "description": "to get year length", |
"params": { | "params": { | ||
"1": { | "1": { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
"aliases": [ | "aliases": [ | ||
"y" | "y" | ||
| Line 30: | Line 22: | ||
"label": "year", | "label": "year", | ||
"description": "The year number in Chinese calendar", | "description": "The year number in Chinese calendar", | ||
| − | "type": "number" | + | "type": "number", |
| + | "default": "current year" | ||
} | } | ||
} | } | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
Latest revision as of 23:59, 24 March 2015
354
to get year length
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| year | 1 y | The year number in Chinese calendar
| Number | optional |