Modèle:Barter/doc

De Lotro-wiki
Sauter à la navigation Sauter à la recherche

The barter template is normally used in pairs to describe the items "Traded" and "Received" in tables describing Barter NPCs.

Syntax

{{Barter|<item> | (rename=)<what to display> [| (float=)<left or right>] [| (icon=)<''icon-name''>]}}

Parameters:

  • Some parameters can be keyworded or positional
  • Item (positional) (required) - is the name from the Item namespace without the "Item:" prefix. This will automatically display the icon used by that "Item" unless overridden by "icon=".
  • Rename (keyword or positional)(required) - As most items and icons are singular, this provides the plural display text
  • Float (keyword or positional)(optional) - determines the placement of the icon and consequently any "text over-run" in relationship to Icon placement. Normally, the Icon will float above any "text over-run."
"right" will place the Icon itself on the right of the line.
"Left" will place the Icon itslf alone on the left.
  • Icon (keyword) (optional) - needed as many Items now use "generic icons" -- you will need to find the correct "icon-name" from the Item page itself if it does not automatically display. The suffix "-icon.png" is supplied by the template.


Examples

  • With keywords

{{Barter|Mark of Aughaire Victory|rename=2 Marks of Aughaire Victory}} &
{{Barter|Mark of Aughaire Victory|rename=2 Marks of Aughaire Victory|float=left}}

  • Without keywords

{{Barter|Mark of Aughaire Victory|2 Marks of Aughaire Victory}} &
{{Barter|Mark of Aughaire Victory|2 Marks of Aughaire Victory|right}}
{{Barter|The Book of Knives|icon=Book 1 (incomparable)}}

  • When used in a small table column:
Trade
Mark of Aughaire Victory-icon.png 2 Marks of Aughaire Victory
Mark of Aughaire Victory-icon.png
2 Marks of Aughaire Victory
Mark of Aughaire Victory-icon.png 2 Marks of Aughaire Victory
Mark of Aughaire Victory-icon.png
2 Marks of Aughaire Victory
Fichier:Book 1 (incomparable)-icon.png The Book of Knives
  • When used in pairs in a typical NPC display, the following table code:
{| class="altRowsMed collapsible collapsed" style="text-align:left; width:500px;" 
! style="text-align:center;" width:250px;" colspan="2" | Acquaintance - Currency and Consumables
|-
! style="text-align:center; width:250px;" | Item to Receive
! style="text-align:center; width:250px;" | Items to Trade
|- 
| {{Barter|Eastemnet Milkthistle Draught|3 Eastemnet Milkthistle Draughts}} || {{Barter|Wildermore Coin|10 Wildermore Coins|icon=Silver Token of the Riddermark}}
|- 
| {{Barter|Eastemnet Lhinestad Draught|3 Eastemnet Lhinestad Draughts}} || {{Barter|Wildermore Coin|10 Wildermore Coins|icon=Silver Token of the Riddermark}}
|- 
| {{Barter|Eastemnet Healing Draught|3 Eastemnet Healing Draughts}} || {{Barter|Wildermore Coin|10 Wildermore Coins|icon=Silver Token of the Riddermark}}
|- 
| {{Barter|Eastemnet Conhuith Draught|3 Eastemnet Conhuith Draughts}} || {{Barter|Wildermore Coin|10 Wildermore Coins|icon=Silver Token of the Riddermark}}
|- 
| {{Barter|Swamp Cabbage|3 Swamp Cabbage}} || {{Barter|Wildermore Coin|10 Wildermore Coins|icon=Silver Token of the Riddermark}}
|}

Yields this table: