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:Equipment list header"

From DFO World Wiki
Jump to: navigation, search
m
(add image display option)
Line 1: Line 1:
<includeonly>{{#vardefine:show flavor text|{{{show flavor text|y}}}}}{{#vardefine:show type|{{{show type|y}}}}}{{#vardefine:show lv|{{{show lv|y}}}}}{{#vardefine:show base stats|{{#switch:{{{show base stats|}}}
+
<includeonly>{{#vardefine:show flavor text|{{{show flavor text|y}}}}}{{#vardefine:show type|{{{show type|y}}}}}{{#vardefine:show lv|{{{show lv|y}}}}}{{#vardefine:show image|{{{show image|n}}}}}{{#vardefine:show base stats|{{#switch:{{{show base stats|}}}
 
| y | n | other = {{{show base stats}}}
 
| y | n | other = {{{show base stats}}}
 
|#default = y
 
|#default = y
Line 13: Line 13:
 
-->{| class="wikitable sortable" style="font-size: 12px;"
 
-->{| class="wikitable sortable" style="font-size: 12px;"
 
! Icon
 
! Icon
! Name {{#ifeq:{{#var:show type}}|n||!! Type
+
! Name {{#ifeq:{{#var:show image}}|y|!! Image
 +
}}{{#ifeq:{{#var:show type}}|n||!! Type
 
}}{{#ifeq:{{#var:show lv}}|n||!! Lv
 
}}{{#ifeq:{{#var:show lv}}|n||!! Lv
 
}}{{#ifeq:{{#var:show base stats}}|y|!! Base Stats
 
}}{{#ifeq:{{#var:show base stats}}|y|!! Base Stats

Revision as of 20:05, 15 April 2016

Description

This template creates the header used in weapon lists. Used by Template:Equipment list.

Usage

{{Equipment list header
| show type = 
| show lv = 
| show base stats = 
| show skill bonus = 
| show flavor text = 
}}

Parameters

All parameters are optional unless stated otherwise.

show type 
Set to y to show type, n to hide. Defaults to y.
show lv 
Set to y to show level requirement, n to hide. Defaults to y.
show base stats 
Set to y to show base stats in a separate column, n to hide, other to display them in the Other column. Defaults to y.
show skill bonus
Set to y to show base stats in a separate column, n to hide, other to display them in the Other column. Defaults to other.
show flavor text 
Set to y to show flavor text, n to omit. Defaults to y.