Difference between revisions of "Template:MOB infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
(Place boss in "Category:Has curse" automatically if curse is defined.)
m (Automatically add the creature type category to articles using MOB infobox (existing articles need to be saved to update).)
Line 17: Line 17:
 
}}
 
}}
 
|}<!-- automatic categories -->
 
|}<!-- automatic categories -->
 +
{{ #if: {{{type|}}} | [[Category:{{{type}}}]] }}
 
{{ #if: {{{curse|}}} | [[Category:Has curse]] }}
 
{{ #if: {{{curse|}}} | [[Category:Has curse]] }}
 
<!-- end categories --><noinclude>
 
<!-- end categories --><noinclude>
Line 53: Line 54:
 
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>
 
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>
  
====Notes====
+
; Automatic categories
As with all more complex templates, remember that changes spread on all concerned articles. Please discuss it with the author before making significant changes.
+
: '''curse''' => this will add "Has curse" and will show up in the [[Curse]] boss list
 +
: '''type''' => the anatomy type will list under the corresponding category for creature type lists, eg. [[Undead]]
  
 
==Examples==
 
==Examples==

Revision as of 08:53, 27 October 2014

MOB infobox
File:MOB infobox.jpg
Armor-Health-Rage-
Anatomy -
Notoriety -




Syntax

{{MOB infobox
| name = 
| image = 
| type =
| armor =
| health =
| rage =
| notoriety = 
}}

Parameters

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|]]
type
MUST match an existing Category:Creatures by Type
armor
health
rage
Numerical values as displayed in the in-game target box.
notoriety
OPTIONAL. Show notoriety XP gain for special creatures. (it always show until wiki extensions are installed).

Description

Create an attractive "info card" for enemies and bosses. 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
curse => this will add "Has curse" and will show up in the Curse boss list
type => the anatomy type will list under the corresponding category for creature type lists, eg. Undead

Examples

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):

{{MOB infobox
| type = Arthropod
| armor = 5
| health = 45
| rage = 60
}}

If an image already exists which name does not match the article name, or in a different format (png) specify like so:

{{MOB infobox
| image = [[Image:Black Widow.png|300px|]]
| type = Arthropod
| armor = 5
| health = 45
| rage = 60
}}

TODOs (Gorgonzola)

Notes for later:

  • XP amounts like Notoriety should be pulled with Semantic Data?