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

From Stoneshard wiki
Jump to navigation Jump to search
m (Add more examples/tests.)
m (Add new head template)
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|npc=Ormond}}<br>
{{tl|NPCLootTable/head|Bert}}<br>
{{tl|NPCLootTable/row}}<br>
{{tl|NPCLootTable/row}}<br>
|}
|}
Line 18: Line 18:
===Examples===
===Examples===


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


{{NPCLootTable/head|npc=Ormond}}
{{NPCLootTable/head|npc=Ormond}}
|}
|}


====B) With {{tl|NPCLootTable/head|npc=Ormond}} & {{tl|NPCLootTable/row|NPC*}}:====
====B) With {{tl|NPCLootTable/head|Bert}} & {{tl|NPCLootTable/row|NPC*}}:====


=== Trades ===
=== Trades ===
==== Buys & end ====
==== Buys & end ====
With "Buys" & "end"
With "Buys", "head" & "end"
{{NPCLootTable/head|npc=Jurg}}
{{NPCLootTable/head|Bert|Buys}}
{{NPCLootTable/row|Jurg|Buys}}
{{NPCLootTable/row|Bert|Buys}}
{{NPCLootTable/end}}
{{NPCLootTable/end}}
|}
|}
==== Buys ====
==== Buys ====
With "Buys" & "end"
With "Buys" & "end"
{{NPCLootTable/head|npc=Jurg}}
{{NPCLootTable/head|Bert|Buys}}
{{NPCLootTable/row|Jurg|Buys}}
{{NPCLootTable/row|Bert|Buys}}
|}
|}
==== Sells ====
==== Sells ====
Bert as example
Bert as example
{{NPCLootTable/head|npc}}
{{NPCLootTable/head|Bert|Sells}}
{{NPCLootTable/row|Bert|Sells|Weapons}}
{{NPCLootTable/row|Bert|Sells|Weapons}}
{{NPCLootTable/row|Bert|Sells|Armor}}
{{NPCLootTable/row|Bert|Sells|Armor}}

Revision as of 11:30, 27 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|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

Buys & end

With "Buys", "head" & "end"

Bert Buys
Category Types


Bert.png
Bert
[[]]
Armor icon.png
[[]]
Scrolls icon.png
[[]]
Consumables icon.png
[[]]
Jewelry icon.png
[[]]
Loot icon.png
[[]]
Medicine icon.png
[[]]
Other icon.png
{{{2}}})

Buys

With "Buys" & "end"

Bert Buys
Category Types


Bert.png
Bert
[[]]
Armor icon.png
[[]]
Scrolls icon.png
[[]]
Consumables icon.png
[[]]
Jewelry icon.png
[[]]
Loot icon.png
[[]]
Medicine icon.png
[[]]
Other icon.png

Sells

Bert as example

Bert Sells
Category Types


Weapons
Weapons icon.png
Training Crossbow
Training Crossbow.png


Armor
Armor icon.png
Travelling Shoes
Travelling Shoes.png


Tools
Tools icon.png
Hammer
File:Hammer.png
Pickaxe
Pickaxe.png
Bedroll
Bedroll.png