Difference between revisions of "Template:NPC infobox"
From Project: Gorgon Wiki
m |
(the dynamic/automatic added rows don't work and i do not know how to make them work, they are commented out so that the template is fine to be applied to NPC pages, if someone can fix the spaghetti code of WikiMedia and make it work, feel free to do so) |
||
Line 3: | Line 3: | ||
|- | |- | ||
| 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}}]]}}} | ||
− | |||
− | |||
− | |||
|- valign="top" | |- valign="top" | ||
! style="background:#eee; width:75px;font-weight:normal;" | Caption | ! style="background:#eee; width:75px;font-weight:normal;" | Caption | ||
Line 17: | Line 14: | ||
|- | |- | ||
! style="background:#eee; width:75px;font-weight:normal;" | Beast Speak | ! style="background:#eee; width:75px;font-weight:normal;" | Beast Speak | ||
− | | {{{friendly_animals|-}}} | + | | {{{friendly_animals|-}}} <!-- start Dynamic NPC Race, Vendor, and SKill Trainer row Notifications, broken for now |
+ | |||
+ | |- valign="top" | ||
+ | ! style="background:#eee;width:100px;" | [[:Category:Creatures by Type|Anatomy]] | ||
+ | | [[{{{type|-}}}]] | ||
|- valign="top" | |- valign="top" | ||
! style="background:#eee; width:75px;" | [[:Category:Creatures by Type|Anatomy]] | ! style="background:#eee; width:75px;" | [[:Category:Creatures by Type|Anatomy]] | ||
− | | [[{{{type|-}}}]] | + | | [[{{{type|-}}}]] |
− | |||
− | |||
− | |||
|-valign="top" | |-valign="top" | ||
{{ #if:{{{Category:Vendor|}}} | {{pipe}}- ! style="background:#f5e0c7; width:250px;" colspan="2" align="center" [[:Category:Vendor| Vendor]] {{pipe}} }} | {{ #if:{{{Category:Vendor|}}} | {{pipe}}- ! style="background:#f5e0c7; width:250px;" colspan="2" align="center" [[:Category:Vendor| Vendor]] {{pipe}} }} | ||
Line 31: | Line 29: | ||
− | --> | + | end of dynamic rows--> |
|} | |} | ||
<!-- automatic categories --> | <!-- automatic categories --> | ||
Line 70: | Line 68: | ||
==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. | ||
− | 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. | + | 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. <span style="color:#484">This template will have more parameters, but is awaiting Wiki Extensions.</span> |
;Automatic categories | ;Automatic categories | ||
: type - shows the race of the NPC | : type - shows the race of the NPC |
Revision as of 00:54, 22 October 2015
NPC infobox | |
---|---|
File:NPC infobox.jpg | |
Caption | - |
Zone | - |
Location | - |
Beast Speak | - |
Syntax
{{NPC infobox |title = |image = |caption = |zone = |location = |friendly_animals = }}
Parameters
- 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|300px|]]
- type
- MUST match an existing Category:Creatures by Type
- 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. (i.e. Hogan's Keep in Eltibule)
- friendly_animals
- Optional. Animals that the NPC will talk to, if any.
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