Template:Tooltip/doc: Difference between revisions

From Olentangy Park Wiki
Jump to navigation Jump to search
Created page
 
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Copyable Code ==
== Use ==
<ref>
 
Use this template for extra info such as currency conversion and inflation context.
 
'''text''' - The visible text
 
'''tooltip''' - The text in the tooltip
 
== Copyable Base Code ==
<div class="copycode">
<nowiki>{{</nowiki>Tooltip
|text          =
|tooltip      =
<nowiki>}}
</nowiki>
</div>
 
== Example ==
 
{{Tooltip
{{Tooltip
|text          = {{{text}}}
|text          = {{{text}}}
|tooltip      = {{{tooltip}}}
|tooltip      = {{{tooltip}}}
}}
}}
</ref>
 
So the following code:
<div class="copycode">
<div class="copycode">
<nowiki><ref>{{</nowiki>Tooltip  
<nowiki>The cost was {{Tooltip |text = $4|tooltip = $50 in 2025 dollars}}.</nowiki>
|text         =  
|tooltip       =  
<nowiki>}}</ref>
</nowiki>
</div>
</div>
Looks like:
The cost was {{Tooltip |text = $4|tooltip = $50 in 2025 dollars}}.

Latest revision as of 18:09, 18 June 2025

Use

Use this template for extra info such as currency conversion and inflation context.

text - The visible text

tooltip - The text in the tooltip

Copyable Base Code

{{Tooltip |text = |tooltip = }}

Example

{{{text}}}{{{tooltip}}}

So the following code:

The cost was {{Tooltip |text = $4|tooltip = $50 in 2025 dollars}}.

Looks like:

The cost was $4$50 in 2025 dollars.