« Modèle:Tooltip » : différence entre les versions

De Lotro-wiki
Aller à la navigation Aller à la recherche
Page créée avec « <onlyinclude><includeonly><!-- No line break to fix alignment on some pages -->{{#switch:{{{mode|}}} |link=[[{{{disambigpage}}}|<span class="ajaxttlink">{{{name}}}</spa... »
 
m Remplacement de texte : « {{clr}} » par « {{Clr}} »
 
(2 versions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
<onlyinclude><includeonly><!-- No line break to fix alignment on some pages
<onlyinclude><includeonly>
-->{{#switch:{{{mode|}}}
{{#switch:{{{mode|}}}
  |link=[[{{{disambigpage}}}|<span class="ajaxttlink">{{{name}}}</span>]]
|link={{loot|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}}
  |icon={{#if:{{{icon|}}}
|imlink={{#if:{{{icon|}}}|[[Image:{{{icon}}}.png]]&nbsp;}}{{loot|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}}
      |{{Icon|{{{icon}}}|link={{{disambigpage|{{{name}}}}}}
|arg={{{{{{arg|name}}}|--}}}
      |{{#if:{{{amount|}}}|{{#ifexpr:{{{amount|1}}} > 1|{{{amount}}}}}}}}} }}
|#default=<div class="itemtooltip" style="font-size: {{#ifeq:{{FULLPAGENAME}}|{{{disambigpage|{{{name}}}}}}|1em; float: {{{float|right}}}|0.85em; float: {{{float|left}}}}}; width: {{{width|18em}}};"><!--
  |imlink={{#if:{{{icon|}}}
Icon -->{{#if:{{{icon|}}}|{{Icon|{{{icon}}}||{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage|{{{name}}}}}}|3|4}}|float=left|margin=1px}}}}&nbsp;<!--
      |{{Icon|{{{icon}}}|link={{{disambigpage|{{{name}}}}}}
        |{{#if:{{{amount|}}}|{{#ifexpr:{{{amount|1}}} > 1|{{{amount}}}}}}}|size={{{size|}}}}}
      }}&nbsp;[[{{{disambigpage}}}|<span class="ajaxttlink">{{{name}}}</span>]]&nbsp;{{{trailing-text|}}}
  |tableimlink=<tr><td>{{#if:{{{icon|}}}
      |{{Icon|{{{icon}}}|link={{{disambigpage|{{{name}}}}}}|{{#if:{{{amount|}}}
      |{{#ifexpr:{{{amount|1}}}>1|{{{amount}}}}}}}}}}}&nbsp;</td>
      <td>[[{{{disambigpage}}}|<span class="ajaxttlink">{{{name}}}</span>]]</td></tr>
  |#default=<div style="font-size: {{#ifeq:{{FULLPAGENAME}}
      |{{{disambigpage}}}|1em; float: {{{float|right}}}
      |0.85em; float: {{{float|left}}}
      }};"><div class="tooltip-content itemtooltip" style="width: {{{width|18em}}}; {{#if:{{{padtop|}}}|padding-top:{{{padtop|1em}}};|}} {{#if:{{{pad|}}}|padding-left:{{{pad|1em}}};|}}"><!--
Icon -->{{#if:{{{icon|}}}
      |{{Icon|{{{icon}}}||{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage}}}|3|4}}|float=left|margin=1px}}}}&nbsp;<!--


# SHOW EVERYWHERE #
# SHOW EVERYWHERE #
Items Name -->{{#if:{{{name|}}}
Items Name -->{{#if:{{{name|}}}|<span style="font-family:serif;font-stretch=narrower;font-variant: small-caps; font-size:1.5em; clear: all;">{{Quality|{{{quality|}}}|{{{disambigpage|{{{name}}}}}}|{{{name}}}|tooltip=1}}</span>}}{{Clr}}<ul><!--
      |<span style="font-family:serif;color:#C3B585;font-stretch=narrower;font-variant: small-caps; font-size:{{{font-size|1.5em}}}; {{#if:{{{noclear|}}}||clear: all;}}">{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage}}}|{{{name}}}|[[{{{disambigpage}}}|{{{name}}}]]}}</span>
 
       }}{{clr}}
First batch of item details --><!--
{{{alltherest|}}}</div></div>}}</includeonly></onlyinclude><!--
Item is Single Use -->{{#if:{{{single use|}}}|<li style="color: turquoise">Single Use Recipe }}<!--
--><noinclude>{{Tooltip/doc}}</noinclude>
Item is Unique --><!--{{#ifeq:{{{unique|1}}}|1|-->{{#if:{{{unique|}}}|<li class="grey" style="float: right; clear: all;">[[Unique]]}}<!--|<li class="grey" style="float: right; clear: all;">[[Unique]]{{#if:{{{unique|}}}|&nbsp;({{{unique}}})}}}}--><!--
Items Binding -->{{#switch:{{{bind}}}
|BoA | Acquire =<li class="grey">[[Lié à l'acquisition|Lié à l'acquisition]]
|BtA | Account =<li class="grey">[[Lié au compte|Lié au compte]]
|BoE | Equip =<li class="grey">[[Lié à l'équipement|Lié à l'équipement]]}}<!--
Item is Indestructible -->{{#if:{{{indestructible|}}}|<li class="khaki">Cannot Be Destroyed }}<!--
Item is Consumed on use -->{{#if:{{{consumed|}}}|<li class="grey">Détruit à l'utilisation }}<!--
Item is Cosmetic -->{{#if:{{{cosmetic|}}}|<li class="white">Cosmetic}}<!--
Item is dyed by default -->{{#if:{{{dye|}}}|<li class="white">[[Dye]]: {{{dye}}}}}<!--
Item is a Barter item -->{{#if:{{{barter|}}}|<li>Barter Item}}<!--
Items Type -->{{#if:{{{type|}}}|<li>[[:Category:Objet ({{{type}}})|{{{type}}}]]}}<!--
Items Slot -->{{#if:{{{slot|}}}|<li>[[:Category:{{{slot}}} Items|{{{slot}}}]]}}<!--
Item is Housing Decoration -->{{#if:{{{deco-slot|}}}|<li>Decoration Category: [[:Category:Decoration Category: {{{deco-slot}}}|{{{deco-slot}}}]]}}<!--
Item has recipe cooldown -->{{#if:{{{recipe-cooldown|}}}|<li style="color: teal">Recipe Cooldown: {{{recipe-cooldown}}} }}<!--
Legendary Item Scroll Modifier -->{{#if:{{{LImodifier|}}}|<li class="grey">{{{LImodifier}}}}}<!--
 
ITEM STATS --><!--
Items Armour -->{{#if:{{{armour|}}}|<div style="height:10px">&nbsp;</div><li class="khaki">{{{armour}}} [[Armour]]}}<!--
Items Damage -->{{#if:{{{dmg|}}}|<div style="height:10px">&nbsp;</div><li>{{{dmg}}} {{#if:{{{dmgtype|}}}|[[{{{dmgtype}}}]] }} Damage}}<!--
Items DPS -->{{#if:{{{dps|}}}|<li class="khaki">{{{dps}}} [[DPS]]}}<!--
Items Damage Bonus -->{{#if:{{{bonus|}}}|<li class="darkorchid">{{{bonus}}} {{#if:{{{bonustype|}}}|{{{bonustype}}}}} }}<!--
Items Attributes -->{{#if:{{{attrib|}}}|<li class="attrib" style="line-height: 1.25em">{{{attrib}}}}}<!--
--><!--
 
ON-USE --><!--
Items on Use Effect -->{{#if:{{{use|}}}|<div style="height:10px">&nbsp;</div><li class="darkgreen">Utilisation:<li class="attrib">{{{use}}} }}<!--
Items Effect Skilltype -->{{#if:{{{skilltype|}}}|<li class="darkgreen">{{{skilltype}}} [[Skill]] }}<!--
Items Effect Resistance -->{{#if:{{{resistance|}}}|<li class="darkgreen">[[Resistance]]: {{{resistance}}} }}<!--
Items Effect Radius -->{{#if:{{{radius|}}}|<li class="darkgreen">[[Radius]]: {{{radius}}} }}<!--
Items Effect Max Targets -->{{#if:{{{maxtargets|}}}|<li class="darkgreen">Max Targets: {{{maxtargets}}} }}<!--
Items Effect Duration -->{{#if:{{{duration|}}}|<li class="darkgreen">[[Durée]]: {{{duration}}}}}<!--
Items Effect Maximum Duration -->{{#if:{{{max_duration|}}}|<li class="darkgreen">[[Duration (Item)|Maximum Duration]]: {{{duration}}}}}<!--
Items Effect Range -->{{#if:{{{range|}}}|<li class="grey">{{{range}}} [[Range]]}}<!--
Items Effect Expiration -->{{#if:{{{expiration|}}}|<li class="red">Applied on expiration: <li class="attrib">{{{expiration}}}}}<!--
Items Effect Induction -->{{#if:{{{induction|}}}|<li class="grey">Induction: {{{induction}}}}}<!--
Items Effect Cooldown -->{{#if:{{{cooldown|}}}|<li class="darkgreen">[[Délai d'attente]]: {{{cooldown}}}}}<!--
 
ALL ITEMS --><div style="height:10px">&nbsp;</div><!--
Items Durability Class -->{{#if:{{{dur_class|}}}|<li style="float: right;">{{{dur_class}}}}}<!--
Items Durability -->{{#if:{{{durability|}}}|<li>[[Durabilité]] : {{{durability}}}/{{{durability}}}}}<!--
 
REQUIREMENTS --><!--
Barring Skill(s) -->{{#if:{{{barskill3|}}}|<li class="red">Barring Passive Skill: [[{{{barskill}}}]]: [[{{{barskill2}}}]] | {{#if:{{{barskill2|}}}|<li>Barring Skills: [[{{{barskill}}}]], [[{{{barskill2}}}]] | {{#if:{{{barskill|}}}|<li>Barring Skill: [[{{{barskill}}}]]}}}}}}<!--
Items Effect Cannot Use-->{{#if:{{{noeffect|}}}|<li class="white">Cannot use with Effect: {{{noeffect}}}}}<!--
Items characteristic (skill) Requirement old style -->{{#if:{{{characteristic|}}}|<li>Requires: [[{{{characteristic}}}]]}}<!--
Items skill Requirement new style -->{{#if:{{{skillreq|}}}|<li>Requires: [[{{{skillreq}}}]]}}<!--
Items Virtue Requirement -->{{#if:{{{virtue|}}}|<li>Requires: [[{{{virtue}}}]], Rank {{{virtuerank}}} }}<!--
Items Min Level Requirement -->{{#if:{{{level|}}}|<li>Niveau minimum : {{{level}}}}}<!--
Items Max Level Requirement -->{{#if:{{{maxlevel|}}}|<li>Niveau maximum : {{{maxlevel}}}}}<!--
Items Faction Requirement -->{{#if:{{{faction|}}}|<li>Requires: {{{standing}}} Standing with [[{{{faction}}}]] }}<!--
Items Usable in Monsterplay -->{{#if:{{{nomp|}}}|<li>Not useable in Monster Play }}<!--
Items Class(es) Requirements -->{{#if:{{{class3|}}}|<li>Classes: [[{{{class}}}]], [[{{{class2}}}]], [[{{{class3}}}]] | {{#if:{{{class2|}}}|<li>Classes: [[{{{class}}}]], [[{{{class2}}}]] | {{#if:{{{class|}}}|<li>Class: [[{{{class}}}]]}}}}}}<!--
Items Race Requirements -->{{#if:{{{race|}}}|<li>Race(s): [[{{{race}}}]]}}<!--
CPTs Horn rations -->{{#switch:{{{characteristic|}}}| Summoning Horn Use | Summoning Horn use | Summoning horn use | summoning horn use = <div style="height:10px">&nbsp;</div><li class="darkorchid">Summonee: 5 [[Item:Travelling Ration|Travelling Rations]]}}<!--
CPTs Horn rations -->{{#switch:{{{skillreq|}}}| Summoning Horn Use | Summoning Horn use | Summoning horn use | summoning horn use = <div style="height:10px">&nbsp;</div><li class="darkorchid">Summonee: 5 [[Item:Travelling Ration|Travelling Rations]]}}<!--
Items Quest Requirement -->{{#if:{{{questreq|}}}|<li>You must have completed quest {{{questreq}}}}}<!--
Items Profession Type Requirement old style -->{{#if:{{{prof|}}}|<li>Requires: {{{proficiency}}} [[{{{prof}}}]] crafting ability}}<!--
Items Profession Type Requirement new style -->{{#if:{{{profession|}}}|<li>Requires: {{{proficiency}}} [[{{{profession}}}]] crafting ability}}<!--
Items required Glory rank-->{{#if:{{{gloryrank|}}}|<li>Requires: [[Glory]] Rank {{{gloryrank}}} }}<!--
Items required Infamy rank-->{{#if:{{{infamyrank|}}}|<li>Requires: [[Infamy]] Rank {{{infamyrank}}} }}<!--
Items Begin Quest -->{{#if:{{{bquest|}}}|<li>Starts Quest: [[Quest:{{{bquest}}}|{{{bquest}}}]]}}<!--
 
RELIC INFO --><!--
Relic Header & Name -->{{#if:{{{relic-name|}}}|<li style="color: white; font-family:Times,TimesNR,serif; font-variant:small-caps; font-weight:lighter; letter-spacing:1.5px; font-size:120%; line-height: 1em">Relics</li><li style="color: tan; font-family:Times,TimesNR,serif; font-variant:small-caps; font-weight:lighter; letter-spacing:1.5px; line-height: 1em">{{{relic-name}}}</li>}}<!--
Relic Icon -->{{#if:{{{relic-icon|}}}|<li style="float: left; overflow: auto; width: 20%">[[Image:{{{relic-icon}}}.png]]&nbsp;}}<!--
Relic Attrib(s) -->{{#if:{{{relic-attrib|}}}|<li style="float: left; overflow: auto; width: 80%; line-height: 1.25em; color: limegreen; font-weight:lighter; font-size:90%">{{{relic-attrib}}}<br><br>}}<!--
 
ALL ITEMS --><!--
# SHOW ONLY ON OWN PAGE# -->{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage|{{{name}}}}}}|<!--
Items Set Full-->{{#if: {{{set|}}}|<div style="height:10px">&nbsp;</div>}}{{{{#if: {{{set|}}}|:{{{set}}}|Blank}}|mode=itemtip}}<!--
Items Flavor Text -->{{#if:{{{flavor|{{{desc|{{{comment|}}}}}}}}}|<div style="height:10px">&nbsp;</div><li class="flavor">"{{{flavor|{{{desc|{{{comment}}}}}}}}}"}}<!--
Items Vendor Price -->{{#if:{{{vendor|}}}|<div style="height:10px">&nbsp;</div><li>Prix d'achat : {{{vendor}}}}}<!--
Items Sell Price -->{{#if:{{{sell|}}}|<div style="height:10px">&nbsp;</div><li>Valeur : {{{sell}}}}}<!--
--><div style="height:10px">&nbsp;</div><!--
No. of Items that will Stack -->{{#if:{{{stack|}}}|<li>''Empilable par {{{stack}}} unités''}}<!--
 
<!--
AUTO-CATEGORIZATION STARTS HERE
-->
{{#if: {{{quest-reward|}}}    | [[Category:Quest Reward Items]]}}
{{#if: {{{main-category|}}}  | [[Category:{{{main-category}}}|{{PAGENAME}}]]}}
{{#if: {{{first-category|}}}  | [[Category:{{{first-category}}}|{{PAGENAME}}]]}}
{{#if: {{{second-category|}}} | [[Category:{{{second-category}}}|{{PAGENAME}}]]}}
{{#if: {{{third-category|}}}  | [[Category:{{{third-category}}}|{{PAGENAME}}]]}}
{{#if: {{{fourth-category|}}} | [[Category:{{{fourth-category}}}|{{PAGENAME}}]]}}
{{#if: {{{fifth-category|}}}  | [[Category:{{{fifth-category}}}|{{PAGENAME}}]]}}
{{#if: {{{class|}}}          | [[Category:Objet ({{{class}}})|{{PAGENAME}}]]}}
{{#if: {{{class2|}}}          | [[Category:{{{class2}}} Items|{{PAGENAME}}]]}}
{{#if: {{{type|}}}            | [[Category:Objet ({{{type}}})|{{PAGENAME}}]]}}
{{#if: {{{cosmetic|}}}        | [[Category:Cosmetic Items|{{PAGENAME}}]]}}
{{#if: {{{barter|}}}          | [[Category:Barter Items|{{PAGENAME}}]]}}
{{#if: {{{deco-slot|}}}       | [[Category:Decoration Category: {{{deco-slot}}}|{{PAGENAME}}]] }}
{{#if: {{{prof|}}}           | [[Category:{{{prof}}} Items|{{PAGENAME}}]]}}
{{#if: {{{profession|}}}      | [[Category:{{{profession}}} Items|{{PAGENAME}}]]}}
{{#if: {{{level|}}}          | [[Category:Objet (Niveau {{{level}}})|{{PAGENAME}}]]}}
{{#if: {{{slot|}}}            |
{{ #switch: {{{slot|}}}
| ear |Ear = [[Category:Ear Items|{{PAGENAME}}]]
| neck |Neck = [[Category:Neck Items|{{PAGENAME}}]]
| wrist |Wrist = [[Category:Wrist Items|{{PAGENAME}}]]
| finger |Finger = [[Category:Finger Items|{{PAGENAME}}]]
| #default = [[Category:{{{slot}}} Items|{{PAGENAME}}]]
}} }}
{{ #switch: {{{quality|}}}
| epic |Epic = [[Category:Objet (Épique)|{{PAGENAME}}]]
| incomparable |Incomparable = [[Category:Objet (Incomparable)|{{PAGENAME}}]]
| rare |Rare = [[Category:Objet (Rare)|{{PAGENAME}}]]
| uncommon |Uncommon = [[Category:Objet (Peu commun)|{{PAGENAME}}]]
| common |Common | #default = [[Category:Objet (Commun)|{{PAGENAME}}]]
| #default = [[Category:Objet ({{{quality}}})|{{PAGENAME}}]]
}}<!--
AUTO-CATEGORIZATION ENDS HERE
--><!--
 
# SHOW ONLY OFF OWN PAGE # -->|<!--
Item Set Short -->{{#if:{{{set|}}}|<div style="height:10px">&nbsp;</div><li class="set">Set: [[{{{set}}}]]}}<!--
Items Vendor Price -->{{#if:{{{vendor|}}}|<div style="height:10px">&nbsp;</div><li>Prix d'achat: {{{vendor}}}}}<!--
Items Sell Price -->{{#if:{{{sell|}}}|<div style="height:10px">&nbsp;</div><li>Valeur: {{{sell}}}}}<!--
 
#End Check# -->}}<!--
End Tooltip --></ul></div>}}
</includeonly></onlyinclude>
 
<noinclude>
{{Tooltip/usage}}
[[Category:General Wiki Templates|Tooltip]]</noinclude>

Dernière version du 30 janvier 2025 à 11:08

Using the Template

Copy/Paste the template found at the top of the Discussion page onto the Item's page.


Meaning Behind the Parameters

| mode={{{mode|}}}
Leave as is
| arg={{{arg|}}}
Leave as is

Name:

|name=
item name, as it appears in game. Exact page name (not {{PAGENAME}}) is required here to avoid issues with names containing diacritics and apostrophs.
|icon=
icon to display; omit Image: and file extension (.png); passed to Modèle:t. Generally named "page name-icon". Exact page/icon name (not {{PAGENAME}}) is required here to avoid issues with names containing diacritics and apostrophes.
|disambigpage=
name of LOTRO-Wiki page for this item. Leave this field as it is...
|quality=
item quality, passed to Modèle:t to generate formatted item name.

Basic Info:

|unique=
used for unique items, put "Yes" or anything in this field to show "Unique" in the right corner of the tooltip.
|indestructible=
used for indestructible items, put "Yes" or anything in this field to show "Cannot Be Destroyed" in the tooltip.
|consumed=
used for food and potions, put "Yes" or anything in this field to show "Consumed On Use" in the tooltip.
|cosmetic=
used to denote cosmetic items, put "Yes" or anything in this field to show "Cosmetic" in the tooltip.
|barter=
used for items that can be bartered for faction standing or items, put "Yes" or anything in this field to show "Barter Item" in the tooltip.
|bind=
binding type: BoE, BoA or BtA.
|dye=
if an item is dyed by default, ("Turquoise", "Black"...)
|type=
item type from the ingame tooltip ("One-Handed Axe", "Heavy Armour", "Staff"...)
|slot=
item slot ("Finger", "Ear"...) Add only if it's used in the item tooltip ingame
|deco-slot=
used to denote housing decoration items, will put an item into proper decoration category.
|LImodifier=
used to describe the legendary scroll modifier applied to a legendary item, displayed in grey

Stats:

|armour=
amount of the armour item grants to the wearer.
|dmg=
basic weapon damage, provide a range ("13 - 17").
|dmgtype=
basic weapon damage type ("Common", "Fire", "Beleriand"...).
|dps=
weapon dps.
|bonus=
bonus weapon damage, ("+9 Damage").
|bonustype=
bonus weapon damage type (to the Dead).

On-Use Details:

|use=
Provide here details on the item's on-use-effect...
|skilltype=
Provide the type of skill that an item's on-use-effect uses (melee/tactical/...), only use if shown on ingame tooltip.
|resistance=
Provide a type of resistance that the item's on-use-effect has (cry/song/...), only use if shown on ingame tooltip.
|range=
Provide the range that the item's on-use-effect has.
|radius=
Provide here the radius of the item's on-use-effects.
|maxtargets=
Provide maximum ammount of targets that the item's on-use-effect has.
|duration=
Provide here duration of the item's on-use-effects.
|max_duration=
Provide here maximum duration of the item's on-use-effects (some of the new Forochel items seem to have max duration instead of normal one)...
|cooldown=
Provide here a cooldown of the item's on-use-effects.

Requirements:

|barskill=
The first barring skill goes here.
|barskill2=
A second barring skill goes here.
|barskill3=
If barring skill is passive, put "Yes" or anything in this field.
|level=
numeric value of the minimum level required to use this item.
|maxlevel=
numeric value of the maximum level that can use this item.
|class=
class that can use the item.
|class2=
A second class mentioned goes here.
|class3=
A third class mentioned goes here.
|nomp=
If an item can not be used during Monsterplay, put "Yes" or anything in this field.
|race=
race that can use the item.
|skillreq=
skill required to use the item.
|questreq=
quest that must have been completed.
|profession=
profession that can use the item (used together with |proficiency=).
|proficiency=
proficiency in the profession needed to use the item (used together with |profession=).
|faction=
faction name required to use this item (used together with |standing=).
|standing=
faction reputation standing required to use this item (used together with |faction=).
|virtue=
virtue required to use item, eg: Honesty.
|virtuerank=
virtue rank required to use item, eg: 5 (template will add ", Rank " between).
|gloryrank=
numeric value of the freep rank required to use this item.
|infamyrank=
numeric value of the creep rank required to use this item.

Info:

|attrib=
item's attributes. List all stat bonuses, delimit individual bonuses with <br> (+6 Vitality <br> +3 Will).
|durability=
item's maximum durability (numeric).
|dur_class=
item's durability class (brittle/normal/...).
|flavor =
item's description text, without quotes (which are added by the template).
|set=
name of the set, if the item is part of set. If the Wiki page isn't the same as the set name, move the Wiki page to the correct name.
|sell=
price an NPC will pay for the item (use Modèle:t).
|vendor=
price the item costs when purchased from an NPC (use Modèle:t).
|stack=
max # of items that can be stacked in one inventory slot, if known.