Difference between revisions of "Template:NPC infobox"
m |
(OK !! all finished and ready to be slapped onto NPC pages now) |
||
Line 4: | Line 4: | ||
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}250px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div> | | style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}250px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div> | ||
|- valign="top" | |- valign="top" | ||
− | ! style="background:#eee; width:100px;" | Zone: | + | ! style="background:#eee; width:100px;" align="center" | Zone: |
| {{{zone|-}}} | | {{{zone|-}}} | ||
|- | |- | ||
Line 53: | Line 53: | ||
:Optional. Usually the description above the NPCs head. | :Optional. Usually the description above the NPCs head. | ||
;zone | ;zone | ||
− | : | + | :Required, will remain blank on page. The zone where the NPC can be found. |
;location | ;location | ||
− | : | + | :Required, will remain blank on page. Specifically where the NPC is located in a Zone. See below for example use. |
;beastspeak | ;beastspeak | ||
:Optional. Animals that the NPC will talk to, if any. | :Optional. Animals that the NPC will talk to, if any. | ||
Line 73: | Line 73: | ||
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) | The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) | ||
If an image already exists which name does not match the article name, or in a different format (png), specify it. | If an image already exists which name does not match the article name, or in a different format (png), specify it. | ||
− | If the image is | + | If the image is larger/smaller the box will expand/shrink to fit it, have to specify what size you want it to appear(see below) keep in mind that the text will only be 250px in lengh. |
==Examples== | ==Examples== | ||
+ | Don't mind that the Titles are wrong, the title takes the name of the page it is created on. | ||
+ | |||
+ | Here you can see examples of what Velkort's, Mushroom Jack's, and Sanja's templates '''could''' look like, notice that while velkort's image is clipped to 250px Mushroom Jack and Sanja are not. | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
|title = Velkort | |title = Velkort | ||
− | |image = [[File:Velkort.jpg| | + | |image = [[File:Velkort.jpg|250px]] |
|caption = Velkort and the Sentient Flame | |caption = Velkort and the Sentient Flame | ||
|zone = [[Serbule]] | |zone = [[Serbule]] | ||
Line 90: | Line 93: | ||
{{NPC infobox | {{NPC infobox | ||
|title = Velkort | |title = Velkort | ||
− | |image = [[File:Velkort.jpg| | + | |image = [[File:Velkort.jpg|250px]] |
|caption = Velkort and the Sentient Flame | |caption = Velkort and the Sentient Flame | ||
|zone = [[Serbule]] | |zone = [[Serbule]] | ||
Line 102: | Line 105: | ||
{{NPC infobox | {{NPC infobox | ||
|title = Mushroom Jack | |title = Mushroom Jack | ||
− | |image = [[File:Mushroom_Jack.jpg | + | |image = [[File:Mushroom_Jack.jpg]] |
|caption = He smells kind of funny. | |caption = He smells kind of funny. | ||
|zone = [[Serbule]] | |zone = [[Serbule]] | ||
Line 114: | Line 117: | ||
{{NPC infobox | {{NPC infobox | ||
|title = Mushroom Jack | |title = Mushroom Jack | ||
− | |image = [[File:Mushroom_Jack.jpg | + | |image = [[File:Mushroom_Jack.jpg]] |
|caption = He smells kind of funny. | |caption = He smells kind of funny. | ||
|zone = [[Serbule]] | |zone = [[Serbule]] | ||
Line 121: | Line 124: | ||
|vendor = Vendor | |vendor = Vendor | ||
|beastspeak = Cows, Pigs, Mushrooms. | |beastspeak = Cows, Pigs, Mushrooms. | ||
+ | }} | ||
+ | |||
+ | <pre> | ||
+ | {{NPC infobox | ||
+ | |title = Sanja | ||
+ | |image = [[File:Sanja.jpg|200px]] | ||
+ | |caption = | ||
+ | |zone = Kur Mountins | ||
+ | |location = North-West Campfire <br>with [[Jace Soral]] | ||
+ | |skilltrainer = [[Lycanthropy]] | ||
+ | |vendor = | ||
+ | |beastspeak = Wolf | ||
+ | }} | ||
+ | </pre> | ||
+ | {{NPC infobox | ||
+ | |title = Sanja | ||
+ | |image = [[File:Sanja.jpg|200px]] | ||
+ | |caption = | ||
+ | |zone = Kur Mountins | ||
+ | |location = North-West Campfire <br>with [[Jace Soral]] | ||
+ | |skilltrainer = [[Lycanthropy]] | ||
+ | |vendor = | ||
+ | |beastspeak = Wolf | ||
}} | }} | ||
[[Category:Formatting templates|NPC infobox]] | [[Category:Formatting templates|NPC infobox]] | ||
</noinclude> | </noinclude> |
Revision as of 17:22, 22 October 2015
NPC infobox | |
---|---|
File:NPC infobox.jpg | |
Zone: | - |
Location: | - |
Syntax
{{NPC infobox |title = |image = |caption = |zone = |location = |beastspeak = |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
- Required, will remain blank on page. The zone where the NPC can be found.
- location
- Required, will remain blank on page. Specifically where the NPC is located in a Zone. See below for example use.
- beastspeak
- 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
Image
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) If an image already exists which name does not match the article name, or in a different format (png), specify it. If the image is larger/smaller the box will expand/shrink to fit it, have to specify what size you want it to appear(see below) keep in mind that the text will only be 250px in lengh.
Examples
Don't mind that the Titles are wrong, the title takes the name of the page it is created on.
Here you can see examples of what Velkort's, Mushroom Jack's, and Sanja's templates could look like, notice that while velkort's image is clipped to 250px Mushroom Jack and Sanja are not.
{{NPC infobox |title = Velkort |image = [[File:Velkort.jpg|250px]] |caption = Velkort and the Sentient Flame |zone = [[Serbule]] |location = near [[Serbule Keep]]'s well |beastspeak = |skilltrainer = Fire, Archery |vendor = Vendor }}
Velkort
| |
---|---|
Velkort and the Sentient Flame
| |
Region: | [[Serbule]]
|
Location: | near Serbule Keep's well
|
Skill Trainer: | Fire, Archery
|
Vendor |
{{NPC infobox |title = Mushroom Jack |image = [[File:Mushroom_Jack.jpg]] |caption = He smells kind of funny. |zone = [[Serbule]] |location = In his shack. |skilltrainer = |vendor = Vendor |beastspeak = Cows, Pigs, Mushrooms. }}
Mushroom Jack
| |
---|---|
He smells kind of funny.
| |
Region: | [[Serbule]]
|
Location: | In his shack
|
Beast Speak: | Cows, Pigs, Mushrooms.
|
Vendor |
{{NPC infobox |title = Sanja |image = [[File:Sanja.jpg|200px]] |caption = |zone = Kur Mountins |location = North-West Campfire <br>with [[Jace Soral]] |skilltrainer = [[Lycanthropy]] |vendor = |beastspeak = Wolf }}
Sanja
| |
---|---|
| |
Region: | |
Location: | North-West Campfire
with Jace Soral |
Beast Speak: | Wolf
|
Skill Trainer: |