Difference between revisions of "Template:Tip"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

(Created page with "<span class="tip-text" style="border-bottom: 1px dotted gray; cursor: help;" title="{{{tiptext|{{{2|{{{1|Tip.}}}}}}}}}">{{{text|{{{1|''Text.''}}}}}}</span><noinclude> == Usage...")
 
 
Line 1: Line 1:
<span class="tip-text" style="border-bottom: 1px dotted gray; cursor: help;" title="{{{tiptext|{{{2|{{{1|Tip.}}}}}}}}}">{{{text|{{{1|''Text.''}}}}}}</span><noinclude>
+
<includeonly><span class="tip-text" style="border-bottom: 1px dotted gray; cursor: help;" title="{{{tiptext|{{{2|{{{1|Tip.}}}}}}}}}">{{{text|{{{1|''Text.''}}}}}}</span></includeonly><noinclude>
== Usage ==
+
{{Documentation}}
Adds a text which can have aditional information displayed when hovering it (note: it doesn't work on mobile devices).
+
<!-- Put categories/interwiki on the documentation page. -->
 
+
</noinclude>
<pre><nowiki>{{Tip|Wood|This is a block that can be mined with an axe.}}</nowiki></pre>
 
 
 
Results in:
 
 
 
{{Tip|Wood|This is a block that can be mined with an axe.}}
 

Latest revision as of 18:18, 7 July 2023

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

{{Tip}} allows text to have a tooltip that is shown when hovering the cursor over it (note: it doesn't work on touch devices).

Usage

To use this template, simply type {{Tip|Visible text|Tooltip text}}, where Visible text and Tooltip text are the visible text and the text displayed on hover respectively.

Example

A short example of its use is:

{{Tip|Wood|This is a block that can be mined with an axe.}}
which generates
Wood