Template:Creator/doc: Difference between revisions

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Content deleted Content added
mNo edit summary
No edit summary
Line 23: Line 23:
| Sortkey = Surname, Name
| Sortkey = Surname, Name
| Homecat = Name Surname
| Homecat = Name Surname
| Option = {{{Option|}} <!-- Do not modify -->
}}
}}
</pre>
</pre>
Line 83: Line 84:
|12stat=optional
|12stat=optional
|13=Option
|13=Option
|13d=Variable to be passed from creator page. Option equal "workshop of", "school of", "circle of" will add those phrases to the author's name in current language.
|13d=Variable to be passed from creator page. Option equal "workshop of", "school of", "circle of", "Attributed to", "After", "formerly attributed to" and "follower of" will add those phrases to the author's name in current language.
|13stat=optional
|13stat=optional
|namespace=Creator
|namespace=Creator

Revision as of 03:06, 12 October 2010

{{Creator}} creates an infobox to be customized on Creator: namespace pages and used on File and Category namespace pages.

This template will categorize into Category:Creator templates.

This template will categorize categories transcluding it and matching "Homecat" field into Category:Creator template home categories.
This template will categorize some creator infobox pages it into sub-categories of Category:Creator template maintenance.

Copy and paste section

When creating a new Creator page copy, paste and fill the text below into your new page:

