Difference between revisions of "Template:Term"

From SEBoK
Jump to navigation Jump to search
Line 7: Line 7:
  
 
</noinclude><includeonly><span class="noprint"><!--
 
</noinclude><includeonly><span class="noprint"><!--
 +
-->{{#if:{{#pos:{{PAGENAME}}|(glossary)}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]|[[{{{1}}}]]}}|<!--
 
-->{{#if:{{{2|}}}|<!--
 
-->{{#if:{{{2|}}}|<!--
 
---->[[{{{1|}}}|{{#tip-text:{{{2}}}|{{#lsth:{{{1|}}}}}}}]]<!--
 
---->[[{{{1|}}}|{{#tip-text:{{{2}}}|{{#lsth:{{{1|}}}}}}}]]<!--
Line 12: Line 13:
 
---->[[{{{1|}}}|{{#tip-text:{{lc:{{#replace:{{{1|}}}|(glossary)|}}}}|{{#lsth:{{{1|}}}}}}}]]<!--
 
---->[[{{{1|}}}|{{#tip-text:{{lc:{{#replace:{{{1|}}}|(glossary)|}}}}|{{#lsth:{{{1|}}}}}}}]]<!--
 
-->}}<!--
 
-->}}<!--
--></span><span class="printonly">{{#if:{{{2|}}}|{{{2|}}}|{{lc:{{#replace:{{{1|}}}|(glossary)|}}}}}}</span></includeonly>
+
--></span><span class="printonly">{{#if:{{{2|}}}|{{{2|}}}|{{lc:{{#replace:{{{1|}}}|(glossary)|}}}}}}</span><!--
 +
-->}}<!--
 +
--></includeonly>

Revision as of 15:02, 24 October 2019

Renders tooltip-ed link to a glossary term, usage:

{{Term|Some glossary term page}}
{{Term|Some glossary term page|Display text}}