Difference between revisions of "Template:NPCLootTable/row/doc"

From Stoneshard wiki
Jump to navigation Jump to search
(Add fixed copy version of NPCTable/row/doc.)
 
(Fix examples. "Buys" & "Sells" definition, still need logic to detect what is what, or have two head templates.)
Line 1: Line 1:
{{doc/start}}{{stub}}
{{doc/start}}{{stub}}


This Template is used to display every type of items a NPC trades.
This Template is used to display every category & type of items a NPC trades.


==Syntax==
==Syntax==
Line 9: Line 9:
The header is always followed by the {{tl|NPCLootTable/row}}, according to the necessary amount of NPCs to be display.
The header is always followed by the {{tl|NPCLootTable/row}}, according to the necessary amount of NPCs to be display.
{{Clear}}
{{Clear}}
{{tl|NPCLootTable/head}}<br>
{{tl|NPCLootTable/head|npc=Ormond}}<br>
{{tl|NPCLootTable/row|Ormond}}<br>
{{tl|NPCLootTable/row}}<br>
|}
|}
{{Clear}}
{{Clear}}
Line 17: Line 17:


===Examples===
===Examples===
====a) Only the {{tl|NPCLootTable/head}}:====
{{NPCLootTable/head}}
|}
====b) With a town {{tl|NPCLootTable/head|town=Osbrook}}:====


{{NPCLootTable/head|town=Osbrook}}
====A) With a NPC {{tl|NPCLootTable/head|npc=Ormond}}:====
 
{{NPCLootTable/head|npc=Ormond}}
|}
|}


====c) With {{tl|NPCLootTable/head|town=Osbrook}} & {{tl|NPCLootTable/row|NPCs*}}:====
====B) With {{tl|NPCLootTable/head|npc=Ormond}} & {{tl|NPCLootTable/row|NPC*}}:====


=== Lists of friendly NPCs* ===
=== Trades ===
{{NPCLootTable/head|town=Osbrook}}
==== Buys ====
{{NPCLootTable/head|npc=Ormond}}
{{NPCLootTable/row|Ormond}}
{{NPCLootTable/row|Ormond}}
{{NPCLootTable/row|Jurg}}
{{NPCLootTable/row|Jurg}}
|}
|}
 
==== Sells ====
{{NPCLootTable/head|town=Mannshire}}
{{NPCLootTable/head|npc=Lynd}}
{{NPCLootTable/row|Lynd}}
{{NPCLootTable/row|Lynd}}
{{NPCLootTable/row|Dirk_(NPC)}}
{{NPCLootTable/row|Dirk_(NPC)}}

Revision as of 19:53, 25 January 2025

Template-info.png Documentation

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}}
{{NPCLootTable/row}}
|}

Any NPC Loot information added in NPCLoot data, can be used with the '/row' template.

Examples

A) With a NPC {{NPCLootTable/head}}:

Category Types

B) With {{NPCLootTable/head}} & {{NPCLootTable/row|NPC*}}:

Trades

Buys

Category Types



Sells

Category Types