Template:NPC training row/doc: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
I... spent an hour solving a problem that didn't need to be solved, because I already did it in Jan.
Alleryn (talk | contribs)
for some reason this page was alphabetizing itself under the v's in the category page. I see no reason for this
Line 79: Line 79:
<includeonly>
<includeonly>
<!-- Categories/interwikis for the template itself -->
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates|vendor item row]]
[[Category:Formatting templates]]
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Categories/interwikis for this documentation itself -->
<!-- Categories/interwikis for this documentation itself -->
[[Category:Template documentation|{{PAGENAME}}]]
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 18:14, 20 January 2020

Description

Use this template to create a listing in the training table of an NPC.

Syntax

{{NPC training row
 | ability= 
 | recipe=
 | skilllevel=
 | cost =
 | favor =
}}

Parameters

ability
Semi-optional. The ability name. If ability is omitted only a recipe will be displayed. At minimum ability or recipe must be defined.
recipe
Semi-optional. The recipe name (sans "Recipe:"). If recipe is omitted, only an ability will be displayed. If both a recipe and ability are provided, both will display within the same row (with "and"). Recipes can be provided as wiki links to their item if the author desires, but care should be taken. Trainer taught recipes do not have items on the wiki, and recipe/item name mismatches can occur. At minimum ability or recipe must be defined.
skilllevel
Optional. The required skill level to train the skill. If not provided, an empty column is shown.
cost
Optional. The numerical cost eg. "15". If not provided, an empty column is shown.
favor
Optional. The favor level at which the item is available. If not provided, an empty column is shown.

Sample output

{|
{{NPC training row
 | ability= Sword Slash 2
 | skilllevel= 12
 | cost = 980
 | favor = Neutral
}}
{{NPC training row
 |ability=Spore Bomb 3
 |recipe=Deadly Spore Bombs
 |skilllevel= 25
 |cost=2934
 |favor=Comfortable
}}
{{NPC training row
 |recipe=Coral Mushroom Smoothie
 |skilllevel=40
 |cost=3070
 |favor=Neutral
}}
|}
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_2121.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Ability not found }} Sword Slash 2  12    980 councils   [Neutral] 
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_2134.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Ability not found }} Spore Bomb 3  and
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_4003.png
http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }}Recipe: Deadly Spore Bombs  25    2934 councils   [Comfortable] 
{{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_4003.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }}Recipe: {{ #replace: http://cdn.projectgorgon.com/v456/icons/icon_5389.png http://cdn.projectgorgon.com/v456/icons/icon_.png Error: Item not found }} [[{{#replace:Coral Mushroom Smoothie|#|}}|Coral Mushroom Smoothie]]  40    3070 councils   [Neutral] 

Examples

See Mu and Jaw for complex example of mixed ability/recipe combinations.

Note

If an NPC offers an unlock, use Template:NPC training unlock row
Uses Template:Item icon, which supercedes the older Template:Icon.