Difference between revisions of "Template:NPC infobox"
From Project: Gorgon Wiki
m |
m |
||
Line 2: | Line 2: | ||
! colspan="2" style="font-size:17px; text-align:center; background-color:#44a6d8;color:#ffffff;" | {{{name|{{PAGENAME}}}}} | ! colspan="2" style="font-size:17px; text-align:center; background-color:#44a6d8;color:#ffffff;" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
− | | style="width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}200px{{pipe}}]]}}} | + | | style="width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}200px{{pipe}}]]}}} {{{caption|}}} |
|- valign="top" | |- valign="top" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
! style="background:#eee; width:75px;font-weight:normal;" | Zone: | ! style="background:#eee; width:75px;font-weight:normal;" | Zone: | ||
| {{{zone|-}}} | | {{{zone|-}}} | ||
Line 23: | Line 18: | ||
{{pipe}}- | {{pipe}}- | ||
! style="background:#f5e0c7; width:75px;" {{pipe}} Skill Trainer: | ! style="background:#f5e0c7; width:75px;" {{pipe}} Skill Trainer: | ||
− | {{pipe}} {{{skilltrainer}}} | + | {{pipe}} {{pipe}}- ! style="background:#f5e0c7;" {{{skilltrainer}}} |
}} | }} | ||
{{ #if:{{{vendor|}}} | | {{ #if:{{{vendor|}}} | | ||
{{pipe}}- | {{pipe}}- | ||
− | ! style="background:#f2cda0; width:250px;" colspan="2" align="center" | + | ! style="background:#f2cda0; width:250px;" colspan="2" align="center" |
{{pipe}} {{{Vendor}}} | {{pipe}} {{{Vendor}}} | ||
}} | }} |
Revision as of 16:12, 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|200px]] |caption = Velkort and the Sentient Flame |zone = [[Serbule]] |location = near [[Serbule Keep]]'s well |friendly_animals = |skilltrainer = Fire |vendor = Vendor }}
Velkort
| |
---|---|
Velkort and the Sentient Flame
| |
Region: | [[Serbule]]
|
Location: | near Serbule Keep's well
|
Skill Trainer: | Fire
|
Vendor |