Difference between revisions of "Template:DateUnpack"

From Ephemeral Film Wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Ifndef|{{{opt|{{{2}}}}}}|{{Ifdef|{{{y|{{{1}}}}}}|{{{y|{{{1}}}}}}}}}}{{Ifdef|{{{opt|{{{2}}}}}}|{{#switch: {{{opt|{{{2}}}}}} | a = {{Ifdef|{{{y|{{{1}}}}}}| &nbsp;from {{{y|{{{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 = {{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.
Line 12: Line 12:
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time
* https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time
* [[Template:Filmjr]]
* [[Template:Filmjr]]
* [[Template:DateUnpackA]]
* [[Template:DateUnpack]] <- you are here
* [[Template:DateUnpackB]]
** [[Template:DateUnpackA]]
** [[Template:DateUnpackB]]
** [[Template:DateUnpackC]]
* [[Template:FormaUnpack]]
* {{Purge}}
* {{Purge}}
[[Category:JR templates]]
[[Category:Filmjr Helper Tpls]]
<templatedata>
<templatedata>
{
{
Line 33: Line 36:
],
],
"label": "Option",
"label": "Option",
"description": "a or b, determines how the template formats the data  \\r\\n                              a) \" from 1960\"      b)\";Date Released:1960\"",
"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",

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

unpack the year of release

Template parameters

ParameterDescriptionTypeStatus
Four Digit Year1 y

no description

Example
1964
Daterequired
Option2 opt

a b or c, determines how the template formats the data \r\n a) " from 1960" b)";Date Released:1960"

Example
|opt=a
Stringrequired