User:Pharap/Templates/Hover text: Difference between revisions

From Guild of Archivists
(Add option to disable dotted line.)
(Rename 'text' parameter to 'maintext'.)
Line 1: Line 1:
<includeonly><span title="{{{hovertext|{{{1|}}}}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom: 1px dotted"}}>{{{text|{{{2|}}}}}}</span></includeonly><noinclude>Example: "<code><nowiki>{{User:Pharap/Templates/Hovertext|This is the hovertext|This is the main text}}</nowiki></code>" → {{User:Pharap/Templates/Hovertext|This is the hovertext|This is the main text}}</noinclude>
<includeonly><span title="{{{hovertext|{{{1|}}}}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom: 1px dotted"}}>{{{maintext|{{{2|}}}}}}</span></includeonly><noinclude>Example: "<code><nowiki>{{User:Pharap/Templates/Hovertext|This is the hovertext|This is the main text}}</nowiki></code>" → {{User:Pharap/Templates/Hovertext|This is the hovertext|This is the main text}}</noinclude>

Revision as of 10:40, 11 January 2024

Example: "{{User:Pharap/Templates/Hovertext|This is the hovertext|This is the main text}}" → This is the main text