Template talk:Settip

From Lotro-Wiki.com
Jump to navigation Jump to search

Documentation

Tooltip-style extension for set details, supports being embedded into {{Item Tooltip}} itself (tooltip passes nobox=true to page, page passes nobox=true to settip, settip refrains from generating div and ul tags, appending itself to existing tooltip). This is useful for including it conditionally - for example, only on the item detail page.

Required Prefix

All set articles are required to start the settip code with the following fragment exactly as it appears here:

{{settip
|mode={{{mode|}}}
|arg={{{arg|}}}

This fragment manages transclusion of set data, making set entries in tooltips possible.

Set data arguments

name=
Set name
piececount=
Number of pieces in this set
stats=
Sums of stats and attributes of this set (Armor, Sta, Int, Spi, Agi, Str), socket bonuses as [+ X], separate by <br />.
effects=
Sums of all effects (increased ratings, mana per 5, etc), separate by <br />.
sockets=
List of sockets on all items, separate by <br />.
req=
Requirement text to receive set bonuses, omit Requires.
pieces=
List of all set pieces using {{loot}}, separate by <br />
bonus=
List of all set bonuses (format: (#) Set: bonus text), separate by <br />


Formatting/ arguments

disambigpage=
Name of the page containing the tooltip, if the not Set Name itself (used to allow default-page formatting on disambiguated pages).
width=
Width of the tooltip, defaults to 18em.
float=
Where to float the tooltip, defaults to right on own page, left elsewhere.

Copyable boilerplate

<onlyinclude>{{Settip/Dev
|mode={{{mode|}}}
|arg={{{arg|}}}
|name=Redemption Armor
|piececount=9
|stats=6475 [[Armor]]<br />+207 Stamina<br />+208 Intellect
|effects=Equip: Restores 58 mana per 5 sec.<br />
Equip: Increases healing done by spells and effects by up to 388 and damage done by spells and effects by up to 133.<br />
Equip: Increases your spell critical strike rating by 70.
|pieces={{loot|Epic|Redemption Boots}}<br />{{loot|Epic|Redemption Girdle}}<br />{{loot|Epic|Redemption Handguards}}<br />{{loot|Epic|Redemption Headpiece}}<br />{{loot|Epic|Redemption Legguards}}<br />{{loot|Epic|Redemption Spaulders}}<br />{{loot|Epic|Redemption Tunic}}<br />{{loot|Epic|Redemption Wristguards}}<br />{{loot|Epic|Ring of Redemption}}
|bonus=(2) Set: {{spelllink|28775|Set}}<br />(4) Set: {{spelllink|28774|Set}}<br />(6) Set: {{spelllink|28789|Set}}<br />(8) Set: {{spelllink|28787|Set}}
}}</onlyinclude>

Examples

  • Blood Tiger Harness
  • Requires Leatherworking (300)
  • Blood Tiger Shoulders
    Blood Tiger Breastplate
  • (2) Set: Increases your critical strike rating by 14.
    (2) Set: Increases your spell critical strike rating by 14.

Note

Don't add any "| disambigpage" field to this template on the set pages, as it messes it up when it's transcluded on any other page. Uloria 17:56, 17 March 2009 (UTC)

Problem with that: if I remove "| disambigpage" from the Item: page then the tooltip doesn't function properly on the page, even though removing that does cause the lootbox to link the items to the correct pages. How can we fix this???? Rogue 19:44, 5 May 2009 (UTC)

Remove # of pieces specification

I removed the "(x pieces)" text from the template since this does not actually appear on the in-game tooltips, and the number of pieces is in fact readily apparent just by viewing the list, and it is also confusing since this template also now applies to trait sets rather than just item sets. --Gaerlin 14:39, 24 May 2009 (UTC)

Changes needed...

Some notes for the next revision (see example):

  • Item names are no longer styled (were the ever?) by quality inside the set section of the tooltip; they're khaki if equipped or grey if not. This means we need to take out all the {{loot|<quality>|...}} calls across the wiki.
  • Also, The bonus2, bonus4, etc. text is indented two spaces. In the past this was dealt with by manually adding &nbsp;&nbsp;, but there's no reason for that extra work. This text is also now styled bright green (like class="attrib") as is the text for "2 equipped:" and siblings.
  • Lastly, a ton of functionality seems to be here that's not relevant to LotRO - holdovers from the template's life on WoWwiki, I guess. Sethladan 05:03, 8 August 2014 (UTC)
Edit for escaping &nbsp; and correction of my silly khaki/grey confusion. Sethladan 13:00, 26 September 2014 (UTC)