Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:PD-old-auto-1996: Difference between revisions

Template page
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=59 |max=100|mod=10 | error=0 }}  
   {{#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|No publication year specified.}}{{Iffile|[[Category:PD-old-auto: no date]]}}
|{{error|Author death year not specified.}}{{Iffile|[[Category:PD-old-auto: no date]]}}
}}
}}
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 10:13, 11 March 2013

Public domain

For background information, see the explanations on Non-U.S. copyrights.
Note: This tag should not be used for sound recordings.
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:PD-old-auto-1996/doc.

This is an enhanced version of Template:PD-1996 to show how long ago authors died. Depending on the deathyear given, it chooses {{PD-old-80-1996}}, {{PD-old-100-1996}} etc. If the date given is less than 50 years ago, {{PD-1996}} is applied.

The template automatically sets the following categories: Category:PD Old auto: no death date if required "deathyear" is missing

Usage

{{PD-old-auto-1996 |deathyear= |country= }}

{{PD-old-auto-1996|country=country|date=URAA date|reason=reason|deathyear=deathyear}}. If country is not given, it is not mentioned in the rendering of this template. date gives "January 1, 1996 for most countries" by default, and the reason defaults to the Note shown above. See Non-U.S. copyrights for a per-country list of URAA dates.

See e.g. Image:Spelterini Al Ashraf.jpg for example usage of this template.

Template parameters

ParameterDescriptionDefaultStatus
deathyear
1
death yearYear of author's death.emptyrequired
countrysource countryHome or source country (country of origin) of the work. Country name in English language or two letter Country code according to ISO 3166-1 alpha-2. Country is being displayed and is also used to look-up URAA date (using {{URAA-date}})emptyoptional
reasonreasonReason the image was in Public domain in the source country at the URAA date (January 1, 1996 for most countries).emptyoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Relies on:

Example

{{PD-old-auto-1996|country=fr|deathyear=1937}}

renders as:

Localization

This template is not intended to be localized.

Only error messages are contained in this template. (They could be localised with LangSwitch or some other way...)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.