Difference between revisions of "Template:DateUnpackB"

From Ephemeral Film Wiki
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#len:{{{yr}}}}}  
<includeonly>{{#switch:{{#len:{{{yr}}}}}  
|4=;Date Released :[[:Category:{{{yr}}} Movies{{!}}{{{yr}}}]][[Category:{{{yr}}} Movies]]
|4={{DateB Year Released|{{{yr}}}}}
|2=;Date Released :[[:Category:19{{{yr}}} Movies{{!}}19{{{yr}}}]][[Category:19{{{yr}}} Movies]]
|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}}}}}}}
|5|6|7|8|9=;Date Released  
|5|6|7|8|9=;Date Released  
:number 19 found {{#count:{{{yr}}}|19}} times
:{{#switch:{{#count:{{{yr}}}|19}}|0= '''error:''' "19" not found in year
:TEMP {{#len:{{{yr}}}}} and {{{yr}}}  
|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]]
|1=error: year supplied is just one char; should be 4 chars like "1950"
:<small class="debugData">Year ~19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}} derived via [[Template:DateUnpackB|UnpackB Tpl]].</small>
|3=error: year is only 3 characters; should be 4 chars like "1950"
|error "19" found more than once in year}}
|0=error: year is zero (this should not be possible)
|1=[[Category: Zero Year]]
|error: year (date?) is 10 or more characters; should be 4 chars like "1950"}}<!-- end yrB switch --></includeonly><noinclude>
|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>

Latest revision as of 20:30, 15 March 2022