Difference between revisions of "Template:DateUnpackB"

From Ephemeral Film Wiki
Jump to navigation Jump to search
Line 5: Line 5:
:DEBUG {{#switch:{{#count:{{{yr}}}|19}}|0=error "19" not found in year|1="19" found!|error "19" found more than once in year}}
:DEBUG {{#switch:{{#count:{{{yr}}}|19}}|0=error "19" not found in year|1="19" found!|error "19" found more than once in year}}
:BUG {{#len:{{{yr}}}}} and {{{yr}}}
:BUG {{#len:{{{yr}}}}} and {{{yr}}}
:BUG {{#explode:{{{yr}}}|19|-1}}
:BUG ~19{{#sub:{{#explode:{{{yr}}}|19|-1}}|0|2}}
|1=error: year supplied is just one char; should be 4 chars like "1950"
|1=error: year supplied is just one char; should be 4 chars like "1950"
|3=error: year is only 3 characters; should be 4 chars like "1950" (year, not decade)
|3=error: year is only 3 characters; should be 4 chars like "1950" (year, not decade)
|0=error: year is zero (this should not be possible)
|0=error: year is zero (I apologize! this should not be possible)
|error: year (date?) is 10 or more characters; should be 4 chars like "1950"}}<!-- end yrB switch --></includeonly><noinclude>
|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 16:11, 7 December 2021