<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://lotro-wiki.fr/index.php?action=history&amp;feed=atom&amp;title=Mod%C3%A8le%3ATooltip%2Fdoc</id>
	<title>Modèle:Tooltip/doc - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://lotro-wiki.fr/index.php?action=history&amp;feed=atom&amp;title=Mod%C3%A8le%3ATooltip%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://lotro-wiki.fr/index.php?title=Mod%C3%A8le:Tooltip/doc&amp;action=history"/>
	<updated>2026-07-28T07:04:54Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://lotro-wiki.fr/index.php?title=Mod%C3%A8le:Tooltip/doc&amp;diff=217&amp;oldid=prev</id>
		<title>Admin : Page créée avec « &lt;onlyinclude&gt;This template provides most of the basic capabilities for Lotro-Wiki&#039;s tooltip (&quot;pop-up&quot;) displays. It is not intended to be used directly, but rather constit... »</title>
		<link rel="alternate" type="text/html" href="https://lotro-wiki.fr/index.php?title=Mod%C3%A8le:Tooltip/doc&amp;diff=217&amp;oldid=prev"/>
		<updated>2013-05-20T20:16:37Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;onlyinclude&amp;gt;This template provides most of the basic capabilities for Lotro-Wiki&amp;#039;s tooltip (&amp;quot;pop-up&amp;quot;) displays. It is not intended to be used directly, but rather constit... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;onlyinclude&amp;gt;This template provides most of the basic capabilities for Lotro-Wiki&amp;#039;s tooltip (&amp;quot;pop-up&amp;quot;) displays. It is not intended to be used directly, but rather constitutes a &amp;quot;back-end&amp;quot; for higher-level templates such as [[Template:Item Tooltip]] and [[Template:Effect]]. As more of our templates become modernized, we&amp;#039;ll be able to provide the pop-up functionality for additional pages, such as quests, skills, and the like.&lt;br /&gt;
