<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://secrets.warcraftwatch.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AVersions2%2Fdoc</id>
	<title>Template:Versions2/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://secrets.warcraftwatch.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AVersions2%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://secrets.warcraftwatch.com/w/index.php?title=Template:Versions2/doc&amp;action=history"/>
	<updated>2026-05-07T01:04:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://secrets.warcraftwatch.com/w/index.php?title=Template:Versions2/doc&amp;diff=6643&amp;oldid=prev</id>
		<title>imported&gt;Kaydeethree: /* Template arguments */</title>
		<link rel="alternate" type="text/html" href="https://secrets.warcraftwatch.com/w/index.php?title=Template:Versions2/doc&amp;diff=6643&amp;oldid=prev"/>
		<updated>2025-03-27T05:17:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Template arguments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#data:itemtip&lt;br /&gt;
|name=Example item&lt;br /&gt;
|ilvl=200&lt;br /&gt;
|quality=Epic&lt;br /&gt;
|slot=Trinket&lt;br /&gt;
|itemid=12345&lt;br /&gt;
}}{{#data:#Weaksauce&lt;br /&gt;
|name=Example item&lt;br /&gt;
|tag=Weaksauce&lt;br /&gt;
|ilvl=1&lt;br /&gt;
|quality=Poor&lt;br /&gt;
|slot=Trinket&lt;br /&gt;
|itemid=12346&lt;br /&gt;
}}{{#data:#Awesomesauce&lt;br /&gt;
|name=Example item&lt;br /&gt;
|tag=Awesomesauce&lt;br /&gt;
|ilvl=400&lt;br /&gt;
|quality=Legendary&lt;br /&gt;
|slot=Trinket&lt;br /&gt;
|itemid=12347&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Versions2&amp;#039;&amp;#039;&amp;#039; enables some background magic (via the [[Help:UsingData|UsingData extension]]) to show and switch between alternate versions of items or spells (Raid Finder versus Normal versus Heroic, or ranks of spells) in a way that falls back sanely for readers without javascript enabled.&lt;br /&gt;
&lt;br /&gt;
Editors are advised against using this template directly:&lt;br /&gt;
* For common raid items, use {{t|Versions/Item}}, which automatically includes Heroic, Raid Finder, Flexible, Thunderforged, Elite, Warforged, and other similar versions as appropriate.&lt;br /&gt;
* For items with Alliance/Horde versions, use {{t|Versions/AH}}&lt;br /&gt;
&lt;br /&gt;
==Template arguments==&lt;br /&gt;
{|class=&amp;quot;darktable zebra&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=2 class=title | Required&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;basename= || The default version displayed. Defaults to &amp;quot;Base&amp;quot;. Typically &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;basename=Normal&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;basepos= || The index of the default location. Defaults to 0. Typically &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;basepos=1&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;tpl= || The template used to display the tooltip. Typically &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;tpl=itemtip&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=2 class=title | Unnamed parameters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;1= (to &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;20=) || Alternate versions of the first fully-defined option&lt;br /&gt;
|-&lt;br /&gt;
| colspan=2 class=title | External links&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;elinks-tpl= || Use this template for external links. Passed to {{t|elinks-versions}}. Typically &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;elinks-tpl=item&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;elinks-arg= || Use this argument in the external link. Typically &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;elinks-arg=itemid&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;elinks-bonus= || For items with the same itemid but different bonuses. Typically &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;elinks-bonus=bonusid&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
For a fully-fledged, live example, see [[:Regail&amp;#039;s Crackling Dagger]]. A simplified example is described and implemented here. &lt;br /&gt;
&lt;br /&gt;
There are three versions of an item: Blandsauce, Awesomesauce, and Weaksauce. Define the normal (&amp;quot;blandsauce&amp;quot;) version first, followed by the others:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;mediawiki&amp;quot;&amp;gt;{{#data:itemtip&lt;br /&gt;
|name=Example item&lt;br /&gt;
|ilvl=200&lt;br /&gt;
|quality=Epic&lt;br /&gt;
|slot=Trinket&lt;br /&gt;
|itemid=12345&lt;br /&gt;
}}{{#data:#Weaksauce&lt;br /&gt;
|name=Example item&lt;br /&gt;
|tag=Weaksauce&lt;br /&gt;
|ilvl=1&lt;br /&gt;
|quality=Poor&lt;br /&gt;
|slot=Trinket&lt;br /&gt;
|itemid=12346&lt;br /&gt;
}}{{#data:#Awesomesauce&lt;br /&gt;
|name=Example item&lt;br /&gt;
|tag=Awesomesauce&lt;br /&gt;
|ilvl=400&lt;br /&gt;
|quality=Legendary&lt;br /&gt;
|slot=Trinket&lt;br /&gt;
|itemid=12347&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that subsequent calls to &amp;lt;nowiki&amp;gt;{{#data:&amp;lt;/nowiki&amp;gt; &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; include the display template ({{t|itemtip}} in this case). This way they are not displayed at the top of the page, but they are defined. They do, however, define a data fragment (with the name of the fragment specified after the second #). Any additional content such as source, description, screenshots, etc. should follow the data definitions. Near the end of the page, but after the &amp;quot;Patches changes&amp;quot; section and before the &amp;quot;External links&amp;quot; section (if not using the built-in generated external links), add a second-level &amp;quot;Other versions&amp;quot; section, followed by a call to this template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;mediawiki&amp;quot;&amp;gt;==Other versions==&lt;br /&gt;
{{Versions2|Weaksauce|Awesomesauce|basename=Blandsauce|basepos=1|tpl=itemtip}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, add any closing content, such as notes about patch changes, external links to other sites, and any categorization required.&lt;br /&gt;
&lt;br /&gt;
==Explanation of parameters==&lt;br /&gt;
Versions2 takes up to eleven non-named parameters, which, including the base version of the item/spell, can display up to twelve different versions of a tooltip on the page. The parameters must be listed in the order in which they are to be displayed, and must match a data fragment provided by the page. Empty parameters are ignored, and may appear before non-empty parameters, so &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{versions2|||Heroic||}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{versions2|Heroic}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; are equivalent.&lt;br /&gt;
&lt;br /&gt;
The base version of an item can have its name redefined (if &amp;quot;Base&amp;quot; is inappropriate), and its position among the other versions can be changed. Traditionally, multiple versions of an item are ordered by item level in ascending order, so the &amp;quot;Normal&amp;quot; version of an item would be listed after the &amp;quot;Raid Finder&amp;quot; version. This is accomplished with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|basename=Normal|basepos=1&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. |basename= redefines the name from &amp;quot;Base&amp;quot; to &amp;quot;Normal&amp;quot;, and assigns it the 1st position in a 0-based list.&lt;br /&gt;
&lt;br /&gt;
Finally, a display template must be specified. Most uses of Versions2 are for items, so use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|tpl=itemtip&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Version2 also enables a fallback mode, displaying the alternate versions of the tooltip as third-level (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;===Weaksauce===&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) sections near the end of the page for readers with javascript disabled. This is normally hidden by sitewide javascript and instead displayed/selected via the tabs added to the top of the page. To manually suppress this alternate-version hiding javascript for testing purposes, add &amp;quot;#!noversions&amp;quot; to the URL and open it in a new tab. (e.g. {{fullurl:Template:Versions2/doc}}#!noversions)&lt;br /&gt;
&lt;br /&gt;
===External links===&lt;br /&gt;
Versions2 also can generate external links, including the bonus ids of items if necessary. For items, include the parameters &amp;lt;code&amp;gt;|elinks-tpl=item|elinks-arg=itemid|elinks-bonus=bonusid&amp;lt;/code&amp;gt; in the template call. {{t|Versions/Item}} already does this.&lt;br /&gt;
&lt;br /&gt;
==Other versions==&lt;br /&gt;
{{Versions2|Weaksauce|Awesomesauce|basename=Blandsauce|basepos=1|tpl=itemtip}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Versions templates]]&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Template documentation]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Kaydeethree</name></author>
	</entry>
</feed>