Difference between revisions of "Template:NPCLootTable/row"
Jump to navigation
Jump to search
A) With a NPC
B) With
m (Removed unused data.) |
m (Partially working.) |
||
Line 3: | Line 3: | ||
-->{{#vardefine:Datastring|{{:NPCLoot data|{{{1}}}}}}}<!-- | -->{{#vardefine:Datastring|{{:NPCLoot data|{{{1}}}}}}}<!-- | ||
-->{{#vardefine:Exists|{{#ifeq: {{:Friendly data|{{{1}}}|Occupation}}|NPC {{{1}}} does not exist in [[Friendly data]].||{{:Friendly data|{{{1}}}|Occupation}}}}}}<!-- | -->{{#vardefine:Exists|{{#ifeq: {{:Friendly data|{{{1}}}|Occupation}}|NPC {{{1}}} does not exist in [[Friendly data]].||{{:Friendly data|{{{1}}}|Occupation}}}}}}<!-- | ||
-->{{#vardefine:DataExists|{{#ifeq: {{:NPCLoot data|{{{1}}}|Buy}}|No data on {{{1}}} for this NPC in [[NPCLoot data]].||{{:NPCLoot data|{{{1}}}|Weapons}}}}}}<!-- | |||
-->{{#vardefine:Name|{{:Friendly data|{{{1}}}|Name}}}}<!-- | -->{{#vardefine:Name|{{:Friendly data|{{{1}}}|Name}}}}<!-- | ||
-->{{#vardefine:Trader|{{:Friendly data|{{{1}}}|Trader}}}}<!-- | -->{{#vardefine:Trader|{{:Friendly data|{{{1}}}|Trader}}}}<!-- | ||
Line 9: | Line 10: | ||
|- | |- | ||
<!-- Second column --> | <!-- Second column --> | ||
| {{: | | {{:NPCLoot data|{{{1}}}|Buy}} | ||
| {{#if:{{#var:Exists}}|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|37px|link={{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}||{{Translate|{{#var:Name}}|NPCNames}}}}|{{Translate|{{{1}}}|NPCNames}}}}]]<!-- | | {{#if:{{#var:Exists}}|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|37px|link={{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}||{{Translate|{{#var:Name}}|NPCNames}}}}|{{Translate|{{{1}}}|NPCNames}}}}]]<!-- | ||
--- Extra images for NPC entries like generic guards or peasants. Many face images with no link. --- | --- Extra images for NPC entries like generic guards or peasants. Many face images with no link. --- | ||
-->{{#if:{{#var:Image2}}|[[File:{{#var:Image2}}|37px|link=]]}}<!-- | -->{{#if:{{#var:Image2}}|[[File:{{#var:Image2}}|37px|link=]]}}<!-- | ||
--><br>{{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}|{{Translate|{{#var:Name}}|NPCNames}}|[[{{Translate|{{#var:Name}}|NPCNames}}]]}}|[[{{Translate|{{{1}}}|NPCNames}}]]}}}}<!-- | --><br>{{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}|{{Translate|{{#var:Name}}|NPCNames}}|[[{{Translate|{{#var:Name}}|NPCNames}}]]}}|[[{{Translate|{{{1}}}|NPCNames}}]]}}}}<!-- | ||
-->{{#if:{{#var:Exists}}|{{#if:{{: | -->{{#if:{{#var:Exists}}|{{#if:{{:NPCLoot data|{{{1}}}|Quest}}|'''✓'''}}}}{{#if:{{{2|}}}|<sup>{{{2|}}}</sup>}}<!-- | ||
--></includeonly><noinclude>{{doc|Template:NPCLootTable/row}}[[Category:Templates]]</noinclude> | --></includeonly><noinclude>{{doc|Template:NPCLootTable/row}}[[Category:Templates]]</noinclude> |
Revision as of 02:40, 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 | |||||||
![]() BertBuys | ||||||||
{{{2}}}) |
- With "head" & "Buys"
Category | Types |
---|---|
![]() BertBuys |
Sells
- With "head", "Sells" & "end"
Category | Types | |||||||
---|---|---|---|---|---|---|---|---|
![]() BertSells | ||||||||
{{{2}}}) |
- With "head|Bert|Sells" & "SellsX3"
Bert Sells | |
---|---|
Category | Types |
![]() BertSells | |
![]() BertSells | |
![]() BertSells |
- With "head" & "SellsX2"
Category | Types |
---|---|
![]() BertSells | |
![]() BertSells |