Template:PD: Difference between revisions

From Laserwiki
Jump to navigation Jump to search
(remove “use more specific template” message when used with “self” reson – {{PD-self}} itself uses this template, so there’s no more specific template; add TemplateData; remove bad license URL)
(use uselang)
Line 20: Line 20:
}}
}}
| #default=
| #default=
   {{#ifexist:Template:PD/{{int:lang}}
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:PD|noshift=1|uselang={{int:lang}}}}
  |{{#invoke:Template translation|renderTranslatedTemplate|template=Template:PD/{{int:lang}}|noshift=1}}
  |{{#invoke:Template translation|renderTranslatedTemplate|template=Template:PD|noshift=1}}
  }}
}}<noinclude>
}}<noinclude>
{{ {{TNTN|Documentation}} |content=
{{ {{TNTN|Documentation}} |content=

Revision as of 22:40, 7 July 2019

<languages/>

{{ Template:TNTN |content=

Usage

To provide attribution use {{PD|reason=|author=}}.

Use the reason parameter to specify why it is in the public domain and any limitations that should be noted. Set to self to specify that the uploader released it into the public domain.

Use the author parameter to specify the author who released it into the public domain.

Examples

  • {{PD}}
  • {{PD|reason=Reason}}
  • {{PD|reason=self}}
  • {{PD|author=Author}}
  • {{PD|reason=Reason|author=Author}}

TemplateData

<templatedata> { "description": { "en": "This template is used to mark public domain files.", "de": "Diese Vorlage wird genutzt, um gemeinfreie Dateien zu markieren." }, "format": "inline", "params": { "reason": { "aliases": [ "1", "because" ], "label": { "en": "reason", "de": "Grund" }, "description": { "en": "Why this file is in the public domain; note any limitations if applicable. Set to “self” to specify that the uploader released it into the public domain." }, "example": "self", "type": "string", "suggested": true }, "author": { "aliases": [ "2" ], "label": { "en": "author", "de": "Urheber" }, "description": { "en": "The author of this file who released it into the public domain.", "de": "Der Urheber der Datei, wer sie freigegeben hat." }, "example": "John Doe", "type": "string" } } } </templatedata>

}} [[Category:License templates{{#translation:}}]] [[Category:File namespace templates{{#translation:}}]]