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.)
 
(Add multiple examples for template usage.)
 
(11 intermediate revisions by the same user not shown)
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|Bert}}<br>
{{tl|NPCLootTable/row|Ormond}}<br>
{{tl|NPCLootTable/row}}<br>
|}
|}
{{Clear}}
{{Clear}}
Line 17: Line 17:


===Examples===
===Examples===
====a) Only the {{tl|NPCLootTable/head}}:====
 
====A) With a NPC {{tl|NPCLootTable/head|Bert}}:====
 
{{NPCLootTable/head|npc=Ormond}}
|}
 
====B) With {{tl|NPCLootTable/head|Bert}} & {{tl|NPCLootTable/row|NPC*}}:====
 
=== Trades ===
Bert as example
 
== Buys ==
* With "head|Bert|Buys", "Buys" & "end"
{{NPCLootTable/head|Bert|Buys}}
{{NPCLootTable/row|Bert|Buys}}
{{NPCLootTable/end}}
|}
 
* With "head" & "Buys"
{{NPCLootTable/head}}
{{NPCLootTable/head}}
{{NPCLootTable/row|Bert|Buys}}
|}
|}
====b) With a town {{tl|NPCLootTable/head|town=Osbrook}}:====


{{NPCLootTable/head|town=Osbrook}}
== Sells ==
* With "head", "Sells" & "end"
{{NPCLootTable/head}}
{{NPCLootTable/row|Bert|Sells|Weapons}}
{{NPCLootTable/end}}
|}
|}


====c) With {{tl|NPCLootTable/head|town=Osbrook}} & {{tl|NPCLootTable/row|NPCs*}}:====
* With "head|Bert|Sells" & "SellsX3"
 
{{NPCLootTable/head|Bert|Sells}}
=== Lists of friendly NPCs* ===
{{NPCLootTable/row|Bert|Sells|Weapons}}
{{NPCLootTable/head|town=Osbrook}}
{{NPCLootTable/row|Bert|Sells|Armor}}
{{NPCLootTable/row|Ormond}}
{{NPCLootTable/row|Bert|Sells|Tools}}
{{NPCLootTable/row|Jurg}}
|}
|}


{{NPCLootTable/head|town=Mannshire}}
* With "head" & "SellsX2"
{{NPCLootTable/row|Lynd}}
{{NPCLootTable/head}}
{{NPCLootTable/row|Dirk_(NPC)}}
{{NPCLootTable/row|Bert|Sells|Weapons}}
{{NPCLootTable/row|Bert|Sells|Tools}}
|}
|}


{{doc/end}}
{{doc/end}}
[[Category:Template_documentation]]
[[Category:Template_documentation]]

Latest revision as of 21:52, 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

Bert as example

Buys

  • With "head|Bert|Buys", "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
{{{2}}})
  • With "head" & "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

  • With "head", "Sells" & "end"
Category Types


Weapons
Weapons icon.png
Training Crossbow
Training Crossbow.png

{{{2}}})
  • With "head|Bert|Sells" & "SellsX3"
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

  • With "head" & "SellsX2"
Category Types


Weapons
Weapons icon.png
Training Crossbow
Training Crossbow.png


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