Difference between revisions of "Template:Author Image Data-PD/Doc"
(→Usage) |
(→Usage) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
<nowiki>{{Author Image Data-PD</nowiki> <br /> | <nowiki>{{Author Image Data-PD</nowiki> <br /> | ||
|Name=<Name of author> (person shown in picture) <br /> | |Name=<Name of author> (person shown in picture) <br /> | ||
+ | |NameId=<id of author> (only required for names with characters that break [[:Template:A]]) <br /> | ||
|Photographer=<Person who took the picture> <br /> | |Photographer=<Person who took the picture> <br /> | ||
|Year=<Year of publication> <br /> | |Year=<Year of publication> <br /> | ||
|Source=<where did we get the image from> <br /> | |Source=<where did we get the image from> <br /> | ||
|Publication=<Where and when was this image published> <br /> | |Publication=<Where and when was this image published> <br /> | ||
− | |Reason=<Why this image is public domain> (example: "First published prior to | + | |Reason=<Why this image is public domain> (example: "First published prior to 1925.") <br /> |
<nowiki>}}</nowiki> <br /> | <nowiki>}}</nowiki> <br /> | ||
</code> | </code> | ||
Line 30: | Line 31: | ||
|- | |- | ||
|'''Name''' ||Should specify the name of the person whose image is being displayed. ||'''Required Field''' | |'''Name''' ||Should specify the name of the person whose image is being displayed. ||'''Required Field''' | ||
+ | |- | ||
+ | |'''NameId''' ||The record number of the person. Used to link to person's summary page via the record number when person's name has characters (single quotes, non-ASCII) that cause linking by name to fail. In order for this field to work, the "Name" field also has to be filled in. || Defaults to unused. | ||
|- | |- | ||
|'''Photographer''' ||Should specify the name of the person who took the picture||If omitted, defaults to "Unknown". | |'''Photographer''' ||Should specify the name of the person who took the picture||If omitted, defaults to "Unknown". |
Latest revision as of 19:53, 21 March 2020
Documentation for the template: Author Image Data-PD
Purpose
This template is to be placed on the image description page of a public domain photograph of a person (author, editor, or the like).
Usage
Call this template as:
{{Author Image Data-PD
|Name=<Name of author> (person shown in picture)
|NameId=<id of author> (only required for names with characters that break Template:A)
|Photographer=<Person who took the picture>
|Year=<Year of publication>
|Source=<where did we get the image from>
|Publication=<Where and when was this image published>
|Reason=<Why this image is public domain> (example: "First published prior to 1925.")
}}
All parameter names have an initial capital letter. Case is significant in a parameter name. The order of the parameters is not significant, but the order above is suggested, as it is the order of use within the template.
Note: In all the above examples, when a parameter is shown in angle brackets, like:
<Parameter>
then the parameter, and the angle brackets, should be replaced by the value of the parameter. For example: Title=<TITLE>
should become Title=The Name of the Book
(or whatever the name might be).
Parameter definitions
Parameter | Description | Default |
---|---|---|
Name | Should specify the name of the person whose image is being displayed. | Required Field |
NameId | The record number of the person. Used to link to person's summary page via the record number when person's name has characters (single quotes, non-ASCII) that cause linking by name to fail. In order for this field to work, the "Name" field also has to be filled in. | Defaults to unused. |
Photographer | Should specify the name of the person who took the picture | If omitted, defaults to "Unknown". |
Year | Should specify the year the picture was first published | If omitted, defaults to "Unknown". |
Source | Website or publication where the image was obtained, or name or handle of user who scanned the image. | If omitted, defaults to "Unknown". |
Publication | Publication where and when this image was published. If multiple publications are known, specify the first. | If omitted, defaults to "Unknown". |
Reason | The reason image is in the public domain. | If omitted, defaults to "Unknown". |
Example
For a usage example, see the example page.