<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AGlossary_link%2Fdoc</id>
	<title>Template:Glossary link/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AGlossary_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Glossary_link/doc&amp;action=history"/>
	<updated>2026-06-05T07:07:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Glossary_link/doc&amp;diff=36739&amp;oldid=prev</id>
		<title>imported&gt;CJDOS: {{{gli}} is a redirect from a shortcut; added Template shortcut box.</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Glossary_link/doc&amp;diff=36739&amp;oldid=prev"/>
		<updated>2022-11-10T20:02:00Z</updated>

		<summary type="html">&lt;p&gt;{{{gli}} is a redirect from a shortcut; added &lt;a href=&quot;/mediawiki/index.php/Template:Template_shortcut&quot; title=&quot;Template:Template shortcut&quot;&gt;Template shortcut&lt;/a&gt; box.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage|[[Template:Glossary link]] and [[Template:Glossary link internal]]}}&lt;br /&gt;
&amp;lt;!----Please place categories where indicated at the bottom of this page----&amp;gt;&lt;br /&gt;
{{Template shortcut|gli}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
The template &amp;#039;&amp;#039;&amp;#039;{{tlx|glossary link}}&amp;#039;&amp;#039;&amp;#039; and its variant &amp;#039;&amp;#039;&amp;#039;{{tlx|glossary link internal}}&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;{{tlx|gli}}&amp;#039;&amp;#039;&amp;#039; for short) are templates for creating structured links to particular entries in topical glossaries (e.g. the {{tlx|cuegloss}} template).&lt;br /&gt;
&lt;br /&gt;
{{tlx|Glossary link}} is a &amp;lt;em&amp;gt;meta-template&amp;lt;/em&amp;gt; for creating templates for specific major glossary articles; it is not usually used directly in an article. {{tlx|gli}} is usually used directly in the glossary article itself. Please categorize any derived, topical glossary link templates that use this meta-template into [[:Category:Glossary link templates]] (this is usually done at the bottom of the template&amp;#039;s /doc page, so that the category is not inside the template itself and it not accidentally transcluded into the articles that use the template).&lt;br /&gt;
&lt;br /&gt;
The documentation below explains how to use them for your topic&amp;#039;s [[MOS:GLOSSARIES|template-structured glossary]]. Like the {{tlx|dfn}} wrapper, and the glossary {{tlx|term}} template, it uses the {{tag|dfn|o}} HTML element properly. (Note that {{tnull|glossary link internal}} necessarily does not use it; {{tag|dfn|o}} should only be used once per term on a single page, at the defining appearance of it.)&lt;br /&gt;
&lt;br /&gt;
{{tlx|Glossary link}} creates a normal blue link. To prevent the &amp;quot;[[MOS:SEAOFBLUE|sea of blue]]&amp;quot; effect, {{tlx|Glossary link internal}} uses the light dashed underline style that has become a &amp;#039;&amp;#039;de facto&amp;#039;&amp;#039; Web standard for definitional markup.&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;This style is exemplified by TechScribe, an online resource for technical writers, and can been seen on most of their pages, e.g. [https://www.techscribe.co.uk/ta/structured-writing-is-partly-structured.htm this one], where blue linking, like Wikipedia&amp;#039;s, is used for major topics, while faint underlining is used for definitional links to the site&amp;#039;s glossary.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tech detail: By using an internal {{tag|span}} with its own independent &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; attribute for a tool tip, it sets this up in a way that does not violate the very geeky and backasswards HTML5 specs on the handing of the &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; attribute of {{tag|dfn|o}}, which is the exact term defined, not its definition.&lt;br /&gt;
&lt;br /&gt;
Due to lack of what would be a pretty sophisticated facility in the [[MediaWiki]] parser, there is no way to have the definition in the glossary be pulled into a pop-up tooltip on mouseover, which would be really cool. [[phab:T102280|Maybe someday.]] For now, it shows the glossary article title (if on another page) and what the entry&amp;#039;s name is, as specified by the template, which is where the reader will go if they click on the glossary link. This replaces the default Wikipedia tooltip for such a link, which would only give the article title.&lt;br /&gt;
&lt;br /&gt;
===Syntax (basic use cases)===&lt;br /&gt;
;Linking from regular article prose to glossary entries:&lt;br /&gt;
*Use a term as it appears in a separate glossary article: {{tlx|glossary link|glossary{{=}}Glossary of botanical terms|utricle}} &amp;amp;ndash; gives: {{glossary link|glossary=Glossary of botanical terms|utricle}}&lt;br /&gt;
*Use an alternative term, linking to the related term in a separate glossary article: {{tlx|glossary link|glossary{{=}}Glossary of botanical terms|utricle|utricular}} &amp;amp;ndash; gives: {{glossary link|glossary=Glossary of botanical terms|utricle|utricular}}&lt;br /&gt;
*Use a partially piped link: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;glossary link&amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|glossary&amp;lt;/nowiki&amp;gt;{{=}}&amp;lt;nowiki&amp;gt;Glossary of botanical terms|utricle}}s&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;ndash; gives: {{glossary link|glossary=Glossary of botanical terms|utricle}}s&lt;br /&gt;
*Link targets are converted to lower case by this template and the corresponding {{tlx|term}} in the glossary (the original version as specified in {{tlc|term}}, even if it is &amp;quot;uTriCle&amp;quot;, will also work): {{tlx|glossary link|glossary{{=}}Glossary of botanical terms|Utricle}} &amp;amp;ndash; gives: {{glossary link|glossary=Glossary of botanical terms|Utricle}} (note the link target). In other words, &amp;lt;code&amp;gt;{{dc|1=&amp;lt;nowiki&amp;gt;{{glossary link|glossary=Glossary of botanical terms|utricle|Utricle}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; is not necessary.&amp;lt;br /&amp;gt;&amp;amp;nbsp;&lt;br /&gt;
*Use a term as it appears in the glossary section of the same article: {{tlx|glossary link|chicken nugget}} &amp;amp;ndash; gives: {{glossary link|chicken nugget}}&lt;br /&gt;
*Same but less visually intrusive: {{tlx|glossary link internal|chicken nugget}} or {{tlx|gli|chicken nugget}} &amp;amp;ndash; gives: {{glossary link internal|chicken nugget}}&lt;br /&gt;
*Use an alternative term, linking to a related term in the glossary section of the same article: {{tlx|glossary link|chicken nugget|Compressed and breaded poultry snacks}} &amp;amp;ndash; gives: {{glossary link|chicken nugget|Compressed and breaded poultry snacks}}&lt;br /&gt;
*Same but less visually intrusive: {{tlx|glossary link internal|chicken nugget|Compressed and breaded poultry snacks}} or {{tlx|gli|chicken nugget|Compressed and breaded poultry snacks}} &amp;amp;ndash; gives: {{glossary link internal|chicken nugget|Compressed and breaded poultry snacks}}&lt;br /&gt;
Normally this is done with a derived, glossary-specific template. For example, {{tlx|glossary link|glossary{{=}}Glossary of cue sports terms|massé}} can be done simply with {{tlx|cuegloss|massé}}.&lt;br /&gt;
&lt;br /&gt;
;Linking between glossary entries on the same page:&lt;br /&gt;
We use the {{tlx|glossary link internal}} (short name: {{tlx|gli}}) variant to not plaster the page with blue links; ones that go to full articles on terms will thus stand out from links to other short definitions in the same glossary:&lt;br /&gt;
*Use a term as it appears within the same glossary page: {{tlx|gli|Example code}} &amp;amp;ndash; gives: {{gli|Example code}}&lt;br /&gt;
*Use an alternative term, linking to the related term within the same glossary page: {{tlx|gli|Example code|some examples}} &amp;amp;ndash; gives: {{gli|Example code|some examples}}&amp;lt;br /&amp;gt;&amp;amp;nbsp;&lt;br /&gt;
*Use a term as it appears on a different page of the same multi-page glossary: {{tlx|gli|glossary{{=}}Glossary of education terms (M–O)|MEB}} &amp;amp;ndash; gives: {{gli|glossary=Glossary of education terms (M–O)|MEB}}&lt;br /&gt;
*Use an alternative term, linking to the related term on a different page of the same multi-page glossary: {{tlx|gli|glossary{{=}}Glossary of education terms (M–O)|MEB|Master&amp;#039;s in European Business}} &amp;amp;ndash; gives: {{gli|glossary=Glossary of education terms (M–O)|MEB|Master&amp;#039;s in European Business}}&lt;br /&gt;
Normally this is done with the {{tlx|gli}} shortcut; {{tlx|glossary link internal|Example code}} and {{tlx|gli|Example code}} are equivalent. However, in an especially long page, if you run into the parser functions limit, you can use the full-length name to cut down on the count of parser actions, by skipping the redirect translations and going directly to the template.&lt;br /&gt;
&lt;br /&gt;
===Syntax (geeky version)===&lt;br /&gt;
:{{tlx|glossary link|glossary{{=}}&amp;lt;var&amp;gt;glossary article&amp;lt;/var&amp;gt;|term{{=}}&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link|glossary=glossary article|term=term in glossary}}&lt;br /&gt;
:{{tlx|glossary link|glossary{{=}}&amp;lt;var&amp;gt;glossary article&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link|glossary=glossary article|term in glossary}}&lt;br /&gt;
:{{tlx|glossary link|glossary{{=}}&amp;lt;var&amp;gt;glossary article&amp;lt;/var&amp;gt;|term{{=}}&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;|text{{=}}&amp;lt;var&amp;gt;text in article&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link|glossary=glossary article|term=term in glossary|text=text in article}}&lt;br /&gt;
:{{tlx|glossary link|glossary{{=}}&amp;lt;var&amp;gt;glossary article&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;text in article&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link|glossary=glossary article|term in glossary|text in article}}&lt;br /&gt;
:{{tlx|glossary link|&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link|term in glossary}}&lt;br /&gt;
:{{tlx|glossary link|&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;text in article&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link|term in glossary|text in article}}&lt;br /&gt;
The {{tnull|glossary link internal}} variant works exactly the same, but is used inside the glossary itself to provide cross-references between entries, and is also used when the same term is linked twice in other articles (e.g. because the article is very long). Its only difference from {{tnull|glossary link}} is that it does not use {{tag|dfn|o}}, since it is only supposed to be used once per page per term, and it does not blue-link the link, since we don&amp;#039;t want to create a &amp;quot;[[MOS:SEAOFBLUE|sea of blue]]&amp;quot; link mess.&lt;br /&gt;
:{{tlx|glossary link internal|&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link internal|term in glossary}}&lt;br /&gt;
:{{tlx|glossary link internal|&amp;lt;var&amp;gt;term in glossary&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;text in article&amp;lt;/var&amp;gt;}}&amp;amp;nbsp; results in:&amp;amp;nbsp; {{glossary link internal|term in glossary|text in article}}&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
Each version of the template takes up to three &amp;lt;var&amp;gt;&amp;lt;em&amp;gt;case-sensitive&amp;lt;/em&amp;gt;&amp;lt;/var&amp;gt;, parameters for its data:&lt;br /&gt;
&lt;br /&gt;
*{{para|glossary|&amp;lt;var&amp;gt;the title of the glossary article to be linked to&amp;lt;/var&amp;gt;}}&lt;br /&gt;
**This is part of the URL to be generated; it {{strong|cannot contain any styling, templates, HTML, or other markup.}}&lt;br /&gt;
*{{para|term|&amp;lt;var&amp;gt;the term entry in the glossary to be linked &amp;lt;strong&amp;gt;to&amp;lt;/strong&amp;gt;&amp;lt;/var&amp;gt;}} &amp;amp;nbsp;(or any {{tlx|anchor}} for it)&lt;br /&gt;
**This is part of the URL to be generated; it {{strong|cannot contain any styling, templates, HTML, or other markup.}}&lt;br /&gt;
**{{strong|A double quote (&amp;quot;) character {{em|must}} be escaped as &amp;lt;code&amp;gt;&amp;amp;amp;quot;&amp;lt;/code&amp;gt; or the tooltip will break.}} Glossary-specific templates based on this meta-template need to mention this prominently in their documentation.&lt;br /&gt;
** This parameter can also be done as {{para|1}} or the first unnamed parameter. It must not be unnamed when creating a glossary-specific template from the meta-template, because you cannot guarantee that input will not contain a &amp;lt;kbd&amp;gt;=&amp;lt;/kbd&amp;gt; character.&lt;br /&gt;
*{{para|text|&amp;lt;var&amp;gt;the actual text in the article to be linked &amp;lt;strong&amp;gt;from&amp;lt;/strong&amp;gt;&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;if different from the term linked &amp;lt;em&amp;gt;to&amp;lt;/em&amp;gt;&amp;lt;/var&amp;gt;}}&lt;br /&gt;
** This parameter can be styled, templated, etc. (though cannot contains links – it&amp;#039;s going to become the link). Styling can also be applied before and after the entire template, of course.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Limitations&amp;lt;/strong&amp;gt;: The &amp;lt;var&amp;gt;glossary&amp;lt;/var&amp;gt; and &amp;lt;var&amp;gt;term&amp;lt;/var&amp;gt; parameters cannot have any HTML or wiki markup; they are basically parts of URLs (namely &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;en.wikipedia.org/wiki/&amp;lt;var&amp;gt;glossary&amp;lt;/var&amp;gt;#&amp;lt;var&amp;gt;term&amp;lt;/var&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
A {{para|color}} parameter allows the color of the text to be changed. This should &amp;lt;em&amp;gt;only&amp;lt;/em&amp;gt; be done when the rest of the text is also another color for some reason, e.g. because of white text in a dark-background table cell in a [[WP:NAVBOX|navbox]] or [[WP:INFOBOX|infobox]]. The parameter will accept established HTML/CSS color names (e.g. &amp;lt;code&amp;gt;white&amp;lt;/code&amp;gt;) and hex values (e.g. &amp;lt;code&amp;gt;#FFFFFF&amp;lt;/code&amp;gt;), and is spelled &amp;quot;&amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt;&amp;quot; since this is the spelling used by HTML and CSS.&lt;br /&gt;
&lt;br /&gt;
Some little-used parameters that are there just in case:&lt;br /&gt;
&lt;br /&gt;
*{{para|id|&amp;lt;var&amp;gt;an_ID&amp;lt;/var&amp;gt;}} &amp;amp;ndash; an anchor ID (no spaces, must begin with alphabetic letter) for #linking and possibly other purposes&lt;br /&gt;
*{{para|style|&amp;lt;var&amp;gt;arbitrary:css;&amp;lt;/var&amp;gt;}} &amp;amp;ndash; CSS directives for custom-styling the instance&lt;br /&gt;
*{{para|class|&amp;lt;var&amp;gt;css_class&amp;lt;/var&amp;gt;}} &amp;amp;ndash; a CSS class or classes (separated by spaces not commas if more than one); by default it already include &amp;lt;code&amp;gt;glossary-link&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;glossary-link-internal&amp;lt;/code&amp;gt; (in the template with the respectively matching name) for custom [[Help:User CSS|user CSS]].&lt;br /&gt;
&lt;br /&gt;
===Glossary entry formatting===&lt;br /&gt;
&lt;br /&gt;
===Example code===&lt;br /&gt;
The template {{tlx|cuegloss}} for [[cue sports]]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{glossary link&lt;br /&gt;
|glossary=Glossary of cue sports terms&lt;br /&gt;
|term={{{1}}}&lt;br /&gt;
|text={{{2|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The {{tlx|glossary link internal}} variant is used {{em|inside}} such an article as [[Glossary of cue sports terms]]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{glossary link internal&lt;br /&gt;
|glossary=Glossary of cue sports terms&lt;br /&gt;
|term={{{1}}}&lt;br /&gt;
|text={{{2|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For real-world application, see [[Template:Cuegloss/doc]], the [[Glossary of cue sports terms]] article, and articles like [[Nine-ball]] that use the template to link to terms in the glossary.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{tl|glossary}}, {{tl|glossary end}}, {{tl|term}}, and {{tl|defn}}, the glossary structure templates&lt;br /&gt;
*{{tl|dfn}} the more general &amp;lt;code&amp;gt;&amp;amp;lt;dfn&amp;amp;gt;&amp;lt;/code&amp;gt; template&lt;br /&gt;
*{{tl|glossary term}}, for adding a flush-right box containing a link to a term in the [[Wikipedia:Glossary]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{Reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!----Categories below this line, please:----&amp;gt;&lt;br /&gt;
[[Category:Glossary templates]]&lt;br /&gt;
[[Category:Glossary link templates| ]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;CJDOS</name></author>
	</entry>
</feed>