Difference between revisions of "Template:DateUnpack"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{Ifndef|{{{opt|{{{2}}}}}}|{{Ifdef|{{{y|{{{1}}}}}}|{{{y|{{{1}}}}}}}}}}{{Ifdef|{{{opt|{{{2}}}}}}|{{#switch: {{{opt|{{{2}}}}}} | a = {{Ifdef|{{{y|{{{1}}}}}}| from {{{1}}}}} | b = {{DateUnpackB|yr={{{y}}}}} | Date Unpack option unknown {{{opt}}}}}}}</includeonly><noinclude> | <includeonly>{{Ifndef|{{{opt|{{{2}}}}}}|{{Ifdef|{{{y|{{{1}}}}}}|{{{y|{{{1}}}}}}}}}}{{Ifdef|{{{opt|{{{2}}}}}}|{{#switch: {{{opt|{{{2}}}}}} | a = {{Ifdef|{{{y|{{{1}}}}}}| from {{{y|{{{1}}}}}}}} | b = {{DateUnpackB|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. |
Revision as of 15:29, 7 December 2021
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: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 |