Template:Cuegloss/doc: Difference between revisions

→‎Usage: clean up
m (1 revision)
 
(→‎Usage: clean up)
 
Line 9: Line 9:
or (in [[glossary of cue sports terms]] itself, or for duplicate links in same article):
or (in [[glossary of cue sports terms]] itself, or for duplicate links in same article):
*{{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 cue sports terms]], a [[WP:MOSGLOSS|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 cue sports terms]], a [[SV:MOSGLOSS|stand-alone glossary]] list article.  It takes one or two parameters, depending on needs, as detailed below.


If <var>term in glossary</var> contains a double quote (") character, it {{em|must}} be escaped as <code>&amp;quot;</code> or the second half of tooltip (the <var>term in glossary</var>) will not show up:
If <var>term in glossary</var> contains a double quote (") character, it {{em|must}} be escaped as <code>&amp;quot;</code> or the second half of tooltip (the <var>term in glossary</var>) will not show up:
Line 25: Line 25:
This template also supports this sort of usage, exactly as a regular wikilink would:  <code><nowiki>{{Cuegloss|Bank shot|bank}}ed</nowiki></code>.
This template also supports this sort of usage, exactly as a regular wikilink would:  <code><nowiki>{{Cuegloss|Bank shot|bank}}ed</nowiki></code>.


The first parameter is the <em>exact</em> name of the term to be linked to in [[glossary of cue sports terms]] (or any alias of it as defined in the glossary with {{tlx|anchor}}), and the second parameter is the text string to be wikilinked from in the article.  For example, in this case the term to be defined is covered at [[Glossary of cue sports terms#bank shot]], so ''Bank shot'' is the first parameter.  <em>Please note</em> that the <code>id=</code> parameters that are generated for linkable glossary terms <em>are</em> case-sensitive (in every browser except Internet Explorer under Windows).  That is, {{tlx|Cuegloss|<strong><u>O</u></strong>bject ball|object ball}} and {{tlx|Cuegloss|<strong><u>o</u></strong>bject ball|object ball}} are ''not'' equivalent.  
The first parameter is the ''exact'' name of the term to be linked to in [[glossary of cue sports terms]] (or any alias of it as defined in the glossary with {{tlx|anchor}}), and the second parameter is the text string to be wikilinked from in the article.  For example, in this case the term to be defined is covered at [[Glossary of cue sports terms#bank shot]], so ''Bank shot'' is the first parameter.  ''Please note'' that the <code>id=</code> parameters that are generated for linkable glossary terms ''are'' case-sensitive (in every browser except Internet Explorer under Windows).  That is, {{tlx|Cuegloss|<strong><u>O</u></strong>bject ball|object ball}} and {{tlx|Cuegloss|<strong><u>o</u></strong>bject ball|object ball}} are ''not'' equivalent.  


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 {{tnull|anchor}}}} in 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 {{tnull|anchor}}}} in the first parameter:
14,061

edits