Template:Birdgloss/doc
| This is a documentation subpage for Template:birdgloss. It contains usage information, categories and other content that is not part of the original template page. |
The {{birdgloss}} template is used to create links from a word or phrase to corresponding entry in the glossary of bird terms article. It makes proper use of the <dfn> HTML element (as documented at the parent meta-template, Template:glossary link). The {{glossary link internal}} variant (commonly used with its shortcut {{gli}}, which does not use that markup (it is reserved for term entries), is usually used only inside the glossary itself, for cross-references to other entries within it, though it can also be used in other articles where the same term is linked twice because of article length (<dfn> should only be used once per term per page, as it means "this is the defining instance of this term on this page").
Usage
Syntax:
From an article to the glossary:
{{birdgloss|term in glossary|text in article}}
If the text being linked matches the name of the glossary entry (or an anchor present for a term—the glossary attempts to provide anchor for all alternate names, and grammatical variations), regardless of upper or lower case, you can simply use:
{{birdgloss|terms or phrase in article that is included in the glossary}}
It will also handle suffixes like plurals, etc., added onto entries:
{{birdgloss|text in article that is a term in glossary}}ized
or (in glossary of bird terms itself, or for duplicate links in same article):
{{gli|term in glossary|text in article}}
This template makes it very simple to add links, in article prose, talk pages, etc., to entries in the Glossary of bird terms, a stand-alone glossary list article. It takes one or two parameters, depending on needs, as detailed below.
Wikitext example:
The {{birdgloss|definitive plumage|definitive}} plumage of a whooping crane is mostly pure white.
Result:
The definitive plumage of a whooping crane is mostly pure white.
The first parameter is the exact name of the term to be linked to in Glossary of bird terms (or any alias of it as defined in the glossary with an {{anchor}}), and the second parameter is the text string to be wikilinked inside the article.
For example, in this case the term to be defined is covered at Glossary of bird terms#definitive plumage, so definitive plumage is the first parameter.
The second parameter is optional if the text string to be wikilinked from in the article is exactly the same (including case, plurality, etc.) as the glossary term (or alternative {{anchor}}}} in the first parameter:
The {{birdgloss|definitive plumage}} of a whooping crane is mostly pure white.
Result:
The definitive plumage of a whooping crane is mostly pure white.