Difference between revisions of "Template:NPC infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
Line 18: Line 18:
 
{{pipe}}-
 
{{pipe}}-
 
! style="background:#f5e0c7; width:75px;"  {{pipe}} Skill Trainer:
 
! style="background:#f5e0c7; width:75px;"  {{pipe}} Skill Trainer:
{{pipe}}- ! style="background:#f5e0c7; width:175px;" {{pipe}} {{{skilltrainer}}}
+
{{pipe}} {{{skilltrainer}}}
 
}}
 
}}
 
{{ #if:{{{vendor|}}} |
 
{{ #if:{{{vendor|}}} |
Line 79: Line 79:
 
|zone            = [[Serbule]]
 
|zone            = [[Serbule]]
 
|location        = near [[Serbule Keep]]'s well
 
|location        = near [[Serbule Keep]]'s well
|friendly_animals =  
+
|friendly_animals = only Cows
 
|skilltrainer    = Fire
 
|skilltrainer    = Fire
 
|vendor          = Vendor
 
|vendor          = Vendor

Revision as of 16:37, 22 October 2015

NPC infobox
File:NPC infobox.jpg
Zone: -
Location: -




Syntax

{{NPC infobox
|title            =
|image            =
|caption          =
|zone             =
|location         =
|friendly_animals = 
|skilltrainer     =
|vendor           =
}}

Parameters

Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the "< br>" function

name
Optional. Defaults to article name.
image
Optional. Defaults to a .jpg image of the article's name. If specified, use [[Image:Creature name.jpg|200px|]]
caption
Optional. Usually the description above the NPCs head.
zone
Optional. The zone where the NPC can be found.
location
Optional. Specifically where the NPC is located in a Zone. See below for example use.
friendly_animals
Optional. Animals that the NPC will talk to, if any.
skilltrainer
Optional. Use to show if NPC can train a player in a skill. See below for example use.
vendor
Optional. Use to show that a NPC is Vendor.

Description

Create an attractive "info card" for NPCs. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all creatures. Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page. This template will have more parameters, but is awaiting Wiki Extensions.

Automatic categories
type - shows the race of the NPC
vendor - will display if players can buy/sell from NPC
skill trainer - will display if NPC is a skill trainer


Examples

{{NPC infobox
|title            = Velkort
|image            = [[File:Velkort.jpg]]
|caption          = Velkort and the Sentient Flame
|zone             = [[Serbule]]
|location         = near [[Serbule Keep]]'s well
|friendly_animals = only Cows
|skilltrainer     = Fire
|vendor           = Vendor
}}
Button Blue.png
Velkort
Velkort.jpg
Velkort and the Sentient Flame
Region:
Location:
near Serbule Keep's well
Skill Trainer:
Fire
Vendor