Difference between revisions of "Template:MOB infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Switched Anatomy/type link back to a direct path.)
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{underconstruction}}
+
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
</noinclude><table style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"><!--
+
! colspan="2"|<div class="ib-tbl-hd">[[File:Main_Page_Headers_Bg.png|300px]]</div> <div class="ib-tbl-hdt">{{{title|title}}}</div>
--><tr><!--
+
|-
  --><th colspan="2" style="font-size:17px; text-align:center; background-color:#7de36f;color:#185110;"><!--
+
| 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>  
      -->{{{name|{{PAGENAME}}}}}<!--
+
|-
  --></th><!--
+
{{ #ifeq:{{{health|-}}}|-||{{pipe}}- valign="top"
--></tr><!--
+
! 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|-}}}
--><tr><!--
+
}}
  --><td style="width:300px;" colspan="2" align="center"><!--
+
|-
      -->{{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}300px{{pipe}}]]}}}<!--
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Anatomy:
  --></td><!--
+
| <div class="block2" style="color:#ffffff;">[[{{{type}}}]]</div>
--></tr><!--
+
|-
--><tr><!--
+
{{ #if:{{{notoriety|}}}|{{pipe}}- valign="top"
  --><td style="font-size:19px" colspan="2" align="center"><!--
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Notoriety:
      -->[[Image:Armor-icon-30px.gif|Armor]]<span style="padding:0 1em 0 .5em">{{{armor|-}}}</span><!--
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{notoriety}}}</div>
      -->[[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><!--
+
|-
  --></td><!--
+
{{ #if:{{{curse|}}}|{{pipe}}- valign="top"
--></tr><!--
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px; padding:10px;" align="center" {{pipe}} Curse:
--><tr valign="top"><!--
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{curse}}}</div>
  --><td style="background:#eee;width:100px;"><!--
+
}}
      -->[[:Category:Creatures by Type|Anatomy]]<!--
+
|-
  --></td><!--
+
{{ #if:{{{effective|}}}|{{pipe}}- valign="top"
  --><td><!--
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Effective:
      -->{{#ifeq: {{{type|-}}} | -
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{effective}}}</div>
        | <span class="error">Missing Type !</span>
+
}}
        | [[{{{type}}}]]
+
|-
        }}<!--
+
{{ #if:{{{veffective|}}}|{{pipe}}- valign="top"
  --></td><!--
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Effective:
--></tr><!--
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{veffective}}}</div>}}
-->{{#ifeq: {{{notoriety|-}}} | -
+
|-
  |
+
{{ #if:{{{ineffective|}}}|{{pipe}}- valign="top"
  | <tr valign="top"><!--
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" {{pipe}} Ineffective:
    --><th style="background:#eee;"><!--
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{ineffective}}}</div>
        -->[[Notoriety]]<!--
+
}}
    --></th><!--
+
|-
    --><td><!--
+
{{ #if:{{{vineffective|}}}|{{pipe}}- valign="top"
        -->{{{notoriety}}}<!--
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Very Ineffective:
    --></td><!--
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{vineffective}}}</div>
  --></tr><!--
+
}}
-->}}{{#ifeq: {{{curse|-}}} | -
+
|-
    |
+
{{ #if:{{{immune|}}}|{{pipe}}- valign="top"
    | <tr valign="top"><!--
+
! style="background:#f5e0c7; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Immune:
      --><th style="background:#f5e0c7;"><!--
+
{{pipe}} <div class="block2" style="color:#ffffff;">{{{immune}}}</div>
          -->[[Curse]]<!--
+
}}
      --></th><!--
+
|}
      --><td><!--
+
<noinclude>
          -->{{{curse}}}<!--
 
      --></td><!--
 
  --></tr><!--
 
-->}}{{#ifeq: {{{effective|-}}} | -
 
    |
 
    | <tr valign="top"><!--
 
      --><th style="background:#f5e0c7;"><!--
 
          -->Effective:<!--
 
      --></th><!--
 
      --><td><!--
 
          -->{{{effective}}}<!--
 
      --></td><!--
 
  --></tr><!--
 
-->}}{{#ifeq: {{{ineffective|-}}} | -
 
    |
 
    | <tr valign="top"><!--
 
      --><th style="background:#f5e0c7;"><!--
 
          -->Ineffective:<!--
 
      --></th><!--
 
      --><td><!--
 
          -->{{{ineffective}}}<!--
 
      --></td><!--
 
  --></tr><!--
 
-->}}{{#ifeq: {{{immune|-}}} | -
 
    |
 
    | <tr valign="top"><!--
 
      --><th style="background:#f5e0c7;"><!--
 
          -->Immune:<!--
 
      --></th><!--
 
      --><td><!--
 
          -->{{{immune}}}<!--
 
      --></td><!--
 
  --></tr><!--
 
-->}}<!--
 
--></table><noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude><includeonly><!-- automatic categories -->
 
</noinclude><includeonly><!-- automatic categories -->

Latest revision as of 08: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>