Template:Exp: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
m (→‎top: Standardizing Maintenance Categories)
 
(13 intermediate revisions by 3 users not shown)
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>
<includeonly><templatestyles src="Template:Exp/Styles.css"/><span class="explain {{Tooltip}}" title="{{#invoke:Exp|Escape|{{{1}}}}}">{{{2|[[File:Triforce piece.png|13px|link=|text-top]]}}}</span>{{#if:{{{3|}}}|{{#invoke:Error|Warn|Custom colors are no longer supported as they may be incompatible with future color schemes.|Category:{{Deprecated Parameters}}}}}}</includeonly><noinclude>
==Purpose==
{{Documentation}}
This template provides a bit of code that will display text with an explanatory {{dict|tooltip}}.
[[Category:Formatting templates]]
 
<u>Use this template sparingly and only for non-essential notes.</u> A large portion of Zelda Wiki's readers are on mobile devices that cannot open tooltips. When applicable, use [[Template:ExpGame|ExpGame]] instead.
 
==Usage==
To use this template to have just the basic functionality, type:<br>
{{NoWikiTemp|Normal|Explanation}}
 
* '''''Explanation''''' — The tooltip explanation you wish to have.
 
Additional options are available as well: <br>
{{NoWikiTemp|Normal| 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 <code>&amp;quot;</code>.
* '''''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.
 
[[Category:Formatting Templates]]
</noinclude>
</noinclude>

Latest revision as of 16:53, 23 April 2023


Purpose

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

When applicable, use Exp Game instead.

Usage

{{Exp|<tooltip>|<displayText>}}
  • tooltip — The tooltip explanation you wish to have.
  • displayText — Define a different text for the template to display. Defaults to an image of the Triforce.

Examples

#InputOutputCategories added
1{{Exp|Master Mode only}}
2{{Exp|west in wii version|east}} east
3{{Exp|This name is derived from Japanese text.|Gūma|#e44b1f}} Gūma
The above documentation is transcluded from Template:Exp/Documentation. (edit | history)