Difference between revisions of "Template:DateUnpack"
Jump to navigation
Jump to search
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Ifndef|{{{opt|{{{2}}}}}}|{{Ifdef|{{{1}}}|{{{1}}}}}}}{{Ifdef|{{{opt|{{{2}}}}}}|{{#switch: {{{opt|{{{2}}}}}} | a = {{ | <includeonly>{{Ifndef|{{{opt|{{{2}}}}}}|{{Ifdef|{{{y|{{{1}}}}}}|{{{y|{{{1}}}}}}}}}}{{Ifdef|{{{opt|{{{2}}}}}}|{{#switch: {{{opt|{{{2}}}}}} | a = {{DateUnpackA|yr={{{y}}}}}| b = {{DateUnpackB|yr={{{y}}}}}| c = {{DateUnpackC|yr={{{y}}}}}| Date Unpack option unknown {{{opt}}}}}}}</includeonly><noinclude> | ||
== Note == | == Note == | ||
This template has its doc here, not on a subpage. | This template has its doc here, not on a subpage. | ||
== Usage == | |||
<nowiki>{{DateUnpack|1950|opt=a}}</nowiki> | |||
<nowiki>{{DateUnpack|y=1950|opt=b}}</nowiki> | |||
==See Also== | ==See Also== | ||
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time | * https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time | ||
* [[Template:Filmjr]] | * [[Template:Filmjr]] | ||
[[Category: | * [[Template:DateUnpack]] <- you are here | ||
** [[Template:DateUnpackA]] | |||
** [[Template:DateUnpackB]] | |||
** [[Template:DateUnpackC]] | |||
* [[Template:FormaUnpack]] | |||
* {{Purge}} | |||
[[Category:Filmjr Helper Tpls]] | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 11: | Line 24: | ||
"1": { | "1": { | ||
"aliases": [ | "aliases": [ | ||
" | "y" | ||
], | ], | ||
"example": "1964", | "example": "1964", | ||
"type": "date" | "type": "date", | ||
"label": "Four Digit Year", | |||
"required": true | |||
}, | }, | ||
" | "2": { | ||
"aliases": [ | "aliases": [ | ||
" | "opt" | ||
], | ], | ||
"description": "a or | "label": "Option", | ||
"description": "a b or c, 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> |
Latest revision as of 16:01, 20 May 2022
Note
This template has its doc here, not on a subpage.
Usage
{{DateUnpack|1950|opt=a}}
{{DateUnpack|y=1950|opt=b}}
See Also
- https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time
- Template:Filmjr
- Template:DateUnpack <- you are here
- Template:FormaUnpack
unpack the year of release
Parameter | Description | Type | Status | |
---|---|---|---|---|
Four Digit Year | 1 y | no description
| Date | required |
Option | 2 opt | a b or c, determines how the template formats the data \r\n a) " from 1960" b)";Date Released:1960"
| String | required |