Template:PD-old-auto-1996: Difference between revisions
Template page
More actions
Add PD-old-50-1996 (a lot of countries still have 50 pma only, like Argentina, Bolivia, Brunei, Canada, China, Egypt, Hong Kong, Indonesia, Japan, Lebanon, Malaysia, Moldova, New Zealand, Pakistan, Philippines, South Africa, South Korea, Thailand, ...) |
change switch min to 49 (to allow PD-1996 and PD-old-50-1996 to display); make error msg more accurate |
||
| Line 1: | Line 1: | ||
{{#if:{{{deathyear|{{{1|<noinclude>{{CURRENTYEAR}}</noinclude>}}} }}} | {{#if:{{{deathyear|{{{1|<noinclude>{{CURRENTYEAR}}</noinclude>}}} }}} | ||
| | | | ||
{{#switch:{{Years since| {{{deathyear|{{{year|{{{1|<noinclude>{{CURRENTYEAR}}</noinclude>}}} }}} }}}+1 |min= | {{#switch:{{Years since| {{{deathyear|{{{year|{{{1|<noinclude>{{CURRENTYEAR}}</noinclude>}}} }}} }}}+1 |min=49 |max=100|mod=10 | error=0 }} | ||
|0 = {{error|{{{deathyear|{{{1|}}}}}} is not a valid year.}} {{#ifeq:{{NAMESPACE}}|File|[[Category:PD old auto: no date]]}}<!-- {{{1|}}} is not a number --> | |0 = {{error|{{{deathyear|{{{1|}}}}}} is not a valid year.}} {{#ifeq:{{NAMESPACE}}|File|[[Category:PD old auto: no date]]}}<!-- {{{1|}}} is not a number --> | ||
|49 = {{PD-1996}} | |49 = {{PD-1996}} | ||
| Line 12: | Line 12: | ||
|100 = {{PD-old-100-1996|{{{country}}}|{{{date|}}}|{{{reason|}}}|{{{deathyear|{{{1|}}}}}} }} | |100 = {{PD-old-100-1996|{{{country}}}|{{{date|}}}|{{{reason|}}}|{{{deathyear|{{{1|}}}}}} }} | ||
}} | }} | ||
|{{error| | |{{error|Author death year not specified.}}{{Iffile|[[Category:PD-old-auto: no date]]}} | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||