Difference between revisions of "Template:Hover title"

From RimWorld Wiki
Jump to navigation Jump to search
m (Jimyoda moved page Template:H:title to Template:Hover title: Changed to descriptive title)
(Moving text to documentation.)
Line 1: Line 1:
<noinclude>This template takes two parameters (link=yes/no and dotted=yes/no), and creates underlined text with a hover box for many modern browsers supporting CSS.
+
<includeonly>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>]]|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>}}</includeonly>
 
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
See also: [[mw:{{PAGENAME}}|mw]]
+
<noinclude>
 
+
{{documentation}}
</noinclude><includeonly>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>]]|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>}}</includeonly><noinclude>[[Category:Help]]</noinclude>
+
</noinclude>

Revision as of 01:09, 7 June 2020


Documentation icon Template documentation[view] [edit] [history] [purge]

Description

This template displays pop-up text when hovering over a block of text.

Syntax

This template takes two optional and two required parameters.

Optional
  • link=yes/no (default is no if omitted)
  • dotted=yes/no (default is yes if omitted)
Required
  • hover text (shown in pop-pup)
  • display text (displayed on page with optional dotted underline)

{{Hover title|link=yes/no|dotted=yes/no|hover text|display text}}

Usage

This template is used primarily on header text in tables and infoboxes to explain the displayed text without taking up more space.

Sample Output

Hover over this display text.