Jump to content

Template:Art UK bio/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Document "oxbio", "addtext", "ref", and "retrieved" parameters. Add examples for "nocount", "oxbio", "addtext", "ref", and "retrieved".
m top: {{High-use}}
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Uses Wikidata|P1367}}
{{Uses Wikidata|P1367}}
Line 5: Line 6:
== Usage ==
== Usage ==


* <code>id=</code> or <code>1=</code> final portion of the Art UK URL (optional -- drawing directly from Wikidata is preferred; but can be overridden locally in this way)
* <code>id=</code> or <code>1=</code> final portion of the Art UK URL, everything after https://<nowiki/>artuk.org/discover/artworks/search/actor: (optional -- drawing directly from Wikidata is preferred; but can be overridden locally in this way)
* <code>name=</code> or <code>2=</code> name (optional; defaults to page name, excluding final parentheses if any)
* <code>name=</code> or <code>2=</code> name (optional; defaults to page name, excluding final parentheses if any)
* <code>wikidata=Q....</code> give link for an artist other than the main subject of article (optional)
* <code>wikidata=Q....</code> give link for an artist other than the main subject of article (optional)
Line 11: Line 12:
* <code>oxbio=true</code> output sis followed by: see extended ''Oxford Dictionary of Art and Artists'' biography, under "artist profile" (optional)
* <code>oxbio=true</code> output sis followed by: see extended ''Oxford Dictionary of Art and Artists'' biography, under "artist profile" (optional)
* <code>addtext=</code> output is followed by the specified text (optional)
* <code>addtext=</code> output is followed by the specified text (optional)
* <code>ref=true</code> format the output as as reference (optional; use with <code>retrieved=</code>)
* <code>ref=true</code> format the output as a reference (optional; use with <code>retrieved=</code>)
* <code>retrieved=</code> output is followed by ". Retrieved " and the specified date (optional; use with <code>ref=</code>)
* <code>retrieved=</code> output is followed by ". Retrieved " and the specified date (optional; use with <code>ref=</code>)
* <code>type=</code> overrides the default "artwork" (e.g., {{para|type|painting}} or {{para|type|sculpture}})


== Examples ==
== Examples ==
Line 51: Line 53:


* To format the output as a reference, use {{para|ref|true}}, e.g.:
* To format the output as a reference, use {{para|ref|true}}, e.g.:
::;<nowiki>* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|ref=true}}</nowiki>
::;<nowiki>* {{Art UK bio|wikidata=Q21458087|name=Stephen John Marshall|ref=true}}</nowiki>
::* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|ref=true}}
::* {{Art UK bio|wikidata=Q21458087|name=Stephen John Marshall|ref=true}}


* To add a retrieved date after the usual output, use {{para|retrieved}}, e.g.:
* To add a retrieved date after the usual output, use {{para|retrieved}}, e.g.:
::;<nowiki>* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|ref=true|retrieved=</nowiki>{{TODAY}}<nowiki>}}</nowiki>
::;<nowiki>* {{Art UK bio|wikidata=Q21458087|name=Stephen John Marshall|ref=true|retrieved=</nowiki>{{TODAY}}<nowiki>}}</nowiki>
::* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|ref=true|retrieved={{TODAY}}}}
::* {{Art UK bio|wikidata=Q21458087|name=Stephen John Marshall|ref=true|retrieved={{TODAY}}}}


== Tracking category ==
== Tracking category ==
Line 66: Line 68:
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Arts and culture templates]]
[[Category:United Kingdom arts and culture templates|Bio]]
[[Category:External link templates using Wikidata]]
[[Category:External link templates using Wikidata]]
[[Category:Templates that add a tracking category]]
}}</includeonly>
}}</includeonly>

Latest revision as of 17:57, 26 December 2023

Usage

[edit]
  • id= or 1= final portion of the Art UK URL, everything after https://artuk.org/discover/artworks/search/actor: (optional -- drawing directly from Wikidata is preferred; but can be overridden locally in this way)
  • name= or 2= name (optional; defaults to page name, excluding final parentheses if any)
  • wikidata=Q.... give link for an artist other than the main subject of article (optional)
  • nocount=true suppress number of works (optional)
  • oxbio=true output sis followed by: see extended Oxford Dictionary of Art and Artists biography, under "artist profile" (optional)
  • addtext= output is followed by the specified text (optional)
  • ref=true format the output as a reference (optional; use with retrieved=)
  • retrieved= output is followed by ". Retrieved " and the specified date (optional; use with ref=)
  • type= overrides the default "artwork" (e.g., |type=painting or |type=sculpture)

Examples

[edit]
  • For most pages simply use:
* {{Art UK bio}}
By default, the template will use the page-name of the article (without any disambiguating final parentheses), and try to retrieve the Art UK identifier automatically from Wikidata.
  • An artist can also be linked by giving the identifier part of the Art UK directly, e.g.:
* {{Art UK bio|id=de-marees-georges-16971776|name=George de Marées}}
* {{Art UK bio|desmarees-george-16971776|George Desmarées}}
This can be necessary if an artist has more than one page at Art UK. However, if possible, it should be preferred to link via Wikidata as above, as the Wikidata entry is more likely to be updated if the Art UK identifier changes.
* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson}}
If the Wikidata item contains Art UK artist ID (P1367) without the qualifier number of works (P3740):
* {{Art UK bio|wikidata=Q40219650|name=R. G. Brown}}
If the Wikidata item does not contain Art UK artist ID (P1367):
* {{Art UK bio|wikidata=Q9682|name=Elizabeth II}}
  • To omit the number of paintings, use |nocount=true, e.g.:
* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|nocount=true}}
  • For links with an Oxford Dictionary of Art and Artists biography, use |oxbio=true, e.g.:
* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|oxbio=true}}
  • To add text after the usual output, use |addtext=, e.g.:
* {{Art UK bio|wikidata=Q5083334|name=Charles Walter Simpson|addtext=. ADDED TEXT}}
  • To format the output as a reference, use |ref=true, e.g.:
* {{Art UK bio|wikidata=Q21458087|name=Stephen John Marshall|ref=true}}
  • To add a retrieved date after the usual output, use |retrieved=, e.g.:
* {{Art UK bio|wikidata=Q21458087|name=Stephen John Marshall|ref=true|retrieved=13 November 2024}}

Tracking category

[edit]

See also

[edit]