Difference between revisions of "Template:NPC training row"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m (Updated template to display a recipe scroll icon alongside recipe input.)
Line 2: Line 2:
 
|{{#if: {{{recipe|}}}
 
|{{#if: {{{recipe|}}}
 
   |{{#if: {{{ability|}}}
 
   |{{#if: {{{ability|}}}
       |<span class="extimage32px">{{Ability icon|{{{ability}}}}}</span> {{{ability}}} &nbsp;and<br>Recipe: {{{recipe}}}
+
       |<span class="extimage32px">{{Ability icon|{{{ability}}}}}</span> {{{ability}}} &nbsp;and<br><span class="extimage32px">{{Item icon|scroll}} </span>Recipe: {{{recipe}}}
       |Recipe: {{{recipe}}}  
+
       |<span class="extimage32px">{{Item icon|scroll}} </span>Recipe: {{{recipe}}}  
 
       }}
 
       }}
 
   |<span class="extimage32px">{{Ability icon|{{{ability}}}}}</span> {{{ability}}}
 
   |<span class="extimage32px">{{Ability icon|{{{ability}}}}}</span> {{{ability}}}

Revision as of 08:03, 26 October 2020

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

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.
The above text is transcluded from Template:NPC training row/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:NPC training row/doc. (View all subpages of this page.)