Changes

Jump to: navigation, search

Template:NPC infobox

2,215 bytes added, 12:50, 21 October 2015
NPC infobox template (might be broken but its a start)
{{NPC infobox
| title = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{PAGENAME|}}}}}}|size={{{image_size|}}}|sizedefault=300px|alt={{{image_alt|}}}}}

| label1 = Caption
| data1 = {{{caption|}}}
| label2 = Zone
| data2 = {{{zone|}}}
| label3 = Building
| data3 = {{{building|}}}
| label4 = Friendly to Animals
| data4 = {{{friendly_animals|}}}
| below = {{{footnotes|}}}

<!-- automatic categories -->
{{ #if: {{{type|}}} | [[Category:{{{type}}}]] }}
{{ #if: {{{Vendor|}}} | [[Category:{{{Vendor}}}]] }}
{{ #if: {{{Skill Trainer|}}} | [[Category:{{{Skill Trainer}}}]] }}
}}<noinclude>
__NOTOC__
==Syntax==
<pre>
{{NPC infobox
|title =
|image =
|caption =
|zone =
|building =
|friendly_animals =
|footnotes =
}}
</pre>
==Parameters==

; name
: Optional. Defaults to article name.
; image
: Optional. Defaults to a .jpg image of the article's name. If specified, use <code><nowiki>[[Image:Creature name.jpg|300px|]]</nowiki></code>
; 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.
;building
:Optional. Specifically where the NPC is located in a Zone. (i.e. [[Hogans Keep]] in [[Eltable]])
;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





[[Category:Formatting templates|NPC infobox]]
</noinclude>
547
edits

Navigation menu