Template:Tooltip/doc: Difference between revisions
Jump to navigation
Jump to search
m →Example Tag: Manual revert |
Updated example |
||
Line 15: | Line 15: | ||
}} | }} | ||
So the following code: | |||
<div class="copycode"> | |||
<nowiki>The cost was {{Tooltip |text = $4|tooltip = $50 in 2025 dollars}}.</nowiki> | |||
</div> | |||
Looks like: | |||
The cost was {{Tooltip |text = $4|tooltip = $50 in 2025 dollars}}. | The cost was {{Tooltip |text = $4|tooltip = $50 in 2025 dollars}}. | ||
== Copyable Code == | == Copyable Base Code == | ||
<div class="copycode"> | <div class="copycode"> | ||
<nowiki>{{</nowiki>Tooltip | <nowiki>{{</nowiki>Tooltip |
Revision as of 21:16, 14 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 tool tip
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.
Copyable Base Code
{{Tooltip |text = |tooltip = }}