User:Laurlybot/npc bot/template
From WoWWiki
Main template
<patTemplate:tmpl name="page" >
{{Screenshot||{LOCATION}}}
{{npcbox <patTemplate:tmpl name="npc_box" type="condition" conditionvar="key">
<patTemplate:sub condition="name">
| name = {NAME} </patTemplate:sub>
<patTemplate:sub condition="title">
| title = {TITLE} </patTemplate:sub>
<patTemplate:sub condition="wealth">
| money = {WEALTH} </patTemplate:sub>
<patTemplate:sub condition="level">
| level = {LEVEL} </patTemplate:sub>
<patTemplate:sub condition="classification">
| type = {CLASSIFICATION} </patTemplate:sub>
<patTemplate:sub condition="occupation">
| occupation = {OCCUPATION} </patTemplate:sub>
<patTemplate:sub condition="sidefaction">
| faction = {SIDEFACTION} </patTemplate:sub>
<patTemplate:sub condition="faction">
| repfaction = {FACTION} <!-- Faction group associated with --> </patTemplate:sub>
<patTemplate:sub condition="health">
| health = {HEALTH} </patTemplate:sub>
<patTemplate:sub condition="mana">
| mana = {MANA} </patTemplate:sub>
<patTemplate:sub condition="react">
| aggro = {REACT} </patTemplate:sub>
<patTemplate:sub condition="react">
| aggro = {REACT} </patTemplate:sub>
<patTemplate:sub condition="race">
| race = {RACE} </patTemplate:sub>
<patTemplate:sub condition="sex">
| gender = {SEX} </patTemplate:sub>
<patTemplate:sub condition="creature">
| creature = {CREATURE} </patTemplate:sub>
<patTemplate:sub condition="location">
| location = {LOCATION} </patTemplate:sub>
<patTemplate:sub condition="tameable">
|pet = {TAMEABLE} |learns = <!-- Types of moves the pet can learn eventually, but doesn't necessarily start with -->
|diet = <!-- Types of food the pet can eat -->
|skills = <!-- Moves the pet knows when tamed -->
|balance = <!-- Type of pet. For example, a boar pet is "all around", a turtle is "defensive" -->
|hp = <!-- The pet's HP modification. High for defensive pets. -->
|armor = <!-- the pet's armor modification. High for defensive pets -->
|dps = <!-- the pet's DPS modification. High for offensive pets -->
| gender = <!-- Bot unable to find gender -->
</patTemplate:sub>
</patTemplate:tmpl>
}}
{FOUND}
<patTemplate:tmpl name="zone" >
== Locations ==
{{Zone Map|zone={ZONE}|notes=
<patTemplate:tmpl name="zone_note" >
{{Zone Map Note|{X}|{Y}|Blip|{NAME}}}
</patTemplate:tmpl>
}}
</patTemplate:tmpl>
{DROPS}
<patTemplate:tmpl name="caught_sells_info" type="condition" conditionvar="caught_sells_info">
<patTemplate:sub condition="yes" whitespace="trim">
==Vendor information==
</patTemplate:sub>
</patTemplate:tmpl>
<patTemplate:tmpl name="caught_drops_info" type="condition" conditionvar="caught_drops_info">
<patTemplate:sub condition="yes" whitespace="trim">
==Drop information==
</patTemplate:sub>
</patTemplate:tmpl>
<patTemplate:tmpl name="caught_skill_info" type="condition" conditionvar="caught_skill_info">
<patTemplate:sub condition="yes" whitespace="trim">
==Vendor information==
</patTemplate:sub>
</patTemplate:tmpl>
<patTemplate:tmpl name="caught_quest_info" type="condition" conditionvar="caught_sells_info">
<patTemplate:sub condition="yes" whitespace="trim">
==Quests==
<!--List of quests that this creature is involved in; use {{queststart}}, {{questfinish}}, {{queststartrrq}}, or {{questfinishrrq}} as appropriate-->
* {{queststartfinish}} {{questlong|Horde|5|Completing the Delivery}}
* {{questfinish}} {{questlong|Horde|5|Package Recovery}}
</patTemplate:sub>
</patTemplate:tmpl>
== External links ==
{{elinks-NPC|{ID}}}
{CATEGORIES}
[[Category:{CREATURE}]]
</patTemplate:tmpl>
Tempate dealing with drops, skins, herbs, mines, sells, quests, .... you get the idea.
<patTemplate:tmpl name="page">
<patTemplate:tmpl name="data">
<patTemplate:tmpl name="data_type" type="condition" conditionvar="key">
<patTemplate:sub condition="abilities">
== Abilities ==
{| class="darktable sortable"
|- style="text-align: left;"
! [[Image:BattleMasterGossipIcon.png|20px]]Item
! Level
! School
<patTemplate:tmpl name="abilities" >
|-
| [[Image:{IMAGE}.png|20px|{NAME}]] {NAME} || {LEVEL} || [[{SCHOOL}]]
</patTemplate:tmpl>
|}
</patTemplate:sub>
<patTemplate:sub condition="objective_of">
== Quests ==
{| class="darktable sortable"
|- style="text-align: left;"
! [[Image:BattleMasterGossipIcon.png|20px]]Name
! Level
! Side
! Rewards
! Type
<patTemplate:tmpl name="objective_of" >
|-
| [[Quest:{NAME}]] || {LEVEL} || [[{SIDE}]] || {REWARDS} || {TYPE}
</patTemplate:tmpl>
|}
</patTemplate:sub>
<patTemplate:sub condition="sells">
<!-- Bot Sells Start -->
== Sells ==
{| class="darktable sortable"
|- style="text-align: left;"
! [[Image:BattleMasterGossipIcon.png|20px]]Item
! Level
! Source
! Slot
! Cost
<patTemplate:tmpl name="sells" >
|-
| [[Image:{IMAGE}.png|20px|{NAME}]] {{loot|{QUALITY}|{NAME}}} || {LEVEL} || [[{SOURCE}]] || {SLOT} || {COST}
</patTemplate:tmpl>
|}
<!-- Bot Sells End -->
</patTemplate:sub>
<patTemplate:sub condition="drops">
<!-- Bot Drops Start -->
== Drops ==
{| class="darktable sortable"
|- style="text-align: left;"
! [[Image:BattleMasterGossipIcon.png|20px]]Item
! Level
! Source
! Slot
! Drop%
<patTemplate:tmpl name="drops" >
|-
|[[Image:{IMAGE}.png|20px|{NAME}]] {{loot|{QUALITY}|{NAME}}} || {LEVEL} || [[{SOURCE}]] || {SLOT} || {DROP_PERCENT}
</patTemplate:tmpl>
|}
{EPIC}% Chance of a [[epic]] drop.<br />
{RARE}% Chance of a [[rare]] drop.<br />
{UNCOMMON}% Chance of an [[Uncommon]] drop.<br />
{COMMON}% Chance of a [[common]] drop.<br />
{POOR}% Chance of a [[poor]] drop.<br />
Note: % drop chance was correct at the time the page was generated/created.
<!-- Bot Drops End -->
</patTemplate:sub>
<patTemplate:sub condition="skinning">
<!-- Bot Skinning Start -->
== Skinning ==
{| class="darktable"
|- style="text-align: left;"
! [[Image:INV_Misc_Pelt Wolf 01.png|20px]]Item
! Level
! Skill
! Slot
! Drop%
<patTemplate:tmpl name="skinning" >
|-
| [[Image:{IMAGE}.png|20px|{NAME}]] {{loot|{QUALITY}|{NAME}}} || {LEVEL} || Skinning || {SLOT} || {DROP_PERCENT}
</patTemplate:tmpl>
|}
<!-- Bot Skinning End -->
</patTemplate:sub>
<patTemplate:sub condition="pick_pocketing">
<!-- Bot Pick Start -->
== Pick pocket ==
{| class="darktable"
|- style="text-align: left;"
! Item
! Level
! Skill
! Slot
! Drop%
<patTemplate:tmpl name="pick_pocketing" >
|-
| [[Image:{IMAGE}.png|20px|{NAME}]] {{loot|{QUALITY}|{NAME}}} || {LEVEL} || Pick Pocket || {SLOT} || {DROP_PERCENT}
</patTemplate:tmpl>
|}
<!-- Bot Pick End -->
</patTemplate:sub>
<patTemplate:sub condition="mining">
<!-- Bot Mining Start -->
== Mining ==
{| class="darktable"
|- style="text-align: left;"
! Item
! Level
! Skill
! Slot
! Drop%
<patTemplate:tmpl name="mining" >
|-
| [[Image:{IMAGE}.png|20px|{NAME}]] {{loot|{QUALITY}|{NAME}}} || {LEVEL} || Pick Pocket || {SLOT} || {DROP_PERCENT}
</patTemplate:tmpl>
|}
<!-- Bot Pick End -->
</patTemplate:sub>
</patTemplate:tmpl>
</patTemplate:tmpl>
</patTemplate:tmpl>