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 link"
Line 3: | Line 3: | ||
{{#vardefine:name|{{#show:{{{1|Monster}}}|?Has name|default={{{1|Monster}}}}}}} | {{#vardefine:name|{{#show:{{{1|Monster}}}|?Has name|default={{{1|Monster}}}}}}} | ||
}}<!-- | }}<!-- | ||
− | --><span style="display:inline-block; {{#if:{{{full size|}}}|width:24px;height:24px;|width:20px;height:20px}}"><!-- | + | --><span style="display:inline-block; overflow:hidden; vertical-align:middle; {{#if:{{{full size|}}}|width:24px;height:24px;|width:20px;height:20px}}"><!-- |
-->[[{{#if:{{{icon|}}} | -->[[{{#if:{{{icon|}}} | ||
| File:{{{icon}}} | | File:{{{icon}}} | ||
| {{#var:icon}} }}|{{#if:{{{full size|}}}|24x24px|20x20px}}|link={{{1|}}}]]</span> <!-- | | {{#var:icon}} }}|{{#if:{{{full size|}}}|24x24px|20x20px}}|link={{{1|}}}]]</span> <!-- | ||
− | -->{{# | + | -->[[{{{1}}}|{{#switch:{{lc:{{{class|}}}}} |
− | | | + | | champion = <span style="color:#b36bff; font-weight:bold;"> |
− | | | + | | named = <span style="color:#66cc00; font-weight:bold;"> |
− | }}</includeonly><noinclude> | + | | boss = <span style="color:#ff00ff; font-weight:bold;"> |
+ | }}{{#if:{{{2|}}} | ||
+ | | {{{2|}}} | ||
+ | | {{#var:name}} | ||
+ | }}{{#switch:{{lc:{{{class|}}}}} | ||
+ | | champion | named | boss = </span> | ||
+ | }}]]</includeonly><noinclude> | ||
== Description == | == Description == | ||
Line 21: | Line 27: | ||
| icon = | | icon = | ||
| full size = | | full size = | ||
+ | | class = | ||
}}</pre> | }}</pre> | ||
Line 30: | Line 37: | ||
; icon : Icon file. Defaults to the icon of the monster. | ; icon : Icon file. Defaults to the icon of the monster. | ||
; full size : Set to anything to display the icon in its original size. | ; full size : Set to anything to display the icon in its original size. | ||
+ | ; class : Colors the link depending on the monster classification. Set to either ''champion'', ''named'', or ''boss''. | ||
=== Examples === | === Examples === |
Revision as of 13:11, 19 March 2016
Contents
Description
This template displays a link to an item with its respective icon.
Usage
{{Monster |<item page> |<text> | icon = | full size = | class = }}
Parameters
All parameters are optional unless stated otherwise.
- monster page
- Required. Monster page. The wiki page of the monster.
- text
- Displayed text. Defaults to the name of the monster.
- icon
- Icon file. Defaults to the icon of the monster.
- full size
- Set to anything to display the icon in its original size.
- class
- Colors the link depending on the monster classification. Set to either champion, named, or boss.
Examples
{{Monster link|Nilvas Gracia}}
{{Monster link|Nilvas Gracia|Edgy Demon|full size = y}}