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"
m |
m (Move has game icon to has icon) |
||
Line 9: | Line 9: | ||
<tr> | <tr> | ||
<td class="icon">{{#if:{{{icon|}}} | <td class="icon">{{#if:{{{icon|}}} | ||
− | |[[Has | + | |[[Has icon::File:{{{icon}}}.png|24px]] |
| {{#ifexist:Media:Icon-{{PAGENAME}}.png | | {{#ifexist:Media:Icon-{{PAGENAME}}.png | ||
− | |[[Has | + | |[[Has icon::File:Icon-{{#replace:{{#replace:{{PAGENAME}}|/|-}}|:|-}}.png|24px]] |
|[[Image:No_Icon.png|link={{canonicalurl:Special:Upload|wpDestFile={{urlencode:Icon-{{PAGENAME}}.png}}&wpUploadDescription={{urlencode:[[Category:Monster Icons]]}}}}|24px|No icon available]] | |[[Image:No_Icon.png|link={{canonicalurl:Special:Upload|wpDestFile={{urlencode:Icon-{{PAGENAME}}.png}}&wpUploadDescription={{urlencode:[[Category:Monster Icons]]}}}}|24px|No icon available]] | ||
}} | }} |
Latest revision as of 14:00, 29 June 2019
Contents
Description
This templates creates an infobox for use on the monster's page.
Usage
{{Monster infobox | name = | icon = | image = | type = | armor type = | family = | named = | class = | 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
Icon-{{PAGENAME}}
. - image
- Sprite of the monster. Unlike icon, the file extension (e.g. .gif) is required. Defaults to
{{PAGENAME}}.png
. - 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.
- named
- Set to anything to flag the monster as a named monster, i.e. a monster with green name tag.
- class
- Class of the APC. If set, Automated Player Character will automatically be added to family.
- 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 }}