Difference between revisions of "Template:DateUnpack"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
"1": { | "1": { | ||
"aliases": [ | "aliases": [ | ||
" | "y" | ||
], | ], | ||
"example": "1964", | "example": "1964", | ||
"type": "date" | "type": "date", | ||
"label": "Four Digit Year", | |||
"required": true | |||
}, | }, | ||
" | "2": { | ||
"aliases": [ | "aliases": [ | ||
" | "opt" | ||
], | ], | ||
"label": "Option", | |||
"description": "a or b, determines how the template formats the data \\r\\n a) \" from 1960\" b)\";Date Released:1960\"", | "description": "a or b, determines how the template formats the data \\r\\n a) \" from 1960\" b)\";Date Released:1960\"", | ||
"example": "|opt=a", | "example": "|opt=a", | ||
"type": "string", | "type": "string", | ||
" | "required": true | ||
} | } | ||
}, | }, | ||
"description": "unpack the year of release" | "description": "unpack the year of release", | ||
"paramOrder": [ | |||
"1", | |||
"2" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 15:17, 7 December 2021
Note
This template has its doc here, not on a subpage.
Usage
{{DateUnpack|1950|opt=a}}
See Also
- https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time
- Template:Filmjr
- Template:DateUnpackA
- Template:DateUnpackB
unpack the year of release
Parameter | Description | Type | Status | |
---|---|---|---|---|
Four Digit Year | 1 y | no description
| Date | required |
Option | 2 opt | a or b, determines how the template formats the data \r\n a) " from 1960" b)";Date Released:1960"
| String | required |