{{Creator
 | Name              = Name Surname
 | Alternative names = 
 | Description       = <!-- {{NationAndOccupation|m|xx|xxxx}} -->
 | Birthdate         = 
 | Birthloc          = 
 | Deathdate         = 
 | Deathloc          = 
 | Workperiod        = 
 | Workloc           = 
 | Image             =
 | Sortkey           = Surname, Name 
 | Homecat           = Name Surname
 | Option            = {{{Option|}} <!-- Do not modify -->
}}

As an alternative to copying and pasting, you may use the following box :


Below are some suggestions on how to fill the parameters. In general keep it short and use language independent terms if possible. Avoid translating of names and places and use links to Wikipedia or a gallery which will have translations or interwiki links to articles in other languages.

Usage

{{Creator
 |Name =
 |Alternative names =
 |Sortkey =
 |Birthdate =
 |Deathdate =
 |Birthloc =
 |Deathloc =
 |Workperiod =
 |Workloc =
 |Image =
 |Homecat =
 |Description =
 |Option =
}}

Template parameters

ParameterDescriptionDefaultStatus
NameName of the creator in the Name Surname format (most of the time it should be the same as page name). Provide single most commonly used version of the name in English literature. Could use English Wikipedia as a guide to choose it. Template automatically tries to add links to Commons gallery if possible. If no gallery with that name exist try linking to one of Wikipedias if possible. Avoid using Language templates in this section. Use of {{LangSwitch}} is also possible and encouraged for names where original name did not use Latin alphabet. In case of the names like "Name Surname the Elder" or "Name Surname the Younger" use {{Name}} template with elder/younger options.emptyrequired
Alternative namesAll other variants of the name, pseudonyms, etc. Language variation could be added here too if the name in native language differs from English version. Do not use it to provide interwiki links - place them in a gallery linked from Name or on a Wikipedia page. Use template {{Name}} to indicate that name is a birth, legal or pseudonym.emptyoptional
SortkeyName of the creator in Surname, Name format to be used for sorting creator templates. This parameter will be used only for sorting and is not going to be displayed.emptyrequired
BirthdateDate of birth:
  • Date in ISO 8601 format "YYYY-MM-DD", or "YYYY-MM", or "YYYY", e.g. "2006-01-15" for "15 January 2006". This allows automatic localisation of the displayed date, and also display of the lifespan period after the name.
  • In case the date is not known precisely please use {{Other date}} or {{Lifetime date}} templates.
  • Do not use Language templates in this section, like {{en|2006-01-15}}.
  • For authors living in countries using Julian calendar, like 19th century Russian artists, please consider using dates in "{{other date|Julian|1863-02-17|1863-03-01}}" format to distinguish between dates in Julian and Gregorian calendar.
emptyoptional
DeathdateDate of death. See Birthdate for details. One can use CanScan2 to find all the files using creator templates of authors who died less than 70 years ago and incorrectly using {{PD-old}} license.emptyoptional
BirthlocBirth location: usually a city name with a link to the location's page:
  • Template automatically places location inside {{city|city-name}} template which works as a lookup table connecting multiple spellings of cities to autotranslated city templates, its own translations or to the Commons galleries. If no suitable links are found than string is unchanged.
  • One can use one of autotranslated city templates (see Category:Multilingual tags: Locations). Those templates show the city name in the language of the viewer and provide links to the wikipedia pages in that language.
  • One can also use direct links to a gallery or Wikipedia article
  • Use {{RelativeLocation}} for relative locations, like "A near B".
  • Avoid using Language templates, like {{de|Paris}}, or {{LangSwitch}} template.
  • emptyoptional
    DeathlocDeath location. See Birthloc for datails.emptyoptional
    WorkperiodTime period when the creator was active.emptyoptional
    WorklocLocation(s) where the creator was active. See Birthloc for datails.emptyoptional
    ImageImage of the creator. Self-portraits are preferable. One can use CatScan2 to find all the creator templates without images used within files which are in the Category:Self-portraits.emptyoptional
    HomecatCreator template home category - used to categorize the creator page without categorizing images using it. Creator pages should be categorized only using Homecat parameter only. Please do not add categories like [[Category:Name Surname]] since those would be added to all the files and categories using the template.emptyrequired
    DescriptionShort description of the person. For example: {{NationAndOccupation|m|GB|painter}} would give "British painter" and: {{NationAndOccupation|f|IT|photographer}} would give "Italian photographer".emptyoptional
    OptionVariable to be passed from creator page. Option equal "workshop of", "school of", "circle of", "Attributed to", "After", "formerly attributed to" and "follower of" will add those phrases to the author's name in current language.emptyoptional

    Additional information

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

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

    See also

    Localization

    English

    This template is localized through {{Autotranslate}}.


    To add your language to the list of languages supported by this template, please copy the code of Template:Creator/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.


    Translation

    To create a new language version of this template, create a new subpage of Template:Creator, cut and paste code below and translate terms on the right side of the equal signs which are not in {{{}}} parenthesis.

    {{Creator/layout
    | Name = {{{Name}}}
    | Alternative names label = Alternative names
    | Alternative names = {{{Alternative names|}}}
    | Description label = Description
    | Description = {{{Description|}}}
    | Birth and deathdate label = Date of birth/death
    | Birthdate = {{{Birthdate|}}}
    | Deathdate = {{{Deathdate|}}}
    | Birth and deathloc label = Location of birth/death
    | Birthloc = {{{Birthloc|}}}
    | Deathloc = {{{Deathloc|}}}
    | Workperiod label = Work period
    | Workperiod = {{{Workperiod|}}}
    | Workloc label = Work location
    | Workloc = {{{Workloc|}}}
    | Image = {{{Image|}}}
    | lang = {{subst:SUBPAGENAME}}
    }}<noinclude>
    {{translated tag|infobox}}
    </noinclude>
    

    Examples

    Creator:Paul Cézanne, rendered as

    Paul Cézanne  (1839–1906)  wikidata:Q35548 s:fr:Auteur:Paul Cézanne q:en:Paul Cézanne
     
    Paul Cézanne
    Description French painter, printmaker, lithographer and drawer
    Date of birth/death 19 January 1839 Edit this at Wikidata 22 October 1906 Edit this at Wikidata
    Location of birth/death Aix-en-Provence Aix-en-Provence
    Work location
    Authority file
    creator QS:P170,Q35548

    has source code:

    {{Creator
     | Description       = {{NationAndOccupation|m|FR|painter}}
     | Sortkey           = Cezanne, Paul
     | Name              = [[Paul Cézanne]]
     | Alternative names = 
     | Birthdate         = 1839-01-19
     | Birthloc          = [[Aix-en-Provence]]
     | Deathdate         = 1906-10-23
     | Deathloc          = [[Aix-en-Provence]]
     | Workperiod        = 
     | Workloc           = {{Paris}}, [[Auvers-sur-Oise]], [[Aix-en-Provence]], {{city|Marseille}}
     | Image             = Paul Cézanne 160.jpg
     | Homecat           = Paul Cézanne
    }}
    

    Creator:Viktor Vasnetsov, rendered as

    Viktor Vasnetsov  (1848–1926)  wikidata:Q204138 s:ru:Виктор Михайлович Васнецов q:ru:Виктоp Михайлович Васнецов
     
    Viktor Vasnetsov
    Alternative names
    Description Russian-Soviet painter, architect and postage stamp designer
    Date of birth/death 15 May 1848 (3 May 1848 in Julian calendar) 23 June 1926
    Location of birth/death Lop’jal in Vyatka Governorate Moscow
    Work location
    Authority file
    creator QS:P170,Q204138

    has source code:

    {{Creator
     | Image = Wiktor Michajlowitsch Wassnezow 003.jpg
     | Sortkey = Vasnetsov, Viktor
     | Name = {{LangSwitch <!-- Need LangSwitch to show the name in the local language -->
       |de=[[:de:Wiktor Michailowitsch Wasnezow|Wiktor Michailowitsch Wasnezow]]
       |fr=[[:fr:Viktor Vasnetsov|Viktor Vasnetsov]]
       |mk=[[:mk:Виктор Михајлович Васнецов|Виктор Михајлович Васнецов]]
       |pt=[[:pt:Viktor Vasnetsov|Viktor Vasnetsov]]
       |ru=[[:ru:Васнецов, Виктор Михайлович|Виктор Михайлович Васнецов]]
       |uk=[[:uk:Васнецов Віктор Михайлович|Віктор Михайлович Васнецов]]
       |en=[[:en:Viktor Vasnetsov|Viktor Vasnetsov]]
       }} (1848-1926) <!-- Need to add lifetime period by hand -->
     | Alternative names = {{ru|Виктор Михайлович Васнецов}}{{de|Wiktor Michajlowitsch Wassnezow}}{{en|Viktor Mikhailovich Vasnetsov}} <!-- Few major name variant shown -->
     | Description = {{NationAndOccupation|m|RU|painter}}
     | Birthdate = {{other date|Julian|1848-05-15|1848-05-03}} <!-- Date using two calendars -->
     | Birthloc = {{RelativeLocation|{{LangSwitch|en=Lop’jal|mk=Лопјал|ru=Лопьял}}|in|{{city|Vyatka Province}}}}
     | Deathdate = 1926-06-23
     | Deathloc = {{city|Moscow}}
     | Workperiod = 
     | Workloc = {{city|Moscow}}, {{city|Kiev}}
     | Homecat = Wiktor Michajlowitsch Wassnezow
    }}
    

    Note that a wrong date format can give strange results at the top:

    {{Creator
     | Description       = {{NationAndOccupation|m|FR|painter}}
     | Sortkey           = Cezanne, Paul
     | Name              = [[Paul Cézanne]]
     | Alternative names = 
     | Birthdate         = 1839+01+19
     | Birthloc          = [[Aix-en-Provence]]
     | Deathdate         = 1906+10+23
     | Deathloc          = [[Aix-en-Provence]]
     | Workperiod        = 
     | Workloc           = {{Paris}}, [[Auvers-sur-Oise]], [[Aix-en-Provence]], {{city|Marseille}}
     | Image             = Paul Cézanne 160.jpg
     | Homecat           = Paul Cézanne
    }}
    

    gives

    Paul Cézanne  
     
    Paul Cézanne
    Description French painter
    Date of birth/death 1839+01+19 1906+10+23
    Location of birth/death Aix-en-Provence Aix-en-Provence
    Work location