Difference between revisions of "Template:MOB infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
(Adding Notoriety now since for now we are going to use this template mostly for bosses.)
m (Switched Anatomy/type link back to a direct path.)
 
(54 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"
+
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
! colspan="2" style="font-size:17px; text-align:center; background-color:#7de36f;color:#185110;" | {{{name|{{PAGENAME}}}}}
+
! colspan="2"|<div class="ib-tbl-hd">[[File:Main_Page_Headers_Bg.png|300px]]</div> <div class="ib-tbl-hdt">{{{title|title}}}</div>
 
|-
 
|-
| style="width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}300px{{pipe}}]]}}}  
+
| style= "width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}} <br><div class="block2" style="font-size:14px;color:#ffffff;">{{{caption|}}}</div>
 
|-
 
|-
| style="font-size:19px" colspan="2" align="center" | [[Image:Armor-icon-30px.gif|Armor]]<span style="padding:0 1em 0 .5em">{{{armor|-}}}</span>[[Image:Health-icon-30px.gif|Health]]<span style="padding:0 1em 0 .5em">{{{health|-}}}</span>[[Image:Rage-icon-30px.gif|Rage]]<span style="padding:0 1em 0 .5em">{{{rage|-}}}</span>
+
{{ #ifeq:{{{health|-}}}|-||{{pipe}}- valign="top"
|- valign="top"
+
! colspan="2;" style="font-size:17px; text-align:center; border-radius:2px; background-color:#7b2c19ff;color:#ffffff;"{{pipe}}<span style="padding:0 1em 0 .5em">[[Image:Health-icon-30px.gif|Health]]{{{health|-}}}</span><span style="padding:0 1em 0 .5em">[[Image:Armor-icon-30px.gif|Armor]]{{{armor|-}}}</span><span style="padding:0 1em 0 .5em">[[Image:Rage-icon-30px.gif|Rage]]{{{rage|-}}}
! style="background:#eee;width:100px;" | [[:Category:Creatures by Type|Anatomy]]
 
| [[:Category:{{{type|Rodent}}}|{{{type|Rodent}}}]]
 
|- valign="top"
 
! style="background:#eee;" | [[Notoriety]]
 
| {{{notoriety|-}}}
 
|}<noinclude>
 
{{clear}}__NOTOC__
 
==Syntax==
 
<pre>
 
{{MOB infobox
 
| name =
 
| image =
 
| type =
 
| armor =
 
| health =
 
| rage =
 
| notoriety =
 
 
}}
 
}}
</pre>
+
|-
 
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" | Anatomy:
==Parameters==
+
| <div class="block2" style="color:#ffffff;">[[{{{type}}}]]</div>
; name
+
|-
: Optional. Defaults to article name.
+
{{ #if:{{{notoriety|}}}|{{pipe}}- valign="top"
; image
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Notoriety:
: Optional. Defaults to a .jpg image of the article's name. If specified, use <code><nowiki>[[Image:Creature name.jpg|300px|]]</nowiki></code>
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{notoriety}}}</div>
; type
+
}}
: MUST match an existing [[:Category:Creatures by Type]]
+
|-
; armor
+
{{ #if:{{{curse|}}}|{{pipe}}- valign="top"
; health
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px; padding:10px;"  align="center" {{pipe}} Curse:
; rage
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{curse}}}</div>
: Numerical values as displayed in the in-game target box.
+
}}
; notoriety
+
|-
: OPTIONAL. Show notoriety XP gain for special creatures. <span style="color:red">(it always show until wiki extensions are installed).</span>
+
{{ #if:{{{effective|}}}|{{pipe}}- valign="top"
 
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Effective:
==Description==
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{effective}}}</div>
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. <span style="color:#484">This template will have more parameters, but is awaiting Wiki Extensions.</span>
+
{{ #if:{{{veffective|}}}|{{pipe}}- valign="top"
 
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Effective:
====Notes====
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{veffective}}}</div>}}
As with all more complex templates, remember that changes spread on all concerned articles. Please discuss it with the author before making significant changes.
+
|-
 
