Jump to content
EQL Wiki is currently in BETA - content may change rapidly!

Template:Itempage: Difference between revisions

From EverQuest Legends Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{mode|page}}}|tooltip|
<includeonly>{{#ifeq:{{{mode|{{#ifeq:{{FULLPAGENAME}}|{{{itemname}}}|page|tooltip}}}}}|tooltip|
<div class="hbdiv">[[{{{itemname}}}]]<span class="hb">{{Itembox
<div class="hbdiv">[[{{{itemname}}}]]<span class="hb">{{Itembox
|itemname    = {{{itemname}}}
|itemname    = {{{itemname}}}
Line 48: Line 48:
This is the template page for items.
This is the template page for items.


== Usage ==
Item pages should call this template once inside <code><nowiki><onlyinclude></nowiki></code>. The template automatically renders a full item page when viewed directly, and only an item hover link when transcluded into loot lists.
 
Item pages should call this template once inside <code><nowiki><onlyinclude></nowiki></code>.
 
Use this mode switch immediately after <code><nowiki>{{Itempage</nowiki></code>:
 
<pre>
<includeonly>|mode=tooltip</includeonly><noinclude>|mode=page</noinclude>
</pre>
 
That makes normal item pages render as full item pages, while loot table transclusions such as <code><nowiki>{{:Golden Efreeti Boots}}</nowiki></code> render only the item name plus mouseover tooltip.
 
== Optional parameters ==
 
* <code>focus_effect</code> — page name of a focus effect spell, for example <code>Enhancement Haste II</code>.


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 19:14, 3 June 2026

This is the template page for items.

Item pages should call this template once inside <onlyinclude>. The template automatically renders a full item page when viewed directly, and only an item hover link when transcluded into loot lists.