Difference between revisions of "Template:NPC infobox"
From Project: Gorgon Wiki
(NPC infobox template (might be broken but its a start)) |
(should work now, will need to test on page to see if auto categories work though) |
||
Line 1: | Line 1: | ||
− | { | + | {| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5" |
− | | | + | ! 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}}.png{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">{{PAGENAME}} (click for larger size)</div> | |
− | | | + | |- valign="top" |
− | | | + | ! style="width:75px;font-weight:normal;" | Caption |
− | | | + | | {{{connects|-}}} |
− | | | + | |- |
− | | | + | ! style="width:75px;font-weight:normal;" | Zone |
− | | | + | | {{{zone|-}}} |
− | | | + | |- |
− | | | + | ! style="width:75px;font-weight:normal;" | Location |
− | | | + | | {{{location|-}}} |
− | + | |- | |
+ | ! style="width:75px;font-weight:normal;" | Speaks to | ||
+ | | {{{friendly_animals|-}}} | ||
+ | |- | ||
+ | | style="width:75px;font-weight:normal;" | Footnotes | ||
+ | | {{{footnotes|-}}} | ||
+ | |} | ||
<!-- automatic categories --> | <!-- automatic categories --> | ||
{{ #if: {{{type|}}} | [[Category:{{{type}}}]] }} | {{ #if: {{{type|}}} | [[Category:{{{type}}}]] }} | ||
{{ #if: {{{Vendor|}}} | [[Category:{{{Vendor}}}]] }} | {{ #if: {{{Vendor|}}} | [[Category:{{{Vendor}}}]] }} | ||
− | {{ #if: {{{Skill Trainer|}}} | [[Category:{{{Skill Trainer}}}]] }} | + | {{ #if: {{{Skill Trainer|}}} | [[Category:{{{Skill Trainer}}}]] }} <!-- end categories --> |
− | + | <noinclude> | |
+ | {{clear}}__NOTOC__ | ||
__NOTOC__ | __NOTOC__ | ||
==Syntax== | ==Syntax== | ||
Line 26: | Line 33: | ||
|caption = | |caption = | ||
|zone = | |zone = | ||
− | | | + | |location = |
|friendly_animals = | |friendly_animals = | ||
|footnotes = | |footnotes = | ||
Line 43: | Line 50: | ||
;zone | ;zone | ||
:Optional. The zone where the NPC can be found. | :Optional. The zone where the NPC can be found. | ||
− | ; | + | ;location |
− | :Optional. Specifically where the NPC is located in a Zone. (i.e. [[ | + | :Optional. Specifically where the NPC is located in a Zone. (i.e. [[Hogan's Keep]] in [[Eltibule]]) |
;friendly_animals | ;friendly_animals | ||
:Optional. Animals that the NPC will talk to, if any. | :Optional. Animals that the NPC will talk to, if any. |
Revision as of 12:34, 21 October 2015
NPC infobox | |
---|---|
File:NPC infobox.png NPC infobox (click for larger size)
| |
Caption | - |
Zone | - |
Location | - |
Speaks to | - |
Footnotes | - |
Syntax
{{NPC infobox |title = |image = |caption = |zone = |location = |friendly_animals = |footnotes = }}
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.
- footnotes
- Optional. Other notes about the NPC.
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.
- 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