Changes

Jump to: navigation, search

Template:NPC infobox

354 bytes added, 17:01, 22 October 2015
only forced or optional categories now
| style="width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}200px{{pipe}}]]}}}
|- valign="top"
 ! style="background:#eee; width:75px250px;colspan="2" align="center" font-weight:normal;" | Caption| {{{caption|-}}} 
|-
! style="background:#eee; width:75px;font-weight:normal;" | Zone:
| {{{zone|-}}}
|-
! style="background:#eee; width:75px;font-weight:normal;" | Location:
| {{{location|-}}}
|-
! style="background:{{ #eee; width:75px;font-weightif:normal;" | Beast Speak| {{{friendly_animalsbeastspeak|-}}} <!-- 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|-pipe}}}]] |- valign="top"! style="background:#eeef4e6d4; width:75px;" {{pipe}} | [[Beast Speak:Category:Creatures by Type|Anatomy]]| [[{{pipe}} {{{typebeastspeak|-}}}]] |-valign="top"}} {{ #if:{{{Category:Vendorskilltrainer|}}} | {{pipe}}- ! style="background:#f5e0c7; width:250px;" colspan="2" align="center" [[{{pipe}} Skill Trainer:Category:Vendor| Vendor]] {{pipe}} {{{skilltrainer}}}|-valign="top"}}{{ #if:{{{Category:Skill Trainervendor|}}} | {{pipe}}- ! style="background:#f5e0c7f2cda0; width:250px;" colspan="2" align="center" [[:Category:Skill Trainer| Skill Trainer]] {{pipe}} {{pipe}} {{{Vendor}}}    end of dynamic rows-->}}
|}
<!-- automatic categories -->
{{ #if: {{{type|}}} | [[Category:{{{type}}}]] }}
<noinclude>
|location =
|friendly_animals =
|skilltrainer =
|vendor =
}}
</pre>
==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 <code><nowiki>[[Image:Creature name.jpg|300px200px|]]</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.
;location
:Optional. Specifically where the NPC is located in a Zone. (iSee below for example use.e. [[Hogan's Keep]] in [[Eltibule]])
;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.
==Examples==<pre>{{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}}</pre>{{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}}
[[Category:Formatting templates|NPC infobox]]
</noinclude>
547
edits

Navigation menu