Template:DKB

DK-Kk

This template creates a link to an item record in the Royal Danish Library (Danish: Det Kgl. Bibliotek) in Copenhagen, Denmark. It is often used in the "Scanner" field of uploaded files.

Parameters

Parameter Description Type Default
1 The item's identifier in the library catalog. Can be provided in two formats:
• Full permalink format: #######/alma#########
• Alma-only format: alma#########
When only the alma ID is provided, the template will automatically prepend the required prefix.
Positional Optional (but recommended)
showcode Set to yes to display the full template syntax (e.g., {{DKB|alma#########}}) as the link text. Useful for copy & paste when uploading scores. Leave empty or omit to show the library name ("DK-Kk" / "Det Kgl. Bibliotek"). Named / String Empty (shows library name)

Usage Examples

  • Basic usage with full permalink ID:
    • Template:{{DKB|1o797oc/alma99124095529605763}}
    • Result: Links to the catalog record, displaying "DK-Kk" as clickable text.
  • Basic usage with alma-only ID:
    • Template:{{DKB|alma99124095529605763}}
    • Result: Same as above, but you only need to provide the alma portion. The template automatically adds the prefix.
  • With showcode enabled (displays template syntax):
    • Template:{{DKB|alma99124095529605763|showcode=yes}}
    • Result: Links to the catalog record, displaying the full template code {{DKB|alma99124095529605763}} as clickable text (ideal for copying the template directly).
  • Generic link to library collection (no specific item):
    • Template:{{DKB}}
    • Result: Links to the general sheet music collection page.

Obtaining the Item ID

To find an item's identifier in the library catalog:

  1. Search the item in the library catalog
  2. Click "Link" at the top of the item's record (alternatively, click the ellipsis menu on the right of the item node in search results and select "Link")
  3. The permalink value can be extracted from the resulting URL in one of two formats:
    • Full format: #######/alma######### (e.g., 1o797oc/alma99124095529605763)
    • Alma-only format: alma######### (e.g., alma99124095529605763)
  4. Either format works with this template — if you only have the alma portion, simply enter that value in parameter 1.