Difference between revisions of "Template:NPC training row/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Sample output)
m
 
(10 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
==Syntax==
 
==Syntax==
 
<pre>
 
<pre>
{{vendor item row
+
{{NPC training row
  | item =
+
  | ability=
 +
| recipe=
 +
| skilllevel=
 
  | cost =
 
  | cost =
 
  | favor =
 
  | favor =
Line 12: Line 14:
  
 
== Parameters ==
 
== Parameters ==
; item
+
; ability
: The item name
+
: 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
 
; cost
 
: Optional. The numerical cost eg. "15".  If not provided, an empty column is shown.
 
: Optional. The numerical cost eg. "15".  If not provided, an empty column is shown.
 
; favor
 
; favor
 
: Optional. The favor level at which the item is available.  If not provided, an empty column is shown.
 
: Optional. The favor level at which the item is available.  If not provided, an empty column is shown.
; Icon
 
: Optional. If the item icon does not match that for the item name, an alternate item name may be used here.  The icon for that alternate item name will be shown.  Used for 'Learn' and 'Unlock' type items.  Note: This argument is intentionally capitalized to indicate that {{tlc|Item icon}} is being used instead of older {{tlc|Icon}}, which used lowercase argument.
 
 
 
== Sample output ==
 
== Sample output ==
 
<pre>
 
<pre>
{{training table first}}
+
{|
 
 
 
{{NPC training row
 
{{NPC training row
  | ability= Sword Slash
+
  | ability= Sword Slash 2
 
  | skilllevel= 12
 
  | skilllevel= 12
 
  | cost = 980
 
  | cost = 980
 
  | favor = Neutral
 
  | 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
 +
}}
 
|}
 
|}
 
</pre>
 
</pre>
{{training table first}}
+
{|
 
{{NPC training row
 
{{NPC training row
 
  | ability= Sword Slash 2
 
  | ability= Sword Slash 2
Line 42: Line 56:
 
}}
 
}}
 
{{NPC training row
 
{{NPC training row
  | ability=Ring of Fire
+
  |ability=Spore Bomb 3
  | skilllevel= 33
+
|recipe=[[Deadly Spore Bomb|Deadly Spore Bombs]]
  | cost = 1000
+
|skilllevel= 25
  | favor = Neutral
+
|cost=2934
 +
|favor=Comfortable
 +
}}
 +
{{NPC training row
 +
|recipe=Coral Mushroom Smoothie
 +
  |skilllevel=40
 +
  |cost=3070
 +
  |favor=Neutral
 
}}
 
}}
 
|}
 
|}
  
 
==Examples==
 
==Examples==
See [[Braigon]] Sells and Training for examples.
+
See [[Mu]] and [[Jaw]] for complex example of mixed ability/recipe combinations.
  
 
== Note ==
 
== Note ==
: Uses [[Template:Item icon]], which supercedes the older [[Template:Icon]].
+
: If an NPC offers an unlock, use [[Template:NPC training unlock row]]
 +
 
 +
: Uses [[Template:Recipe]] and [[Template:Ability icon]].
 
<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>

Latest revision as of 23:31, 2 April 2021

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
}}
|}
icon_2121.png Sword Slash 2  12    980 councils   [Neutral] 
icon_2134.png Spore Bomb 3  and
Error: Item not foundRecipe: Deadly Spore Bombs
 25    2934 councils   [Comfortable] 
Error: Item not foundRecipe: icon_5389.png 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:Recipe and Template:Ability icon.