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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
=== Usage ===
 
=== Usage ===
This template takes two parameters, both optional,
+
This template takes two parameters, both optional.
 
 
*<code><nowiki>{{British-Museum-object}}</nowiki></code> &rarr; {{British-Museum-object}}
 
  
 +
The first, unnamed parameter has the text that is shown:
 
*<code><nowiki>{{British-Museum-object|EA 32751}}</nowiki></code> &rarr; {{British-Museum-object|EA 32751}}
 
*<code><nowiki>{{British-Museum-object|EA 32751}}</nowiki></code> &rarr; {{British-Museum-object|EA 32751}}
  
*<code><nowiki>{{British-Museum-object|The Ringlemere gold cup|url=http://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}</nowiki></code> &rarr; {{British-Museum-object|The Ringlemere gold cup|url=http://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}
+
Then parameter '''{{para|url|}}''' can be used to create an external link:
 +
*<code><nowiki>{{British-Museum-object|The Ringlemere gold cup|url=http://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}</nowiki></code> &rarr; {{British-Museum-object|The Ringlemere gold cup|url=https://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}
  
* <code><nowiki>{{British-Museum-object||url=http://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}</nowiki></code> &rarr; {{British-Museum-object||url=http://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}
+
* <code><nowiki>{{British-Museum-object||url=https://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}</nowiki></code> &rarr; {{British-Museum-object||url=https://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}
  
You can use the database number instead of the url (shows as "objectid=" in the url), this is not to be confused with the British Museum "registration number", department based "big number" or the image identification numbers shown on photographs. This automatically generates the url for the collection database record.
+
Parameter '''{{para|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).
  
 
*<code><nowiki>{{British-Museum-object|EA 32751|id=117645}}</nowiki></code> &rarr; {{British-Museum-object|EA 32751|id=117645}}
 
*<code><nowiki>{{British-Museum-object|EA 32751|id=117645}}</nowiki></code> &rarr; {{British-Museum-object|EA 32751|id=117645}}
 
Note that if {{para|url|}}, this will have no effect.
 
Note that if {{para|url|}}, this will have no effect.
 +
 +
Using no parameters may be trivial:
 +
*<code><nowiki>{{British-Museum-object}}</nowiki></code> &rarr; {{British-Museum-object}}
  
 
''Notes''
 
''Notes''
 
:The examples are from [[Ringlemere Cup]] and [[Ginger (mummy)]].
 
:The examples are from [[Ringlemere Cup]] and [[Ginger (mummy)]].
:Sometimes instead of {{para|url|}}, unnamed parameter 2 may be used. This is deprecated, because it may cause problems. {{nowrap|{{!xt|<nowiki>{{British-Museum-object|The Ringlemere gold cup</nowiki>'''<nowiki>|http://www.</nowiki>'''<nowiki>british...etcetera}}</nowiki>}}}}.
 
  
 
=== See also ===
 
=== See also ===
 
*{{tl|British Museum}}
 
*{{tl|British Museum}}
 +
*{{tl|British-Museum-100}}
 
*[[User:Fæ/BM refs]] (essay)
 
*[[User:Fæ/BM refs]] (essay)
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:British Museum templates|Objects]]
 
[[Category:British Museum templates|Objects]]
[[Category:Hatnote templates]]
+
}}</includeonly>
</includeonly>
 

Latest revision as of 00:24, 24 April 2020

Usage

This template takes two parameters, both optional.

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

  • {{British-Museum-object|EA 32751}}
    This article is about an item held in the British Museum. The object reference is EA 32751.

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}}
    This article is about an item held in the British Museum. The object reference is The Ringlemere gold cup.
  • {{British-Museum-object||url=https://www.britishmuseum.org/explore/highlights/highlight_objects/pe_prb/t/the_ringlemere_gold_cup.aspx}}
    This article is about an item held in the British Museum. [1]

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).

  • {{British-Museum-object|EA 32751|id=117645}}
    This article is about an item held in the British Museum. The object reference is EA 32751.

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

Using no parameters may be trivial:

  • {{British-Museum-object}}
    This article is about an item held in the British Museum.

Notes

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

See also