Difference between revisions of "Template:DateUnpackC"

From Ephemeral Film Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#switch:{{#len:{{{yr}}}}} |4={{DateB Year Released|{{{yr}}}}} |2=<noinclude>length is two digits but not "19" </noinclude>{{#ifeq: {{{yr}}} | 19 | ;Date Releas...")
 
Line 1: Line 1:
<includeonly>{{#switch:{{#len:{{{yr}}}}}  
<includeonly>{{#switch:{{#len:{{{yr}}}}}  
|4={{DateB Year Released|{{{yr}}}}}
|4={{DateC Year Released|{{{yr}}}}}
|2=<noinclude>length is two digits but not "19"
|2=<noinclude>length is two digits but not "19"
</noinclude>{{#ifeq: {{{yr}}} | 19 | ;Date Released :possibly 1919 [[Category:Error Year is 19]] | {{DateB Year Released|19{{{yr}}}}}}}
</noinclude>{{#ifeq: {{{yr}}} | 19 | [[Category:Error Year is 19]] | {{DateC Year Released|19{{{yr}}}}}}}
|5|6|7|8|9=;Date Released
|5|6|7|8|9={{#switch:{{#count:{{{yr}}}|19}}|0= [[Category: Zero Year]]
:{{#switch:{{#count:{{{yr}}}|19}}|0= '''error:''' "19" not found in year
|1=[[Category:19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}} Movies]]
|1=:[[:Category:19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}} Movies{{!}}~19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}}]][[Category:19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}} Movies]]
| [[Category: Zero Year]]}}<noinclude> - end inner switch
:<small class="debugData">Year ~19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}} derived via [[Template:DateUnpackB|UnpackB Tpl]].</small>
</noinclude>|1=|3=|0=[[Category: Zero Year]]
|error "19" found more than once in year}}
| [[Category: Zero Year]] <!-- end outer switch --> }}</includeonly><noinclude>
|1=[[Category: Zero Year]]
|3= '''error:''' year is only 3 characters; should be 4 chars like "1950" (year, not decade) [[Category: Zero Year]]
|0=[[Category: Zero Year]]
| '''error:''' year (date?) is 10 or more characters; should be 4 chars like "1950" <!-- end yrB switch --> }}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 17:36, 23 March 2022