Difference between revisions of "Template:NPCLootTable/row"
Jump to navigation
Jump to search
A) With a NPC
B) With
(Add translation logic & test for template use.) |
m (Test) |
||
Line 7: | Line 7: | ||
-->{{#vardefine:Sells|{{:Datastring|{{#var:{{PAGENAME}}}}|Sells}}}}<!-- | -->{{#vardefine:Sells|{{:Datastring|{{#var:{{PAGENAME}}}}|Sells}}}}<!-- | ||
--- Define variables for the type and item from the NPC --- | --- Define variables for the type and item from the NPC --- | ||
-->{{#vardefine:NPC|{{{ | -->{{#vardefine:NPC|{{{PAGENAME}}}}} <!-- NPC name --- | ||
-->{{#vardefine:Trade|{{{1 | -->{{#vardefine:Trade|{{{1}}}}} <!-- Buys or Sells --- | ||
-->{{#vardefine:Category|{{{2 | -->{{#vardefine:Category|{{{2}}}}} <!-- Category of Items --- | ||
--- Load translations that are used multiple times into variables. --- | --- Load translations that are used multiple times into variables. --- | ||
-->{{#vardefine:TranslateCategory|{{Translate|{{{1}}}|Properties}}}}<!-- | -->{{#vardefine:TranslateCategory|{{Translate|{{{1}}}|Properties}}}}<!-- |
Revision as of 09:26, 26 January 2025
![]() |
This article is a stub. You can help Stoneshard wiki by expanding it. |
This Template is used to display every category & type of items a NPC trades.
Syntax
{{NPCTable/head}}
Usage
The header is always followed by the {{NPCLootTable/row}}
, according to the necessary amount of NPCs to be display.
{{NPCLootTable/head|Bert}}
{{NPCLootTable/row}}
|}
Any NPC Loot information added in NPCLoot data, can be used with the '/row' template.
Examples
A) With a NPC {{NPCLootTable/head|Bert}}
:
Category | Types |
---|
B) With {{NPCLootTable/head|Bert}}
& {{NPCLootTable/row|NPC*}}
:
Trades
Bert as example
Buys
- With "head|Bert|Buys", "Buys" & "end"
Bert Buys | ||||||||
---|---|---|---|---|---|---|---|---|
Category | Types | |||||||
Bert![]() |
![]() BertBuys File:Icon.png | |||||||
{{{2}}}) |
- With "head" & "Buys"
Category | Types |
---|---|
Bert![]() |
![]() BertBuys File:Icon.png |
Sells
- With "head", "Sells" & "end"
Category | Types | |||||||
---|---|---|---|---|---|---|---|---|
Bert![]() |
![]() BertSells File:Icon.png | |||||||
{{{2}}}) |
- With "head|Bert|Sells" & "SellsX3"
Bert Sells | |
---|---|
Category | Types |
Bert![]() |
![]() BertSells File:Icon.png |
Bert![]() |
![]() BertSells File:Icon.png |
Bert![]() |
![]() BertSells File:Icon.png |
- With "head" & "SellsX2"
Category | Types |
---|---|
Bert![]() |
![]() BertSells File:Icon.png |
Bert![]() |
![]() BertSells File:Icon.png |