Jump to content

Template:Clangloss/doc: Difference between revisions

From BattleIntelligence
imported>Deadfire
Template Doc Creation
 
m Text replacement - "BattleTechWiki" to "BattleIntelligence"
 
Line 16: Line 16:
*{{tlx|glossary link internal|<var>term in glossary</var>|<var>text in article</var>}}
*{{tlx|glossary link internal|<var>term in glossary</var>|<var>text in article</var>}}


This template makes it very simple to add links, in article prose, talk pages, etc., to entries in the [[Glossary of Clan Terms]], a [[BattleTechWiki:Glossaries|stand-alone glossary]] list article.  It takes one or two parameters, depending on needs, as detailed below.
This template makes it very simple to add links, in article prose, talk pages, etc., to entries in the [[Glossary of Clan Terms]], a [[BattleIntelligence:Glossaries|stand-alone glossary]] list article.  It takes one or two parameters, depending on needs, as detailed below.


==Examples==
==Examples==

Latest revision as of 00:13, 1 May 2025

The {{clangloss}} template is used to create links from a word or phrase to corresponding entries in the Glossary of Clan Terms article. Example: Abtakha. It makes proper use of the <dfn> HTML element (as documented at the parent meta-template, Template:glossary link). The {{glossary link internal}} variant, 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:

  • {{clangloss|term in glossary|text in article}}

If the text being linked matches the name of (or an anchor present at) the glossary entry, regardless of upper or lower case, you can simply do:

  • {{clangloss|text in article that is a term in glossary}}

It will also handle suffixes like plurals, etc., added onto it:

  • {{clangloss|text in article that is a term in glossary}}ized

or (in Glossary of Clan Terms itself, or for duplicate links in same article):

This template makes it very simple to add links, in article prose, talk pages, etc., to entries in the Glossary of Clan Terms, a stand-alone glossary list article. It takes one or two parameters, depending on needs, as detailed below.

Examples

{{Clangloss|Batchall}}s are what clans do in order to start a battle.

Result:

Batchalls are what clans do in order to start a battle.