Difference between revisions of "Template:NPC infobox"
From Project: Gorgon Wiki
m |
m (Added three hidden parameters.) |
||
(19 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Blue.png|300px]]</div> <div class="ib-tbl-hdt">{{{title|title}}}</div> | ! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Blue.png|300px]]</div> <div class="ib-tbl-hdt">{{{title|title}}}</div> | ||
|- | |- | ||
− | | style= "width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}} | + | | style= "width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}300px{{pipe}}]]}}} <br><div class="block2" style="font-size:14px;color:#ffffff;">{{{caption|}}}</div> |
+ | |- | ||
+ | {{ #if:{{{eventnpc|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f2a2a0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Event NPC | ||
+ | }} | ||
|- valign="top" | |- valign="top" | ||
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Region: | ! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Region: | ||
Line 9: | Line 13: | ||
{{ #if:{{{town|}}}|{{pipe}}- valign="top" | {{ #if:{{{town|}}}|{{pipe}}- valign="top" | ||
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Town: | ! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Town: | ||
− | {{pipe}} <div class="block2" style="color:#ffffff;">{{{town}}}</div> | + | {{pipe}} <div class="block2" style="color:#ffffff;">[[{{{town}}}]]</div> |
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{dungeon|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Dungeon: | ||
+ | {{pipe}} <div class="block2" style="color:#ffffff;">[[{{{dungeon}}}]]</div> | ||
}} | }} | ||
|- | |- | ||
Line 25: | Line 34: | ||
}} | }} | ||
|- | |- | ||
− | {{ #if:{{{ | + | {{ #if:{{{species|}}}|{{pipe}}- valign="top" |
− | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} | + | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Species: |
− | {{pipe}} <div class="block2" style="color:#ffffff;">[[{{{ | + | {{pipe}} <div class="block2" style="color:#ffffff;">{{{species}}}</div> |
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{sex|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Sex: | ||
+ | {{pipe}} <div class="block2" style="color:#ffffff;">[[{{{sex}}}]]</div> | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{gender|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Gender: | ||
+ | {{pipe}} <div class="block2" style="color:#ffffff;">[[{{{gender}}}]]</div> | ||
}} | }} | ||
|- | |- | ||
Line 33: | Line 52: | ||
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Beast Speak: | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Beast Speak: | ||
{{pipe}} <div class="block2" style="color:#ffffff;">{{{beastspeak}}}</div> | {{pipe}} <div class="block2" style="color:#ffffff;">{{{beastspeak}}}</div> | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{beastlist|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Speaks With: | ||
+ | {{pipe}} <div class="block2" style="color:#ffffff;">{{{beastlist}}}</div> | ||
}} | }} | ||
|- | |- | ||
Line 42: | Line 66: | ||
{{ #if:{{{vendor|}}}|{{pipe}}- valign="top" | {{ #if:{{{vendor|}}}|{{pipe}}- valign="top" | ||
! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Vendor | ! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Vendor | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{consignment|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Consignment | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{stables|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Stable Master | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{barter|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Offers Barter | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{augment|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Installs Augments | ||
+ | }} | ||
+ | |- | ||
+ | {{ #if:{{{storage|}}}|{{pipe}}- valign="top" | ||
+ | ! style="background:#f2cda0; color:#000000; border-radius:2px; width:250px;" colspan="2" align="center" {{pipe}} Offers Storage | ||
}} | }} | ||
|} | |} | ||
Line 47: | Line 91: | ||
| Template:NPC infobox = | | Template:NPC infobox = | ||
| NPC Template = | | NPC Template = | ||
− | | {{ #ifeq: {{{beastspeak}}} | Yes| [[Category:Talks to Animals]] }}{{ #if: {{{zone|}}} | [[Category:{{{zone}}} NPCs]] }}{{ #if: {{{skilltrainer|}}} | [[Category:Skill Trainer]] }}{{ #if: {{{anatomy|}}} | [[Category:{{{anatomy}}}]] }}{{ #if: {{{vendor|}}} | [[Category: | + | | {{ #ifeq: {{{beastspeak}}} | Yes| [[Category:Talks to Animals]] }}{{ #if: {{{zone|}}} | [[Category:{{{zone}}} NPCs]] }}{{ #if: {{{skilltrainer|}}} | [[Category:Skill Trainer]] }}{{ #if: {{{anatomy|}}} | [[Category:{{{anatomy}}}]] }}{{ #ifeq: {{{smalltalk}}} | Yes| [[Category:Favor/Small Talk]] }}{{ #ifeq: {{{hangouts}}} | Yes| [[Category:Favor/Hang Outs]] }}{{ #ifeq: {{{favrewards}}} | Yes| [[Category:Favor/Rewards]] }}{{ #if: {{{vendor|}}} | [[Category:Shopkeeper]] }}{{ #if: {{{consignment|}}} | [[Category:Consignment]] }}{{ #if: {{{stables|}}} | [[Category:Stablemaster]] }}{{ #if: {{{barter|}}} | [[Category:Bartering]] }}{{ #if: {{{augment|}}} | [[Category:Augmentation]] }}{{ #if: {{{storage|}}} | [[Category:Storage]] }}{{ #if: {{{town|}}} | [[Category:{{{town}}} NPCs]] }}{{ #if: {{{dungeon|}}} | [[Category:{{{dungeon}}} NPCs]][[Category:Dungeon NPCs]] }}{{ #if: {{{eventnpc|}}} | [[Category:Event NPCs]] }}{{ #ifeq: {{{species}}} | Ranalon| [[Category:Ranalon]] }}{{ #ifeq: {{{species}}} | Myconian| [[Category:Myconian]] }}{{ #ifeq: {{{species}}} | Mantis| [[Category:Mantis]] }}}} |
<noinclude> | <noinclude> | ||
{{clear}}__NOTOC__ | {{clear}}__NOTOC__ | ||
Line 54: | Line 98: | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
− | |title | + | |title = |
− | |caption | + | |caption = |
− | |zone | + | |zone = |
− | |location | + | |location = |
− | |anatomy | + | |anatomy = |
− | |beastspeak | + | |beastspeak = |
− | |skilltrainer | + | |skilltrainer = |
− | |vendor | + | |vendor = |
+ | |storage = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 67: | Line 112: | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
− | |title | + | |title = |
− | |image | + | |image = |
− | |caption | + | |caption = |
− | |zone | + | |eventnpc = |
− | |town | + | |zone = |
− | |location | + | |town = |
− | | | + | |dungeon = |
− | |anatomy | + | |location = |
− | |beastspeak | + | |wander = |
− | |skilltrainer | + | |anatomy = |
− | |vendor | + | |species = |
+ | |beastspeak = | ||
+ | |beastlist = | ||
+ | |skilltrainer = | ||
+ | |smalltalk = | ||
+ | |hangouts = | ||
+ | |favrewards= | ||
+ | |vendor = | ||
+ | |consignment = | ||
+ | |stables = | ||
+ | |barter = | ||
+ | |augment = | ||
+ | |storage = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 85: | Line 142: | ||
: Optional. Defaults to article name. | : Optional. Defaults to article name. | ||
; image | ; image | ||
− | : Optional. Defaults to a .jpg image of the article's name. If specified, use <code><nowiki>[[Image:Creature name.jpg| | + | : Optional. Defaults to a .jpg image of the article's name. If specified, use <code><nowiki>[[Image:Creature name.jpg|300px|]]</nowiki></code> |
;caption | ;caption | ||
:Optional. Usually the description above the NPCs head. | :Optional. Usually the description above the NPCs head. | ||
+ | ;eventnpc | ||
+ | :Optional. Only use if the NPC is a special NPC used during an Event. Answer '''Yes''' if they are. Leave blank if not. | ||
;zone | ;zone | ||
:Required, will remain blank on page if a value is not entered. The zone or region where the NPC can be found. | :Required, will remain blank on page if a value is not entered. The zone or region where the NPC can be found. | ||
;town | ;town | ||
:Optional. Use to further specify an NPCs location, if applicable. Joeh is in the zone Serbule, but the town Serbule Keep. Flia, outside the walls, does not use this parameter. | :Optional. Use to further specify an NPCs location, if applicable. Joeh is in the zone Serbule, but the town Serbule Keep. Flia, outside the walls, does not use this parameter. | ||
+ | ;dungeon | ||
+ | :Optional. Use to further specify an NPC location, as an '''alternative''' to town. Bogaku is in Rahu for zone, but Rahu Sewer for dungeon. | ||
;location | ;location | ||
:Required, will remain blank on page if not filled in. Specifically where the NPC is located in a Zone for most of the time. See below for example use. | :Required, will remain blank on page if not filled in. Specifically where the NPC is located in a Zone for most of the time. See below for example use. | ||
− | ; | + | ;wander |
:Optional. Use only for NPCs that move. Percussa "Returns to her home at night" Firaki "Moves to shelter during sandstorms" | :Optional. Use only for NPCs that move. Percussa "Returns to her home at night" Firaki "Moves to shelter during sandstorms" | ||
;anatomy | ;anatomy | ||
− | :Optional. Used to list the Anatomy type the NPC falls into. | + | :Optional. (Recommended) Used to list the Anatomy type the NPC falls into. This must match an in-game Anatomy skill. |
+ | ;species | ||
+ | :Optional. The species of the NPC. Sanja is a Canine for Anatomy, but a Wolf for species. Preta is a Fae for Anatomy, but a Fairy for species. | ||
;beastspeak | ;beastspeak | ||
− | :Optional. Animals that the NPC will talk to, if any. Answer Yes if they speak to any type of Beast Form. | + | :Optional. Animals that the NPC will talk to, if any. Answer '''Yes''' if they speak to any type of Beast Form. Leave blank if they do not speak to animals. |
+ | ;beastlist | ||
+ | :Optional. Only use if beastspeak is Yes. Specify which forms they speak to in the infobox. | ||
;skilltrainer | ;skilltrainer | ||
− | :Optional. Use to show if NPC can train a player in a skill. See below for example use. | + | :Optional. Use to show if an NPC can train a player in a skill. See below for example use. |
+ | ;smalltalk | ||
+ | :Optional. Use to show that an NPC can be gifted items as part of the favor system. Answer '''Yes''' if they can. Leave blank if not. This adds a category, it does not influence the infobox appearance. | ||
+ | ;hangouts | ||
+ | :Optional. Use to show that an NPC offers Hang Out options. Answer '''Yes''' if there are. Leave blank if not. This adds a category, it does not influence the infobox appearance. | ||
+ | ;favrewards | ||
+ | :Optional. Use to show that an NPC offers Rewards from leveling favor. Answer '''Yes''' if there are. Leave blank if not. This adds a category, it does not influence the infobox appearance. | ||
;vendor | ;vendor | ||
− | :Optional. Use to show that | + | :Optional. Use to show that an NPC is a Vendor. Answer '''Yes''' if they are. Leave blank if not. |
+ | ;consignment | ||
+ | :Optional. Use to show that an NPC offers Consignment. Answer '''Yes''' if they do. Leave blank if not. | ||
+ | ;stables | ||
+ | :Optional. Use to show that an NPC is a Stable Master (offers access to stable slots). ''Yes''' if they do. Leave blank if not. | ||
+ | ;barter | ||
+ | :Optional. Use to show that an NPC offers Barter options. Answer '''Yes''' if they do. Leave blank if not. | ||
+ | ;augment | ||
+ | :Optional. Use to show that an NPC will Install Augments on equipment. Answer '''Yes''' if they do. Leave blank if not. | ||
+ | ;storage | ||
+ | :Optional. Use to show that an NPC offers Storage. Answer '''Yes''' if they do. Leave blank if not. | ||
==Description== | ==Description== | ||
Line 125: | Line 206: | ||
|location = Near [[Serbule Keep]]'s well. | |location = Near [[Serbule Keep]]'s well. | ||
|anatomy = Elven | |anatomy = Elven | ||
+ | |species = Elf | ||
|beastspeak = Yes | |beastspeak = Yes | ||
+ | |beastlist = ??? | ||
|skilltrainer = Fire, Archery | |skilltrainer = Fire, Archery | ||
|vendor = Yes | |vendor = Yes | ||
Line 138: | Line 221: | ||
|location = Near [[Serbule Keep]]'s well. | |location = Near [[Serbule Keep]]'s well. | ||
|anatomy = Elven | |anatomy = Elven | ||
+ | |species = Elf | ||
|beastspeak = Yes | |beastspeak = Yes | ||
+ | |beastlist = ??? | ||
|skilltrainer = Fire, Archery | |skilltrainer = Fire, Archery | ||
|vendor = Yes | |vendor = Yes | ||
Line 169: | Line 254: | ||
<pre> | <pre> | ||
{{NPC infobox | {{NPC infobox | ||
− | |title | + | |title = Sanja |
− | |image | + | |image = [[File:Sanja.jpg|250px]] |
− | |caption | + | |caption = She glares at you with cunning eyes. |
− | |zone | + | |zone = Kur Mountains |
− | |location | + | |location = North-West Campfire <br>with [[Jace Soral]] |
− | | | + | |anatomy = Canine |
− | | | + | |species = Wolf |
− | |beastspeak | + | |beastspeak = Yes |
+ | |beastlist = Only Wolf, Bat. | ||
+ | |skilltrainer = [[Lycanthropy]] | ||
}} | }} | ||
</pre> | </pre> | ||
{{NPC infobox | {{NPC infobox | ||
− | |title | + | |title = Sanja |
− | |image | + | |image = [[File:Sanja.jpg|250px]] |
− | |caption | + | |caption = She glares at you with cunning eyes. |
− | |zone | + | |zone = Kur Mountains |
− | |location | + | |location = North-West Campfire <br>with [[Jace Soral]] |
− | | | + | |anatomy = Canine |
− | | | + | |species = Wolf |
− | |beastspeak | + | |beastspeak = Yes |
+ | |beastlist = Only Wolf, Bat. | ||
+ | |skilltrainer = [[Lycanthropy]] | ||
}} | }} | ||
[[Category:Formatting templates|NPC infobox]] | [[Category:Formatting templates|NPC infobox]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:47, 7 March 2023
title
| |
---|---|
File:NPC infobox.jpg | |
Region: | |
Location: | -
|
Basic Syntax
{{NPC infobox |title = |caption = |zone = |location = |anatomy = |beastspeak = |skilltrainer = |vendor = |storage = }}
Complex Syntax
{{NPC infobox |title = |image = |caption = |eventnpc = |zone = |town = |dungeon = |location = |wander = |anatomy = |species = |beastspeak = |beastlist = |skilltrainer = |smalltalk = |hangouts = |favrewards= |vendor = |consignment = |stables = |barter = |augment = |storage = }}
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|300px|]]
- caption
- Optional. Usually the description above the NPCs head.
- eventnpc
- Optional. Only use if the NPC is a special NPC used during an Event. Answer Yes if they are. Leave blank if not.
- zone
- Required, will remain blank on page if a value is not entered. The zone or region where the NPC can be found.
- town
- Optional. Use to further specify an NPCs location, if applicable. Joeh is in the zone Serbule, but the town Serbule Keep. Flia, outside the walls, does not use this parameter.
- dungeon
- Optional. Use to further specify an NPC location, as an alternative to town. Bogaku is in Rahu for zone, but Rahu Sewer for dungeon.
- location
- Required, will remain blank on page if not filled in. Specifically where the NPC is located in a Zone for most of the time. See below for example use.
- wander
- Optional. Use only for NPCs that move. Percussa "Returns to her home at night" Firaki "Moves to shelter during sandstorms"
- anatomy
- Optional. (Recommended) Used to list the Anatomy type the NPC falls into. This must match an in-game Anatomy skill.
- species
- Optional. The species of the NPC. Sanja is a Canine for Anatomy, but a Wolf for species. Preta is a Fae for Anatomy, but a Fairy for species.
- beastspeak
- Optional. Animals that the NPC will talk to, if any. Answer Yes if they speak to any type of Beast Form. Leave blank if they do not speak to animals.
- beastlist
- Optional. Only use if beastspeak is Yes. Specify which forms they speak to in the infobox.
- skilltrainer
- Optional. Use to show if an NPC can train a player in a skill. See below for example use.
- smalltalk
- Optional. Use to show that an NPC can be gifted items as part of the favor system. Answer Yes if they can. Leave blank if not. This adds a category, it does not influence the infobox appearance.
- hangouts
- Optional. Use to show that an NPC offers Hang Out options. Answer Yes if there are. Leave blank if not. This adds a category, it does not influence the infobox appearance.
- favrewards
- Optional. Use to show that an NPC offers Rewards from leveling favor. Answer Yes if there are. Leave blank if not. This adds a category, it does not influence the infobox appearance.
- vendor
- Optional. Use to show that an NPC is a Vendor. Answer Yes if they are. Leave blank if not.
- consignment
- Optional. Use to show that an NPC offers Consignment. Answer Yes if they do. Leave blank if not.
- stables
- Optional. Use to show that an NPC is a Stable Master (offers access to stable slots). Yes' if they do. Leave blank if not.
- barter
- Optional. Use to show that an NPC offers Barter options. Answer Yes if they do. Leave blank if not.
- augment
- Optional. Use to show that an NPC will Install Augments on equipment. Answer Yes if they do. Leave blank if not.
- storage
- Optional. Use to show that an NPC offers Storage. Answer Yes if they do. Leave blank if not.
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.
- Automatic categories
- zone, town, anatomy, beastspeak, vendor = These parameters automatically add categories if the information is correctly filled out.
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 on the wiki which has a name that does not match the infobox naming scheme, or is in a different format (png), specify it using the parameter.
Examples
Here you can see examples of what Velkort's, Mushroom Jack's, and Sanja's templates could look like.
{{NPC infobox |title = Velkort |image = [[File:Velkort(npc).png|300px]] |caption = Velkort and the Sentient Flame |zone = Serbule |town = Serbule Keep |location = Near [[Serbule Keep]]'s well. |anatomy = Elven |species = Elf |beastspeak = Yes |beastlist = ??? |skilltrainer = Fire, Archery |vendor = Yes }}
Velkort
| |
---|---|
Velkort and the Sentient Flame
| |
Region: | |
Town: | |
Location: | Near Serbule Keep's well.
|
Anatomy: | |
Species: | Elf
|
Beast Speak: | Yes
|
Speaks With: | ???
|
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: | |
Location: | In his shack
|
Beast Speak: | Cows, Pigs, Mushrooms.
|
Vendor |
{{NPC infobox |title = Sanja |image = [[File:Sanja.jpg|250px]] |caption = She glares at you with cunning eyes. |zone = Kur Mountains |location = North-West Campfire <br>with [[Jace Soral]] |anatomy = Canine |species = Wolf |beastspeak = Yes |beastlist = Only Wolf, Bat. |skilltrainer = [[Lycanthropy]] }}
Sanja
| |
---|---|
She glares at you with cunning eyes.
| |
Region: | |
Location: | North-West Campfire
with Jace Soral |
Anatomy: | |
Species: | Wolf
|
Beast Speak: | Yes
|
Speaks With: | Only Wolf, Bat.
|
Skill Trainer: |