Difference between revisions of "Template:NPC infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
Line 4: Line 4:
 
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}250px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div>  
 
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}250px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div>  
 
|- valign="top"
 
|- valign="top"
! style="background:#eee; width:75px;font-weight:normal;" | Zone:
+
! style="background:#eee; width:100px;" | Zone:
 
| {{{zone|-}}}
 
| {{{zone|-}}}
 
|-
 
|-
! style="background:#eee; width:75px;font-weight:normal;" | Location:
+
! style="background:#eee; width:100px;"  align="center" | Location:
 
| {{{location|-}}}
 
| {{{location|-}}}
 
|-
 
|-
 
{{ #if:{{{beastspeak|}}} |
 
{{ #if:{{{beastspeak|}}} |
 
{{pipe}}-
 
{{pipe}}-
! style="background:#f4e6d4; width:75px;" {{pipe}}  Beast Speak:
+
! style="background:#f4e6d4; width:100px;"  align="center" {{pipe}}  Beast Speak:
 
{{pipe}} {{{beastspeak|-}}}
 
{{pipe}} {{{beastspeak|-}}}
 
}}             
 
}}             
 
{{ #if:{{{skilltrainer|}}} |
 
{{ #if:{{{skilltrainer|}}} |
 
{{pipe}}-
 
{{pipe}}-
! style="background:#f5e0c7; width:75px;"  {{pipe}} Skill Trainer:
+
! style="background:#f5e0c7; width:100px;"  align="center" {{pipe}} Skill Trainer:
 
{{pipe}} {{{skilltrainer}}}
 
{{pipe}} {{{skilltrainer}}}
 
}}
 
}}
Line 39: Line 39:
 
|zone            =
 
|zone            =
 
|location        =
 
|location        =
|friendly_animals =  
+
|beastspeak =  
 
|skilltrainer    =
 
|skilltrainer    =
 
|vendor          =
 
|vendor          =
Line 56: Line 56:
 
;location  
 
;location  
 
:Optional. Specifically where the NPC is located in a Zone. See below for example use.
 
:Optional. Specifically where the NPC is located in a Zone. See below for example use.
;friendly_animals
+
;beastspeak
 
:Optional. Animals that the NPC will talk to, if any.
 
:Optional. Animals that the NPC will talk to, if any.
 
;skilltrainer
 
;skilltrainer
Line 62: Line 62:
 
;vendor
 
;vendor
 
:Optional. Use to show that a NPC is Vendor.
 
:Optional. Use to show that a NPC is Vendor.
 +
 
==Description==
 
==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.
 
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.
Line 69: Line 70:
 
: vendor - will display if players can buy/sell from NPC
 
: vendor - will display if players can buy/sell from NPC
 
: skill trainer - will display if NPC is a skill trainer
 
: skill trainer - will display if NPC is a skill trainer
 
+
===Image===
 +
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name)
 +
If an image already exists which name does not match the article name, or in a different format (png), specify it.
 +
If the image is to large/small you will have to specify that you want the image 200px.
  
 
==Examples==
 
==Examples==
Line 75: Line 79:
 
{{NPC infobox
 
{{NPC infobox
 
|title            = Velkort
 
|title            = Velkort
|image            = [[File:Velkort.jpg]]
+
|image            = [[File:Velkort.jpg|200]]
 
|caption          = Velkort and the Sentient Flame
 
|caption          = Velkort and the Sentient Flame
 
|zone            = [[Serbule]]
 
|zone            = [[Serbule]]
 
|location        = near [[Serbule Keep]]'s well
 
|location        = near [[Serbule Keep]]'s well
|friendly_animals = only Cows
+
|beastspeak      =  
|skilltrainer    = Fire
+
|skilltrainer    = Fire, Archery
 
|vendor          = Vendor
 
|vendor          = Vendor
 
}}
 
}}
Line 90: Line 94:
 
|zone            = [[Serbule]]
 
|zone            = [[Serbule]]
 
|location        = near [[Serbule Keep]]'s well
 
|location        = near [[Serbule Keep]]'s well
|friendly_animals =  
+
|beastspeak      =  
|skilltrainer    = Fire
+
|skilltrainer    = Fire, Archery
 
|vendor          = Vendor
 
|vendor          = Vendor
 
}}
 
}}
  
 +
<pre>
 +
{{NPC infobox
 +
|title            = Mushroom Jack
 +
|image            = [[File:Mushroom_Jack.jpg|200px]]
 +
|caption          = He smells kind of funny.
 +
|zone            = [[Serbule]]
 +
|location        = In his shack.
 +
|skilltrainer    =
 +
|vendor          = Vendor
 +
|beastspeak      = Cows, Pigs, Mushrooms.
 +
}}
  
 +
</pre>
 +
{{NPC infobox
 +
|title            = Mushroom Jack
 +
|image            = [[File:Mushroom_Jack.jpg|200px]]
 +
|caption          = He smells kind of funny.
 +
|zone            = [[Serbule]]
 +
|location        = In his shack
 +
|skilltrainer    =
 +
|vendor          = Vendor
 +
|beastspeak      = Cows, Pigs, Mushrooms.
 +
}}
 
[[Category:Formatting templates|NPC infobox]]
 
[[Category:Formatting templates|NPC infobox]]
 
</noinclude>
 
</noinclude>

Revision as of 17:02, 22 October 2015

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




Syntax

{{NPC infobox
|title            =
|image            =
|caption          =
|zone             =
|location         =
|beastspeak = 
|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.
beastspeak
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

Image

The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) If an image already exists which name does not match the article name, or in a different format (png), specify it. If the image is to large/small you will have to specify that you want the image 200px.

Examples

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


{{NPC infobox
|title            = Mushroom Jack
|image            = [[File:Mushroom_Jack.jpg|200px]]
|caption          = He smells kind of funny.
|zone             = [[Serbule]]
|location         = In his shack.
|skilltrainer     = 
|vendor           = Vendor
|beastspeak       = Cows, Pigs, Mushrooms.
}}

Button Blue.png
Mushroom Jack
Mushroom Jack.jpg
He smells kind of funny.
Region:
Location:
In his shack
Beast Speak:
Cows, Pigs, Mushrooms.
Vendor