Шаблон:Inventory — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
м (Откат правок Mirry (обсуждение) к версии Snowbirdie)
 
 
Строка 1: Строка 1:
<includeonly>{{#if: {{{1|}}}|{{Inventory/{{lc:{{{1}}}}}}}|''A parameter must be supplied - see [[Template:Inventory#Parameters]].''}}</includeonly><noinclude>
+
<onlyinclude><small>Click [{{fullurl:{{urlencode:Template:Inventory/{{{1}}}}}|action=edit}} here] to edit this table</small><!--
This template provides a convenient way of specifying the commonly seen merchant inventories.
+
-->{{#ifeq:{{{no subobjects|false}}}|true|{{#vardefine:suppress VTR subobjects|Template:Inventory - no subobjects}}}}{{inventory/{{{1}}}|{{{2|}}}}}<nowiki/><!-- removes linebreak --></onlyinclude>
  
Refer to {{tl|Vendor table row}}/{{tl|Vendor table header}} for more information on how to build custom inventory tables using the set of provided templates.
+
== Usage ==
 +
This template inserts a copy of the items offered by a specified vendor. The list of possible vendors is given in the [[#Parameters]] section below. To include this template on a page, use:
  
=== Parameters ===
+
<pre>
;Unnamed parameter 1
+
{{inventory|<service lookup>}}
:A value that identifies the common [[vendor]] table. See [[:Category:Vendor inventory tables]] for a list of vendor tables that have been identified as being common among many vendor NPCs.
+
</pre>
:Possible values:
+
 
{| {{STDT|npc}}
+
=== Vendor lists ===
! !! parameter value !! Additional description
+
The vendor lists themselves are stored on subpages of this page. For instance, "standard merchant" is stored on [[:Template:Inventory/standard merchant]]. To edit the list of items provided by a vendor, edit that subpage. (Alternately, this template adds a "Click here to edit the table" link on any page it's used on, so you can also reach the relevant subpage directly via that.)
 +
 
 +
You can also use the edit box below to go directly to any subpage; type a substring of the title into it to receive a list of matching subpages.
 +
 
 +
{{#forminput:form=Inventory table|autocomplete on category=Vendor inventory tables|placeholder=Select a inventory table to edit}}
 +
Refer to {{tl|vendor table row}} and {{tl|vendor table header}} for vendor inventory formatting.
 +
 
 +
== Parameters ==
 +
; Unnamed parameter 1
 +
: The NPC service table to generate. A full list of inventory tables is found on [[:Category:Vendor inventory tables]].
 +
: {| {{STDT|npc}} style="display: table"
 +
! Table !! Description
 
|-
 
|-
| style="background-color:#fff" rowspan=11 | Merchant tables || standard merchant || Bag + all salvage kits + all tools
+
! colspan="2" style="text-align: left" | Merchant tables
 +
|-
 +
| standard merchant   || Bag + all salvage kits + all tools
 
|-
 
|-
 
| standard merchant 1 || Copper tools only
 
| standard merchant 1 || Copper tools only
Строка 28: Строка 42:
 
|-
 
|-
 
| salvage kit merchant ||
 
| salvage kit merchant ||
 +
|-
 +
| mystic forge merchant ||
 +
|-
 +
| laurel merchant ||
 +
|-
 +
| wvw laurel merchant ||
 
|-
 
|-
 
| chef ingredients 1 ||
 
| chef ingredients 1 ||
 
|-
 
|-
 
| candy merchant ||
 
| candy merchant ||
|- class="line-top"
+
|-
| style="background-color:#fff" rowspan=1 | Karma merchant tables || chef ingredients ||
+
| gift exchange || [[Wintersday]] items
|- class="line-top"
+
|-
| style="background-color:#fff" rowspan=7 | Bartender tables || belcher's bluff kit ||
+
! colspan="2" style="text-align: left" | Karma merchant tables
 +
|-
 +
| chef ingredients ||
 +
|-
 +
! colspan="2" style="text-align: left" | Bartender tables
 +
|-
 +
| belcher's bluff kit ||
 
|-
 
|-
 
| bartender 1 || GW1's legacy beverages
 
| bartender 1 || GW1's legacy beverages
Строка 48: Строка 74:
 
|-
 
|-
 
| bartender 6 || Sylvari nectars
 
| bartender 6 || Sylvari nectars
|- class="line-top"
+
|-
| style="background-color:#fff" rowspan=4 | Crafting NPCs - specific tabs || kits and tools ||
+
! colspan="2" style="text-align: left" | Crafting NPCs, specific tabs
 +
|-
 +
| kits and tools ||
 
|-
 
|-
 
| inscriptions ||
 
| inscriptions ||
Строка 56: Строка 84:
 
|-
 
|-
 
| runes ||
 
| runes ||
|- class="line-top"
+
|-
| style="background-color:#fff" rowspan=8 | Crafting NPCs - entire inventory || master armorsmith ||
+
! colspan="2" style="text-align: left" | Crafting NPCs, entire inventory
 +
|-
 +
| master armorsmith ||
 
|-
 
|-
 
| master artificer ||
 
| master artificer ||
Строка 72: Строка 102:
 
|-
 
|-
 
| master weaponsmith ||
 
| master weaponsmith ||
|- class="line-top"
+
|-
| style="background-color:#fff" rowspan=2 | Trainers || commander trainer ||
+
! colspan="2" style="text-align: left" | Trainers
 +
|-
 +
| commander trainer ||
 
|-
 
|-
 
| profession trainer ||
 
| profession trainer ||
|- class="line-top"
+
|-
| style="background-color:#fff" rowspan=5 | Guild Vendors || guild armorer ||
+
! colspan="2" style="text-align: left" | Guild vendors
 +
|-
 +
| guild armorer ||
 
|-
 
|-
 
| guild weaponsmith ||
 
| guild weaponsmith ||
Строка 85: Строка 119:
 
| guild promoter drink ||
 
| guild promoter drink ||
 
|-
 
|-
| guild promoter letter||
+
| guild promoter letter ||
 +
|-
 +
! colspan="2" style="text-align: left" | Path of Fire vendors
 
|-
 
|-
 +
| dwarven crafting specialist || 32-slot bag exchange
 +
|-
 +
| grey market diamond exchange ||
 
|}
 
|}
 +
 +
; no subobjects
 +
: Optional. Suppresses subobjects if true, defaults false. Only set if you know what you're doing.
  
 
=== Example usage ===
 
=== Example usage ===
Строка 95: Строка 137:
 
* [[Template:Quartermaster]] - for [[quartermaster]]s in [[world versus world]]
 
* [[Template:Quartermaster]] - for [[quartermaster]]s in [[world versus world]]
  
[[Category:Table formatting templates|Inventory]][[Category:Vendor inventory tables|*]]
+
[[Category:Vendor inventory tables|*]]
</noinclude>
 

Текущая версия на 17:50, 31 марта 2023

Click [{{fullurl:Template%3AInventory%2F%7B%7B%7B1%7D%7D%7D|action=edit}} here] to edit this table{{inventory/{{{1}}}|}}

Usage[править]

This template inserts a copy of the items offered by a specified vendor. The list of possible vendors is given in the #Parameters section below. To include this template on a page, use:

{{inventory|<service lookup>}}

Vendor lists[править]

The vendor lists themselves are stored on subpages of this page. For instance, "standard merchant" is stored on Template:Inventory/standard merchant. To edit the list of items provided by a vendor, edit that subpage. (Alternately, this template adds a "Click here to edit the table" link on any page it's used on, so you can also reach the relevant subpage directly via that.)

You can also use the edit box below to go directly to any subpage; type a substring of the title into it to receive a list of matching subpages.

 

Refer to {{vendor table row}} and {{vendor table header}} for vendor inventory formatting.

Parameters[править]

Unnamed parameter 1
The NPC service table to generate. A full list of inventory tables is found on Category:Vendor inventory tables.
Table Description
Merchant tables
standard merchant Bag + all salvage kits + all tools
standard merchant 1 Copper tools only
standard merchant 2 Copper + Iron
standard merchant 3 Iron + Steel
standard merchant 4 Steel + Darksteel
standard merchant 5 Steel + Darksteel + Orichalcum
standard merchant 6 Mithril + Orichalcum
standard merchant 7 Darksteel + Mithril
salvage kit merchant
mystic forge merchant
laurel merchant
wvw laurel merchant
chef ingredients 1
candy merchant
gift exchange Wintersday items
Karma merchant tables
chef ingredients
Bartender tables
belcher's bluff kit
bartender 1 GW1's legacy beverages
bartender 2 Common norn beverages
bartender 3 Aloe seed snack bar
bartender 4 Charr whiskeys
bartender 5 Elonian selection
bartender 6 Sylvari nectars
Crafting NPCs, specific tabs
kits and tools
inscriptions
insignia
runes
Crafting NPCs, entire inventory
master armorsmith
master artificer
master chef
master huntsman
master jeweler
master leatherworker
master tailor
master weaponsmith
Trainers
commander trainer
profession trainer
Guild vendors
guild armorer
guild weaponsmith
guild commendation trader
guild promoter drink
guild promoter letter
Path of Fire vendors
dwarven crafting specialist 32-slot bag exchange
grey market diamond exchange
no subobjects
Optional. Suppresses subobjects if true, defaults false. Only set if you know what you're doing.

Example usage[править]

{{inventory|standard merchant 4}}

See also[править]