Difference between revisions of "Template:British-Museum-object"

From blackwiki
Jump to navigation Jump to search
imported>Unknown user
imported>Nihiltres
(Converted raw italics to use {{rellink}} instead, because it seems to be that particular sort of metadata…)
Line 1: Line 1:
 
+
{{rellink|1=This article is about an item held in the [[British Museum]]. {{#if:{{{1|}}}|Object reference:|}} <!--
 +
if 2  -->{{#if: {{{2|}}} |[{{{2|}}}|<!--
 +
else url -->{{#if: {{{url|}}}|[{{{url|}}}|<!--
 +
else id  -->{{#if: {{{id|}}} |[http://www.britishmuseum.org/research/search_the_collection_database/search_object_details.aspx?objectid={{{id|}}}&partid=1|}}<!--end id-->}}<!--end url-->}}<!--end 2--> {{#if: {{{1|}}}|{{{1|}}}.}} <!--
 +
if 2 -->{{#if: {{{2|}}} |]|<!--
 +
else url -->{{#if: {{{url|}}}|]|<!--
 +
else id  -->{{#if: {{{id|}}}|]|}}<!--end id-->}}<!--end url-->}}<!--end 2
 +
-->}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 20:51, 13 June 2010

Template:Rellink

Usage

This template takes two parameters, both optional.

The first, unnamed parameter has the text that is shown:

Then parameter |url= can be used to create an external link:

  • {{British-Museum-object|The Ringlemere gold cup|url=http://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}Template:Rellink
  • {{British-Museum-object||url=https://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}Template:Rellink

Parameter |id=, can be used for the database number instead of the full url. This automatically generates the url for the BM collection database record, with "objectid=" in the url. (This number is not to be confused with the British Museum "registration number", department based "big number" or the image identification numbers shown on photographs).

Note that if |url=, this will have no effect.

Using no parameters may be trivial:

Notes

The examples are from Ringlemere Cup and Ginger (mummy).

See also