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"
(add options for APCs, allies) |
(adjust colors) |
||
Line 8: | Line 8: | ||
| {{#var:icon}} }}|{{#if:{{{full size|}}}|24x24px|20x20px}}|link={{{1|}}}]]</span> <!-- | | {{#var:icon}} }}|{{#if:{{{full size|}}}|24x24px|20x20px}}|link={{{1|}}}]]</span> <!-- | ||
-->[[{{{1}}}|{{#switch:{{lc:{{{class|}}}}} | -->[[{{{1}}}|{{#switch:{{lc:{{{class|}}}}} | ||
− | | champion = <span style="color:# | + | | champion = <span style="color:#7d01ff;"> |
− | | named = <span style="color:#308014 | + | | named = <span style="color:#308014;"> |
− | | automated player character | apc = <span style="color:# | + | | automated player character | apc = <span style="color:#888888;"> |
− | | boss = <span style="color:#ff00ff | + | | boss = <span style="color:#ff00ff;"> |
− | | ally = <span style="color:# | + | | ally = <span style="color:#00d1ff;"> |
}}{{#if:{{{2|}}} | }}{{#if:{{{2|}}} | ||
| {{{2|}}} | | {{{2|}}} | ||
Line 39: | Line 39: | ||
; 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''. | + | ; class : Colors the link depending on the monster classification. Set to either ''champion'', ''named'', ''apc'', ''ally', or ''boss''. |
=== Examples === | === Examples === |
Revision as of 15:07, 30 April 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, apc, ally', or boss.
Examples
{{Monster link|Nilvas Gracia}}
{{Monster link|Nilvas Gracia|Edgy Demon|full size = y}}