Difference between revisions of "Template:Term"
Jump to navigation
Jump to search
WikiWorks753 (talk | contribs) |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#tip-text:{{#replace:{{{1|}}}|(glossary)|}}|{{#lsth:{{{1|}}}}}}}</includeonly> | + | <noinclude> |
+ | Renders tooltip-ed link to a glossary term, usage: | ||
+ | |||
+ | <nowiki>{{Term|Some glossary term page}}</nowiki> | ||
+ | |||
+ | <nowiki>{{Term|Some glossary term page|Display text}}</nowiki> | ||
+ | |||
+ | </noinclude><includeonly><span class="noprint"><!-- | ||
+ | -->{{#if:{{#pos:{{PAGENAME}}|(glossary)}}|<!-- | ||
+ | ---->{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#if:{{{2|}}}|<!-- | ||
+ | ---->[[{{{1|}}}|{{#tip-text:{{{2}}}|{{#lsth:{{{1|}}}}}}}]]<!-- | ||
+ | -->|<!-- | ||
+ | ---->[[{{{1|}}}|{{#tip-text:{{lc:{{#replace:{{{1|}}}|(glossary)|}}}}|{{#lsth:{{{1|}}}}}}}]]<!-- | ||
+ | -->}}<!-- | ||
+ | --></span><span class="printonly">{{#if:{{{2|}}}|{{{2|}}}|{{lc:{{#replace:{{{1|}}}|(glossary)|}}}}}}</span><!-- | ||
+ | -->}}<!-- | ||
+ | --></includeonly> |
Latest revision as of 15:12, 25 October 2019
Renders tooltip-ed link to a glossary term, usage:
{{Term|Some glossary term page}}
{{Term|Some glossary term page|Display text}}