Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
 
(welcoming new contributor)
 
Line 1: Line 1:
  +
{| class="navbox" style="font-size:100%; margin-bottom:0.5em;" cellpadding="5"
{{Stub/Other}}
 
On [[WoWWiki]], there are several important [[template]]s that work together in a unique way to show tooltips when you mouseover a link (assuming you have [[wikipedia:JavaScript|JavaScript]] support in your browser).
 
 
Because of these special relationships, this help page will try to go further in-depth on how to use these templates so they work well together.
 
 
== {{t|Item}}, {{t|Loot}} and {{t|Tooltip}} ==
 
;If you want an item link to show a tooltip, you need to use the ''{{t|item}}'' or ''{{t|loot}}'' template. NOTE: Don't use ''{{t|item}}'' tooltip inside {{t|tooltip}} or {{t|settip}}.
 
 
To create a {{t|item}} link for an item, you can use the following format:
 
* The only parameter required is the name of the item.
 
* Include an <tt>|icon=</tt> argument to have an icon appear.
 
 
To create a {{t|loot}} link for an item, you can use the following format:
 
* The template name indicates the item is loot.
 
* The first argument is the quality of a given item.
 
* The second argument is the name of a given item's article.
 
* The third argument can be used to hide disambiguations, or different page names.
 
 
<blockquote>
 
{| width="100%"
 
 
|-
 
|-
  +
! Welcome to WoWWiki!
|style="border-bottom:1px solid white;"| '''{{t|item}} Example'''
 
|style="border-bottom:1px solid white;"| '''Result'''
+
|- style="text-align:left;"
 
|
|style="border-bottom:1px solid white;"| '''{{t|loot}} Example'''
 
  +
[[Image:Wiki.png|70px|right|Wiki logo]]
|style="border-bottom:1px solid white;"| '''Result'''
 
  +
Hello, '''FloopersteinMcGoof''', and welcome to '''[[WoWWiki:About|WoWWiki]]''', the Warcraft wiki! Thanks for your edit to the "Zandali" page, and we heartily [[WoWWiki:Be bold in updating pages|encourage you to continue contributing]]!
|-
 
||{{T|item|Frostmourne}}||{{item|Frostmourne}}
 
||{{T|loot|Artifact|Frostmourne}}||{{loot|Artifact|Frostmourne}}
 
|-
 
||{{T|item|Warp Slicer}}||{{item|Warp Slicer}}
 
||{{T|loot|Legendary|Warp Slicer}}||{{loot|legendary|Warp Slicer}}
 
|-
 
||{{T|item|Azuresong Mageblade}}||{{item|Azuresong Mageblade}}
 
||{{T|loot|Epic|Azuresong Mageblade}}||{{loot|epic|Azuresong Mageblade}}
 
|-
 
||{{T|item|Cruel Barb}}||{{item|Cruel Barb}}
 
||{{T|loot|Rare|Cruel Barb}}||{{loot|rare|Cruel Barb}}
 
|-
 
||{{T|item|Archeus|icon<nowiki>=</nowiki>}}||{{item|Archeus|icon=}}
 
||{{T|loot|Uncommon|Archeus}}||{{loot|uncommon|Archeus}}
 
|-
 
||{{T|item|Linen Cloth|icon<nowiki>=</nowiki>}}||{{item|Linen Cloth|icon=}}
 
||{{T|loot|Common|Linen Cloth}}||{{loot|Common|Linen Cloth}}
 
|-
 
||{{T|item|Poor-quality item}}||{{item|Cedar Walking Stick}}
 
||{{T|loot|Poor|Poor-quality item}}||{{loot|Poor|Cedar Walking Stick}}
 
|}
 
</blockquote>
 
   
  +
Some links you may find useful:
If the item is on a disambiguation page, you can pass the page name as the second argument and the item name as the third argument:
 
  +
* The [[:Category:Things to do|'''things to do''' category]] has lots of things to keep you busy!
<blockquote>
 
  +
* Check out the '''[[Portal:Community|Community portal]]''' for some useful editors' links.
{| width="80%"
 
  +
* Note that WoWWiki isn't an absolute democracy, but many decisions are [[WoWWiki:Voting policy|voted on]]. See a [[:Category:Votes in progress|list of '''votes in progress''']].
|-
 
  +
* Many WoWWikians frequent our [[WoWWiki:IRC|'''IRC Channel''']], on [irc://chat.freenode.net/wowwiki chat.freenode.net, #wowwiki].
|style="border-bottom:1px solid white;"| '''{{t|item}} Example'''
 
  +
* '''Finally, please check out the site [[WoWWiki:Guidelines|guidelines]] and [[WoWWiki:Policies|policies]]!'''
|style="border-bottom:1px solid white;"| '''Result'''
 
|style="border-bottom:1px solid white;"| '''{{t|loot}} Example'''
 
|style="border-bottom:1px solid white;"| '''Result'''
 
|-
 
||{{T|item|Corruption (sword)|Corruption}}||{{item|Corruption (sword)|Corruption}}
 
||{{T|loot|Rare|Corruption (sword)|Corruption}}||{{loot|Rare|Corruption (sword)|Corruption}}
 
|}
 
</blockquote>
 
   
  +
We hope you enjoy editing here and being a [[WoWWiki:WoWWikians|WoWWikian]]!<br/>Please sign your name on talk pages using four tildes (<code><nowiki>~~~~</nowiki></code>) as this will automatically produce your name and the date. If you have any questions, just ask on the relevant talk page, or visit the [[Forum:Index|'''site forums''']].
;If you want an item article to show a tooltip (and you know you do) when a ''loot'' link points to it, make sure to add a ''{{t|tooltip}}'' template with the following minimum parameters:
 
 
To create a {{t|tooltip}} link for an item, you can use the following format:
 
* The template name indicates the item has a tooltip.
 
* The &#124; '''mode'''= argument is a parameter value passed through from other templates.
 
* The &#124; '''args'''= argument is a parameter value passed through from other templates.
 
* The &#124; '''width'''= argument is the tooltip width. Typically 18em.
 
* The &#124; '''width'''= argument is the tooltip width. Typically 18em.
 
* The &#124; ''name'''= argument is the name of the item in the game.
 
* The &#124; '''quality'''= argument is the item quality, passed to {{t|quality}} to generate formatted item name.
 
* The &#124; '''bind'''= argument is the binding type: BoE, BoU or BoP.
 
 
So at minimum the tooltip should look like this:
 
<blockquote>
 
&lt;onlyinclude&gt;&#123;&#123;'''tooltip'''<br>
 
&nbsp;&nbsp;&#124; '''mode'''=&#123;&#123;mode&#124;&#125;&#125;<br>
 
&nbsp;&nbsp;&#124; '''args'''=&#123;&#123;args&#124;&#125;&#125;<br>
 
&nbsp;&nbsp;&#124; '''width'''=18em<br>
 
&nbsp;&nbsp;&#124; '''name'''=Cruel Barb<br>
 
&nbsp;&nbsp;&#124; '''quality'''=Rare<br>
 
&nbsp;&nbsp;&#124; '''bind'''=BoP<br>
 
&#125;&#125;&lt;/onlyinclude&gt;
 
</blockquote>
 
 
See [[Template talk:Tooltip]] for complete details on all the various parameters to fill out a complete tooltip.
 
 
;Things not to do
 
* ''Don't make the width wider than 18em. The maximum supported width for hover tooltips is TBD.''
 
* ''Don't put extra linebreaks in your parameter contents:''
 
** Bad:
 
**:&#124; attrib=+4 Strength&lt;br&gt;
 
**:+3 Agility&lt;br&gt;
 
**:+5 Stamina
 
** Good:
 
**:&#124; attrib=+4 Strength&lt;br&gt;+3 Agility&lt;br&gt;+5 Stamina
 
 
;If an item article does not have a tooltip or the tooltip is improperly formatted or missing required parameters, the tooltip will show an error:
 
:'''Example''' (move your mouse pointer over the link)
 
::{{loot|Common|Imaginary item}}
 
 
;You can use the following item to test the contents of various {{t|tooltip}} parameters:
 
::{{loot|common|Help:Test loot|Test loot}}
 
 
== {{t|Mob}} and {{t|Mobbox}} ==
 
To show the image and basic info for an mob, use ''{{t|Mob}}'' to link to the mob page. This template just passes info to the {{t|NPC}} template below (<tt>faction=</tt> is always "Combat").
 
 
To create an {{t|Mob}} link for an mob, you can use the following format:
 
* The template name indicates the target article is about a NPC.
 
* The first argument is the name of the NPC's article.
 
* The second argument is the title of the NPC.
 
<blockquote>
 
{|
 
|-
 
|| '''Example'''
 
|| '''Result'''
 
|-
 
|<nowiki>{{Mob|Alexander Calder|Warlock Trainer}}</nowiki>||{{Mob|Alexander Calder|Warlock Trainer}}
 
|-
 
|<nowiki>{{Mob|Lord Victor Nefarius|Lord of Blackrock|level=??+}}</nowiki>||{{Mob|Lord Victor Nefarius|Lord of Blackrock|level=??+}}
 
 
|}
 
|}
</blockquote>
 
 
''Mobbox info to be added...''
 
 
== {{t|NPC}} and {{t|Npcbox}} ==
 
To show the image and basic info for an NPC or mob, use ''{{t|NPC}}'' to link to the NPC page.
 
 
To create an {{t|NPC}} link for an NPC, you can use the following format:
 
* The template name indicates the target article is about a NPC.
 
* The first argument is the faction the NPC belongs to (Alliance, Horde, or Neutral).
 
* The second argument is the name of the NPC's article.
 
* The third argument is the title of the NPC.
 
<blockquote>
 
{|
 
|-
 
|| '''Example'''
 
|| '''Result'''
 
|-
 
|<nowiki>{{NPC|Alliance|Alexander Calder|Warlock Trainer}}</nowiki>||{{NPC|Alliance|Alexander Calder|Warlock Trainer}}
 
|-
 
|<nowiki>{{NPC||Andormu|Keepers of Time|level=70+}}</nowiki>||{{NPC||Andormu|Keepers of Time|level=70+}}
 
|}
 
</blockquote>
 
 
''Npcbox info to be added...''
 
 
== {{t|Quest}}, {{t|Questlong}}, or {{t|Questclass}}; and {{t|Questbox}} ==
 
''Info to be added...''
 
 
== {{t|Coords}} ==
 
''Info to be added...''
 
   
  +
Feel free to create a new topic on the [[Forum:Index|WoWWiki forums]] if you need help with anything!
[[Category:Help]]
 
[[Category:WoWWiki]]
 

Revision as of 19:53, 7 October 2010

Feel free to create a new topic on the WoWWiki forums if you need help with anything!