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
m
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 attributes|}}{{#vardefine:counter|0}}{{#switch:{{lc:{{{show phys power|}}}}}
+
<includeonly>{{#vardefine:show flavor text|{{{show flavor text|y}}}}}{{#vardefine:show type|{{{show type|y}}}}}{{#vardefine:show lv|{{{show lv|y}}}}}{{#vardefine:show attributes|}}{{#vardefine:counter|0}}{{#switch:{{lc:{{{show phys attack|}}}}}
| y = {{#vardefine:show phys power|y}}{{#vardefine:show attributes|n}}
+
| y = {{#vardefine:show phys attack|y}}{{#vardefine:show attributes|n}}
| n = {{#vardefine:show phys power|n}}
+
| n = {{#vardefine:show phys attack|n}}
| other = {{#vardefine:show phys power|other}}
+
| other = {{#vardefine:show phys attack|other}}
| #default = {{#vardefine:show phys power|}}{{#vardefine:counter|{{#expr:{{#var:counter}}+1}}}}
+
| #default = {{#vardefine:show phys attack|}}{{#vardefine:counter|{{#expr:{{#var:counter}}+1}}}}
}}{{#switch:{{lc:{{{show mag power|}}}}}
+
}}{{#switch:{{lc:{{{show mag attack|}}}}}
| y = {{#vardefine:show mag power|y}}{{#vardefine:show attributes|n}}
+
| y = {{#vardefine:show mag attack|y}}{{#vardefine:show attributes|n}}
| n = {{#vardefine:show mag power|n}}
+
| n = {{#vardefine:show mag attack|n}}
| other = {{#vardefine:show mag power|other}}
+
| other = {{#vardefine:show mag attack|other}}
| #default = {{#vardefine:show mag power|}}{{#vardefine:counter|{{#expr:{{#var:counter}}+1}}}}
+
| #default = {{#vardefine:show mag attack|}}{{#vardefine:counter|{{#expr:{{#var:counter}}+1}}}}
}}{{#switch:{{lc:{{{show base attack|}}}}}
+
}}{{#switch:{{lc:{{{show independent attack|}}}}}
| y = {{#vardefine:show base attack|y}}{{#vardefine:show attributes|n}}
+
| y = {{#vardefine:show independent attack|y}}{{#vardefine:show attributes|n}}
| n = {{#vardefine:show base attack|n}}
+
| n = {{#vardefine:show independent attack|n}}
| other = {{#vardefine:show base attack|other}}
+
| other = {{#vardefine:show independent attack|other}}
| #default = {{#vardefine:show base attack|}}{{#vardefine:counter|{{#expr:{{#var:counter}}+1}}}}
+
| #default = {{#vardefine:show independent attack|}}{{#vardefine:counter|{{#expr:{{#var:counter}}+1}}}}
 
}}{{#switch:{{lc:{{{show phys defense|}}}}}
 
}}{{#switch:{{lc:{{{show phys defense|}}}}}
 
| y = {{#vardefine:show phys defense|y}}{{#vardefine:show attributes|n}}
 
| y = {{#vardefine:show phys defense|y}}{{#vardefine:show attributes|n}}
Line 53: Line 53:
 
! Name {{#ifeq:{{#var:show type}}|n||!! Type
 
! Name {{#ifeq:{{#var:show type}}|n||!! Type
 
}}{{#ifeq:{{#var:show lv}}|n||!! Lv
 
}}{{#ifeq:{{#var:show lv}}|n||!! Lv
}}{{#ifeq:{{#var:show phys power}}|y|!! Phys. power
+
}}{{#ifeq:{{#var:show phys attack}}|y|!! Physical atk.
}}{{#ifeq:{{#var:show mag power}}|y|!! Mag. power
+
}}{{#ifeq:{{#var:show mag attack}}|y|!! Magical atk.
}}{{#ifeq:{{#var:show base attack}}|y|!! Base attack
+
}}{{#ifeq:{{#var:show independent attack}}|y|!! Independent atk.
}}{{#ifeq:{{#var:show phys defense}}|y|!! Phys. defense
+
}}{{#ifeq:{{#var:show phys defense}}|y|!! Physical def.
}}{{#ifeq:{{#var:show mag defense}}|y|!! Mag. defense
+
}}{{#ifeq:{{#var:show mag defense}}|y|!! Magical def.
 
}}{{#ifeq:{{#var:show strength}}|y|!! Strength
 
}}{{#ifeq:{{#var:show strength}}|y|!! Strength
 
}}{{#ifeq:{{#var:show intelligence}}|y|!! Intelligence
 
}}{{#ifeq:{{#var:show intelligence}}|y|!! Intelligence
Line 72: Line 72:
 
== Usage ==
 
== Usage ==
 
<pre>{{Equipment list header
 
<pre>{{Equipment list header
| show phys power .. show exorcism =  
+
| show phys attack .. show exorcism =  
 
| show type =  
 
| show type =  
 
| show lv =  
 
| show lv =  
Line 81: Line 81:
 
All parameters are optional unless stated otherwise.
 
All parameters are optional unless stated otherwise.
  
; show phys power .. show exorcism : Set to ''y'' to show the base attribute in a separate column, ''n'' to hide, ''other'' to display them in the Other column. If one is set to ''y'', the others default to ''other''. If none are set, all base attributes are shown in the Attributes column.
+
; show phys attack .. show exorcism : Set to ''y'' to show the base attribute in a separate column, ''n'' to hide, ''other'' to display them in the Other column. If one is set to ''y'', the others default to ''other''. If none are set, all base attributes are shown in the Attributes column.
 
; show type : Set to ''y'' to show type, ''n'' to hide. Defaults to ''y''.
 
; 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 lv : Set to ''y'' to show level requirement, ''n'' to hide. Defaults to ''y''.

Revision as of 11:52, 29 January 2016

Description

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

Usage

{{Equipment list header
| show phys attack .. show exorcism = 
| show type = 
| show lv = 
| show flavor text = 
}}

Parameters

All parameters are optional unless stated otherwise.

show phys attack .. show exorcism 
Set to y to show the base attribute in a separate column, n to hide, other to display them in the Other column. If one is set to y, the others default to other. If none are set, all base attributes are shown in the Attributes column.
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 flavor text 
Set to y to show flavor text, n to omit. Defaults to y.