Template:Nornabrn
Usage
[edit]Template for assisting formatting of Norwegian place-name abbreviations in An Etymological Dictionary of the Norn Language in Shetland's Introduction part VI.
There is one required parameter, the abbreviation. If this is the only parameter provided, it will be looked up and formatted with a tooltip, or, if it is not known, an error displayed.
- Known abbreviation
{{Nornabrn|Berg.}}
Berg.
- Unknown abbreviation
{{Nornabrn|not in known list}}
Unrecognised abbreviation: not in known list
With the size of some of the chapters in the dictionary, and the frequency of abbreviations throughout the text, having to look the abbreviations up every time from a list runs the risk of blowing the expansion limit once all the pages are transcluded. So, to make this template more efficient, a second optional parameter can be supplied that skips the abbreviation being looked up, and will fill out the tooltip with whatever text you provide.
- Known abbreviation with known tooltip text
{{Nornabrn|Berg.|Bergen}}
Berg.
Implementation
[edit]Internally, this template uses Module:Nornabr and Module:Nornabr/nornabrn data to map abbreviations to meanings.