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"

From DFO World Wiki
Jump to: navigation, search
(add options for APCs, allies)
(adjust colors)
Line 8: Line 8:
 
  | {{#var:icon}} }}|{{#if:{{{full size|}}}|24x24px|20x20px}}|link={{{1|}}}]]</span>&nbsp;<!--  
 
  | {{#var:icon}} }}|{{#if:{{{full size|}}}|24x24px|20x20px}}|link={{{1|}}}]]</span>&nbsp;<!--  
 
-->[[{{{1}}}|{{#switch:{{lc:{{{class|}}}}}
 
-->[[{{{1}}}|{{#switch:{{lc:{{{class|}}}}}
| champion = <span style="color:#b36bff; font-weight:bold;">
+
| champion = <span style="color:#7d01ff;">
| named = <span style="color:#308014; font-weight:bold;">
+
| named = <span style="color:#308014;">
| automated player character | apc = <span style="color:#b3b3b3; font-weight:bold;">
+
| automated player character | apc = <span style="color:#888888;">
| boss = <span style="color:#ff00ff; font-weight:bold;">
+
| boss = <span style="color:#ff00ff;">
| ally = <span style="color:#68d5ed; font-weight:bold;">
+
| 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 16:07, 30 April 2016

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}}

No Icon.png Nilvas Gracia

{{Monster link|Nilvas Gracia|Edgy Demon|full size = y}}

No Icon.png Edgy Demon