Template:Ctime:x/sandbox/doc

{{Documentation subpage}}

Example

To calculate the date of the Chinese New Year in the Gregorian calendar (the current Western calendar):

  • {{tlg|ctime:x/sandbox|{{CURRENTYEAR}}|01|01}} → {{ctime:x/sandbox|{{CURRENTYEAR}}|01|01}}
  • {{tlg|ctime:x/sandbox|2027|01|01}} → {{ctime:x/sandbox|2027|01|01}}

TemplateData

{{templatedata header}}

{

"params": {

"1": {

"aliases": [

"y"

],

"label": "year",

"description": "The year number in Chinese calendar",

"type": "number",

"default": "2014"

},

"2": {

"aliases": [

"m"

],

"label": "month",

"description": "The month number, 0 for leap month",

"type": "number",

"default": "12"

},

"3": {

"aliases": [

"d"

],

"label": "day",

"description": "The day number in Chinese calendar",

"type": "number",

"default": "20"

}

},

"description": "to get the date for the Chinese traditional date"

}

{{sandbox other||

Category:Chinese traditional date templates

}}