+
{{ #if:{{{ineffective|}}}|{{pipe}}- valign="top"
==Examples==
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Ineffective:
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):
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{ineffective}}}</div>
<pre>
+
}}
{{MOB infobox
+
|-
| type = Arthropod
+
{{ #if:{{{vineffective|}}}|{{pipe}}- valign="top"
| armor = 5
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Ineffective:
| health = 45
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{vineffective}}}</div>
| rage = 60
 
 
}}
 
}}
</pre>
+
|-
 
+
{{ #if:{{{immune|}}}|{{pipe}}- valign="top"
If an image already exists which name does not match the article name, or in a different format (png) specify like so:
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Immune:
<pre>
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{immune}}}</div>
{{MOB infobox
 
| image = [[Image:Black Widow.png|300px|]]
 
| type = Arthropod
 
| armor = 5
 
| health = 45
 
| rage = 60
 
 
}}
 
}}
</pre>
+
|}
 
+
<noinclude>
==TODOs (Gorgonzola)==
+
{{Documentation}}
<span style="color:red">TODO</span> (will be implemented when Wiki extensions allow for it)
+
</noinclude><includeonly><!-- automatic categories -->
; curse
+
{{ #if: {{{type|}}} | [[Category:{{{type}}}]] }}
: Optional. If boss has a curse, will link to the particular curse or beast form.
+
{{ #if: {{{curse|}}} | [[Category:Has curse]] }}
 
+
<!-- end categories -->
; elite
+
</includeonly>
: Optional. Appears only if mob is elite (Sun Vale game update).
 
 
 
[[Category:Formatting templates|MOB infobox]]
 
</noinclude>
 

Latest revision as of 09:32, 22 September 2020

Main Page Headers Bg.png
title
File:MOB infobox.png
Anatomy:
[[{{{type}}}]]
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

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

Syntax

{{MOB infobox
| title =
| image = 
| type =
| health =
| armor =
| rage =
| notoriety = 
| curse =
| effective =
| veffective =
| ineffective =
| vineffective =
| immune =
}}

Parameters

title
Not Optional. Must be the Mob's name.
image
Optional. Defaults to a .png image of the article's name. If specified, use [[Image:Creature name.jpg|300px|]]
type
MUST match an existing Category:Creatures by Type
health
OPTIONAL. Numerical value as displayed in the in-game target box. Use on bosses, and creatures that appear in a single location in-game. Creatures that appear in many locations such as the Tiger do not require health/armor/rage to be listed in its infobox.
armor
OPTIONAL. Numerical value as displayed in the in-game target box. Will only display if a health exists.
rage
OPTIONAL. Numerical value as displayed in the in-game target box. Will only display if a health exists.
notoriety
OPTIONAL. Show notoriety XP gain for special creatures.
curse
OPTIONAL. Lists exact name of curse if the creature is a curse causing boss.
effective
OPTIONAL. Lists damage types that are effective against this creature.
veffective
OPTIONAL. Lists damage types that are very effective against this creature.
ineffective
OPTIONAL. Lists damage types that are ineffective against this creature.
vineffective
OPTIONAL. Lists damage types that are very ineffective against this creature.
immune
OPTIONAL. Lists damage types that the mob is immune to.

Examples

To see a completed example, look at Young Kraken.

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
| title = Young Kraken
| type = Fish and Snail
| notoriety = 500
| health = 8508
| armor = 1007
| rage = 1299
| effective = Crushing
| veffective = Slashing
| vineffective = Poison
| immune = Nature
}}
Main Page Headers Bg.png
Young Kraken
File:MOB infobox.png
Health8508Armor1007Rage1299
Anatomy:
Notoriety:
500
Effective:
Crushing
Very Effective:
Slashing
Very Ineffective:
Poison
Immune:
Nature
</div>
The above text is transcluded from Template:MOB infobox/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MOB infobox/doc. (View all subpages of this page.)

</div>