Difference between revisions of "Template:Tooltip"

From EVE University Wiki
Jump to: navigation, search
(new generic tooltip template)
 
m (Reverted edits by Evon R'al (talk) to last revision by Arin Mara)
Tag: Rollback
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span class='uwiki-tooltip'>[[Apply|this is a hoverable text]]
+
<includeonly><span class='uniwiki-tooltip' style='border-bottom:1px dotted;'>{{{1|}}}<span class='uniwiki-tooltip-frame' style='position:absolute;'>{{{2|}}}</span></span></includeonly><noinclude>
<span class='frame'>
+
{{documentation}}
<span class='top'></span>
+
</noinclude>
<span class='content'>
 
Of the meticulous craftsmanship the Caldari are renowned for, the Drake was born. It was found beneath such a ship to rely on anything other than the time-honored combat tradition of missile fire, while the inclusion of sufficient CPU capabilities for decent electronic warfare goes without saying.
 
</span>
 
<span class='bottom'></span>
 
</span>
 
</span>
 

Latest revision as of 10:48, 30 April 2022

Template documentation (for the above template, sometimes hidden or invisible)
Description
Generic tooltip template.
Depedendencies
Uses
MediaWiki:Common.js
Class .uniwiki-tooltip in MediaWiki:Common.css
Class .uniwiki-tooltip-frame in MediaWiki:Common.css
Used by
{{ShipBoxTooltip}}
Syntax
{{Tooltip|<displayed text>|<tool-tip content>}}
displayed text
The visual text which, when hovered over, triggers the tool-tip. Can be a link.
tool-tip content
The contents of the tool-tip
Sample
{{tooltip|sample display|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
gives...
sample displayLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


This is a sample {{Tooltip|display|Sample tool-tip content}} which is inline.
gives...
This is a sample displaySample tooltip content. which is inline.


This is a link to the {{Tooltip|[[Venture]]|The Ventures is an {{Co|yellow|ORE}} mining frigate}}, which also has a tool-tip with some formatting.
gives...
This is a link to the VentureThe Ventures is an ORE mining frigate, which also has a tool-tip with some formatting.
Visit Template:Tooltip/doc to edit this text! (How does this work?) (Refresh this text - why?)