Template:Exp: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
m (Mainspaced tap to show ver.: https://zelda.gamepedia.com/index.php?title=User:KokoroSenshi/Sandbox/Template:Exp&oldid=625305)
Line 1: Line 1:
<!--
<span class="explain" rel="tooltip" title="{{{1}}}" style="color:{{{3|Yellow}}};">{{{2|[[File:Triforce piece.png|13px|link=|text-top]]}}}</span><noinclude>
--><span class="explain" title="{{{1}}}" style="color:{{{3|Yellow}}};"><!--
  -->{{{2|[[File:Triforce piece.png|13px|link=|text-top]]}}}<!--
  --><span class="title-text" style="display:none;"> {{{1}}}</span><!--
--></span><!--
-->{{#if:{{#varexists:cssExp}}|<!-- nothing -->|
{{#css:
.explain a {
  cursor: help;
  text-decoration: none;
}
}}
}}{{#vardefine:cssExp}}<noinclude>
==Purpose==
==Purpose==
This template provides a bit of code that will display text with an explanatory {{dict|tooltip}}.
This template provides a bit of code that will display text with an explanatory {{dict|tooltip}}.

Revision as of 01:00, 6 March 2018

Purpose

This template provides a bit of code that will display text with an explanatory tooltip.

Use this template sparingly and only for non-essential notes. A large portion of Zelda Wiki's readers are on mobile devices that cannot open tooltips. When applicable, use ExpGame instead.

Usage

To use this template to have just the basic functionality, type:
    {{Exp|Explanation }}

  • Explanation — The tooltip explanation you wish to have.

Additional options are available as well:
    {{Exp| Explanation |Display Text |Color }}

  • Explanation — The tooltip explanation you wish to have. Due to a bug, the tooltip will not appear if it contains double quotes ("). Instead, use single quotes (') or the code &quot;.
  • Display Text — Define a different text for the template to display. Defaults to an image of the Triforce.
  • Color — Optionally define a different color to use. Must be in HTML color format: either defined colors like Red, Blue, Yellow, etc. or hex codes with a sharp/pound symbol such as #00CC00. Defaults to Yellow if not defined.