20,137
edits
Changes
Creating a new infobox to modify.
{| 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:#B97FBA;color:#ffffff;" | {{{name|name}}}
|-
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div>
|- valign="top"
! style="background:#eee; width:100px;" align="center" | Zone:
| {{{zone|-}}}
|-
! style="background:#eee; width:100px;" align="center" | Location:
| {{{location|-}}}
|-
{{ #if:{{{beastspeak|}}} |
{{pipe}}-
! style="background:#f4e6d4; width:100px;" align="center" {{pipe}} Beast Speak:
{{pipe}} {{{beastspeak}}}
}}
{{ #if:{{{skilltrainer|}}} |
{{pipe}}-
! style="background:#f5e0c7; width:100px;" align="center" {{pipe}} Skill Trainer:
{{pipe}} {{{skilltrainer}}}
}}
{{ #if:{{{dead|}}} |
{{pipe}}-
! style="background:#f2cda0; width:250px;" colspan="2" align="center" {{pipe}} Deceased
{{pipe}}
}}
|}
<noinclude>
{{clear}}__NOTOC__
==Syntax==
<pre>
{{NPC infobox
|name =
|image =
|caption =
|zone =
|location =
|beastspeak =
|skilltrainer =
|dead =
}}
</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|200px|]]</nowiki></code>
;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.
;dead
:Optional. Enter "yes" to show that a Deity is Deceased.
==Description==
Create an attractive "info card" for Deities. 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. <span style="color:#484">This template will have more parameters, but is awaiting Wiki Extensions.</span>
===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, 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 300px in length.
==Examples==
<pre>
{{Deity infobox
|name = Mushroom Jack
|image = [[File:Mushroom_Jack.jpg]]
|caption = He smells kind of funny.
|zone = [[Serbule]]
|location = In his shack.
|skilltrainer =
|dead = yes
|beastspeak = Cows, Pigs, Mushrooms.
}}
</pre>
{{Deity infobox
|name = Mushroom Jack
|image = [[File:Mushroom_Jack.jpg]]
|caption = He smells kind of funny.
|zone = [[Serbule]]
|location = In his shack
|skilltrainer =
|dead = yes
|beastspeak = Cows, Pigs, Mushrooms.
}}
[[Category:Formatting templates|NPC infobox]]
</noinclude>
! colspan="2" style="font-size:17px; text-align:center; background-color:#B97FBA;color:#ffffff;" | {{{name|name}}}
|-
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div>
|- valign="top"
! style="background:#eee; width:100px;" align="center" | Zone:
| {{{zone|-}}}
|-
! style="background:#eee; width:100px;" align="center" | Location:
| {{{location|-}}}
|-
{{ #if:{{{beastspeak|}}} |
{{pipe}}-
! style="background:#f4e6d4; width:100px;" align="center" {{pipe}} Beast Speak:
{{pipe}} {{{beastspeak}}}
}}
{{ #if:{{{skilltrainer|}}} |
{{pipe}}-
! style="background:#f5e0c7; width:100px;" align="center" {{pipe}} Skill Trainer:
{{pipe}} {{{skilltrainer}}}
}}
{{ #if:{{{dead|}}} |
{{pipe}}-
! style="background:#f2cda0; width:250px;" colspan="2" align="center" {{pipe}} Deceased
{{pipe}}
}}
|}
<noinclude>
{{clear}}__NOTOC__
==Syntax==
<pre>
{{NPC infobox
|name =
|image =
|caption =
|zone =
|location =
|beastspeak =
|skilltrainer =
|dead =
}}
</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|200px|]]</nowiki></code>
;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.
;dead
:Optional. Enter "yes" to show that a Deity is Deceased.
==Description==
Create an attractive "info card" for Deities. 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. <span style="color:#484">This template will have more parameters, but is awaiting Wiki Extensions.</span>
===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, 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 300px in length.
==Examples==
<pre>
{{Deity infobox
|name = Mushroom Jack
|image = [[File:Mushroom_Jack.jpg]]
|caption = He smells kind of funny.
|zone = [[Serbule]]
|location = In his shack.
|skilltrainer =
|dead = yes
|beastspeak = Cows, Pigs, Mushrooms.
}}
</pre>
{{Deity infobox
|name = Mushroom Jack
|image = [[File:Mushroom_Jack.jpg]]
|caption = He smells kind of funny.
|zone = [[Serbule]]
|location = In his shack
|skilltrainer =
|dead = yes
|beastspeak = Cows, Pigs, Mushrooms.
}}
[[Category:Formatting templates|NPC infobox]]
</noinclude>