&lt;br /&gt;
== Modes ==&lt;br /&gt;
There are currently four modes available for tooltip-enabled pages  (currently all pages using [[Template:Item Tooltip]], [[Template:Recipe]], and [[Template:Effect]]).&lt;br /&gt;
&lt;br /&gt;
; mode=link&lt;br /&gt;
: This displays simply as a pop-up enabled link. Hovering the mouse over the link will display any tooltip content on the target page. &lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{:The Enemy&amp;#039;s Doom|mode=link}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields {{:The Enemy&amp;#039;s Doom|mode=link}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; This is unnecessary for pages in the Item: namespace, as links to items are auto-enabled for pop-ups.&lt;br /&gt;
&lt;br /&gt;
; mode=icon&lt;br /&gt;
: This mode displays the icon defined at the target page, with an optional &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt; overlay.&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{:Item:Minstrel&amp;#039;s Friend|mode=icon|amount=3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields {{:Item:Minstrel&amp;#039;s Friend|mode=icon|amount=3}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; [[File:The Enemy&amp;#039;s Doom-icon.png|link=&amp;lt;span class=&amp;quot;ajaxttlink&amp;quot;&amp;gt;The Enemy&amp;#039;s Doom&amp;lt;/span&amp;gt;]]&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt; will only work for pages that properly pass amount parameters down to this template (i.e. only items at this point). Also, because icons created this way act as a link to the target page, item icons will generate an on-hover pop-up while effect icons will not (see note above).&lt;br /&gt;
&lt;br /&gt;
; mode=imlink&lt;br /&gt;
: This is a combination of the previous two modes and displays the familiar icon-and-link format widely used for item and effect links on Lotro-Wiki. For item pages with a defined &amp;lt;code&amp;gt;quality&amp;lt;/code&amp;gt;, the link will be displayed in that item&amp;#039;s quality. &amp;#039;&amp;#039;Included in or mimicked by [[Template:Reward]] and [[Template:Barter]]&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example 1:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{:The Enemy&amp;#039;s Doom|mode=imlink}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields {{:The Enemy&amp;#039;s Doom|mode=imlink}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example 2a:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{:Item:Token of Valour|mode=imlink|amount=3}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields {{:Item:Token of Valour|mode=imlink|amount=3}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example 2b:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{:Item:Token of Valour|mode=imlink_plain}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; yields {{:Item:Token of Valour|mode=imlink_plain}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; Items can be displayed without quality coloring (as in example 2b) by using the pseudo-mode &amp;#039;&amp;#039;imlink_plain&amp;#039;&amp;#039; defined in [[Template:Item Tooltip]]. This is the default functioning for [[Template:Reward]] as use of colors is generally discouraged outside of specific template cases. Display of amount overlays is bugged when using this method, though, so either a) use colors and overlay together or b, preferred) don&amp;#039;t use overlays at all.&lt;br /&gt;
&lt;br /&gt;
; mode=tableimlink&lt;br /&gt;
: This is the same as the previous mode, but wraps each icon-link pair in a set of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;tr&amp;gt;...&amp;lt;/tr&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags with the icon and the name in separate table elements. This was likely added for a specific template ([[Template:Deed]] or [[Template:Vendorlist]]) and may no longer be useful.&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;table style=&amp;quot;background:grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Column A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; Column B&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
{{:Item:Fruit Roll|mode=tableimlink}}&lt;br /&gt;
{{:Item:Lover&amp;#039;s Helm|mode=tableimlink}}&lt;br /&gt;
&amp;lt;/table&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;table style=&amp;quot;background:grey;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Column A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; Column B&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
{{:Item:Fruit Roll|mode=tableimlink}}&lt;br /&gt;
{{:Item:Lover&amp;#039;s Helm|mode=tableimlink}}&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using in Default Mode ==&lt;br /&gt;
The four modes listed above should only be used when directly calling (transcluding) an item or effect that is tooltip-enabled. Calling this template directly with any of these modes serves no purpose, as [[Template:Tooltip]] has no icon, stats, attributes, flavour text, etc. to display. All that information must be properly passed down by the item/effect page and the ensuing template chain. The syntax below constitutes the first step in that chain, and provides options for other &amp;#039;&amp;#039;templates&amp;#039;&amp;#039; to format the black tooltip box. Note the emphasis on &amp;quot;template,&amp;quot; as this only creates a container for other templates to fill with information and is not intended to be used directly.&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Tooltip&lt;br /&gt;
| mode           = &amp;lt;!-- Sets the mode in which to display passed information,&lt;br /&gt;
                        use {{{mode|}}} when calling in an intermediate template --&amp;gt;&lt;br /&gt;
| icon           = &amp;lt;!-- The filename (omit &amp;quot;.png&amp;quot;) of the icon to be displayed at the top left&lt;br /&gt;
                        Icons display at 32px when name matches disambigpage, 24px otherwise&lt;br /&gt;
| size           = &amp;lt;!-- Icon size, only used for mode=imlink.&lt;br /&gt;
                        For valid values, see [[Template:Icon]]. --&amp;gt;&lt;br /&gt;
| name           = &amp;lt;!-- The name of the item/effect/etc, displayed at&lt;br /&gt;
                        the top of the box just to the right of the icon --&amp;gt;&lt;br /&gt;
| disambigpage   = &amp;lt;!-- The name on which the last page in the chain will live,&lt;br /&gt;
                        this should generally be set to {{{disambigpage|}}} --&amp;gt;&lt;br /&gt;
| amount         = &amp;lt;!-- Used for stack overlay displays, this should generally&lt;br /&gt;
                        be set to {{{amount|}}} when dealing with items and omitted otherwise --&amp;gt;&lt;br /&gt;
| float          = &amp;lt;!-- Style the box to float left or right, default is&lt;br /&gt;
                        right when name matches disambigpage and left otherwise --&amp;gt;&lt;br /&gt;
| width          = &amp;lt;!-- Style the width of the box, default is 18em --&amp;gt;&lt;br /&gt;
| padtop         = &amp;lt;!-- Add additional padding between the top of the box&lt;br /&gt;
                        and the first line, defaults to 1em --&amp;gt;&lt;br /&gt;
| pad            = &amp;lt;!-- Add additional padding between the left edge of the box&lt;br /&gt;
                        and the enclosed text, default is 1em --.&lt;br /&gt;
| font-size      = &amp;lt;!-- Font size for the displayed name --&amp;gt;&lt;br /&gt;
| trailing-text  = &amp;lt;!-- Optional text, only used for mode=imlink.&lt;br /&gt;
                        The text is displayed as-is directly after &amp;quot;icon&amp;quot; and &amp;quot;name&amp;quot;; two whites-spaces are padded after &amp;quot;name&amp;quot;. --&amp;gt;&lt;br /&gt;
| noclear        = &amp;lt;!-- ??? possibly has no effect --&amp;gt;&lt;br /&gt;
| alltherest     = &amp;lt;!-- The remainder of the information included by next&lt;br /&gt;
                        template in the chain, formatted as needed --&amp;gt;&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;...additional documentation to come...&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Utility Templates]]&amp;lt;/includeonly&amp;gt;&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Template Documentation]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>