Difference between revisions of "Template:MOB infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m (Switched Anatomy/type link back to a direct path.)
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; border-radius:5px; background:#1e1615ff;" 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; border-radius:2px; background-color:#7de36f;color:#185110;" | {{{title|title}}}
+
! 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}}.png{{pipe}}300px{{pipe}}]]}}} <br><div class="block2" style="font-size:14px;color:#ffffff;">{{{caption|}}}</div>  
 
| 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>  
|- valign="top"
+
|-
! colspan="2" style="font-size:17px; text-align:center; border-radius:2px; background-color:#7de36f;color:#185110;" |<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|-}}}
+
{{ #ifeq:{{{health|-}}}|-||{{pipe}}- 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; color:#000000; border-radius:2px; width:100px;"  align="center" | Anatomy:
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" | Anatomy:
| <div class="block2" style="color:#ffffff;">[[:Category:Creatures by Type|Anatomy]]</div>
+
| <div class="block2" style="color:#ffffff;">[[{{{type}}}]]</div>
 
|-
 
|-
{{ #if:{{{notoriety||}}} |
+
{{ #if:{{{notoriety|}}}|{{pipe}}- valign="top"
{{pipe}}-
 
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Notoriety:
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Notoriety:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{notoriety}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{notoriety}}}</div>
 
}}
 
}}
 
|-
 
|-
{{ #if:{{{curse||}}} |
+
{{ #if:{{{curse|}}}|{{pipe}}- valign="top"
{{pipe}}-
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px; padding:10px;"  align="center" {{pipe}} Curse:
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Curse:
 
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{curse}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{curse}}}</div>
 
}}
 
}}
 
|-
 
|-
{{ #if:{{{effective||}}}|
+
{{ #if:{{{effective|}}}|{{pipe}}- valign="top"
{{pipe}}-
 
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Effective:
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Effective:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{effective}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{effective}}}</div>
 
}}
 
}}
{{ #if:{{{veffective||}}}|
+
|-
{{pipe}}-
+
{{ #if:{{{veffective|}}}|{{pipe}}- valign="top"
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Effective:
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Effective:
{{pipe}} <div class="block2" style="color:#ffffff;">{{{veffective}}}</div>
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{veffective}}}</div>}}
}}
+
|-
{{ #if:{{{ineffective||}}}|
+
{{ #if:{{{ineffective|}}}|{{pipe}}- valign="top"
{{pipe}}-
 
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Ineffective:
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Ineffective:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{ineffective}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{ineffective}}}</div>
 
}}
 
}}
{{ #if:{{{vineffective||}}}|
+
|-
{{pipe}}-
+
{{ #if:{{{vineffective|}}}|{{pipe}}- valign="top"
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Ineffective:
 
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Ineffective:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{vineffective}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{vineffective}}}</div>
 
}}
 
}}
{{ #if:{{{immune||}}}|
+
|-
{{pipe}}-
+
{{ #if:{{{immune|}}}|{{pipe}}- valign="top"
 
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Immune:
 
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Immune:
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{immune}}}</div>
 
{{pipe}} <div class="block2" style="color:#ffffff;">{{{immune}}}</div>
 
}}
 
}}
|}<noinclude>
+
|}
 +
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude><includeonly><!-- automatic categories -->
 
</noinclude><includeonly><!-- automatic categories -->

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>