Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "Template:Monster infobox"

From DFO World Wiki
Jump to: navigation, search
(remove portrait option)
Line 35: Line 35:
 
}}{{#if: {{{family|}}} |
 
}}{{#if: {{{family|}}} |
 
; Family
 
; Family
: [[{{{family}}} family|{{{family}}}]]{{#set:Has monster family={{{family}}}}}
+
: {{#arraymap:{{{family}}}|,|@@@|[[@@@ family|@@@]]{{#set:Has monster family=@@@}}|<br>}}
 
}}{{clear}}</div>
 
}}{{clear}}</div>
 
</div>
 
</div>
Line 59: Line 59:
  
 
   <!-- family -->
 
   <!-- family -->
   {{#if:{{{family|}}}|[[Category:{{{family}}} family]]}}
+
   {{#arraymap:{{{family|}}}|,|@@@|[[Category:@@@ family]]|}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
== Description ==
 
== Description ==
Line 85: Line 85:
 
; type : Type of the monster, displayed in orange ingame. Separate multiple with a comma.
 
; type : Type of the monster, displayed in orange ingame. Separate multiple with a comma.
 
; armor type : Armor type of the monster, displayed in silver with a shield ingame. Separate multiple with a comma.
 
; armor type : Armor type of the monster, displayed in silver with a shield ingame. Separate multiple with a comma.
; family : Family of the monster.
+
; family : Family of the monster. Separate multiple with a comma.
 
; categorize : Set to ''n'' to disable auto-categorization. Defaults to ''y''.
 
; categorize : Set to ''n'' to disable auto-categorization. Defaults to ''y''.
  

Revision as of 16:34, 21 March 2016

Description

This templates creates an infobox for use on the monster's page.

Usage

{{Monster infobox
| name = 
| icon = 
| image = 
| resize = 
| type = 
| armor type = 
| family = 
| categorize = 
}}

Parameters

All parameters are optional unless stated otherwise.

name 
Required. Name of the monster. Defaults to the name of the base article ({{PAGENAME}}).
icon 
Icon. Defaults to {{PAGENAME}}.
image 
Sprite of the monster. Unlike icon, the file extension (e.g. .gif) is required.
type 
Type of the monster, displayed in orange ingame. Separate multiple with a comma.
armor type 
Armor type of the monster, displayed in silver with a shield ingame. Separate multiple with a comma.
family 
Family of the monster. Separate multiple with a comma.
categorize 
Set to n to disable auto-categorization. Defaults to y.

Examples

{{Monster infobox
| name = Really Long Monster Name For Line Break
| icon = Nilvas Gracia
| image = Nilvasboss.gif
| type = Angel, Human
| armor type = Divine
}}
Nilvas Gracia.png
Really Long Monster Name For Line Break
Nilvasboss.gif
Type
TypeAngel.png TypeHuman.png
Armor type
ArmorTypeDivine.png