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
(add image display option)
m
 
(7 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
     begin table
 
     begin table
  
-->{| class="wikitable sortable" style="font-size: 12px;"
+
-->{| class="wikitable sortable {{{html class|}}}" style="font-size: 12px;"
 
! Icon
 
! Icon
 
! Name {{#ifeq:{{#var:show image}}|y|!! Image
 
! Name {{#ifeq:{{#var:show image}}|y|!! Image
Line 18: Line 18:
 
}}{{#ifeq:{{#var:show base stats}}|y|!! Base Stats
 
}}{{#ifeq:{{#var:show base stats}}|y|!! Base Stats
 
}}{{#ifeq:{{#var:show skill bonus}}|y|!! Skill Bonus
 
}}{{#ifeq:{{#var:show skill bonus}}|y|!! Skill Bonus
}}!! Other
+
}}!! Other !! Options
 
|-</includeonly><noinclude>
 
|-</includeonly><noinclude>
 
== Description ==
 
== Description ==
Line 31: Line 31:
 
| show skill bonus =  
 
| show skill bonus =  
 
| show flavor text =  
 
| show flavor text =  
 +
| html class =
 
}}</pre>
 
}}</pre>
  
Line 39: Line 40:
 
; 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''.
 
; 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 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 skill bonus: Set to ''y'' to show skill bonuses 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''.
 
; show flavor text : Set to ''y'' to show flavor text, ''n'' to omit. Defaults to ''y''.
 
+
; html class : Class that should be assigned to the list to apply a style.
  
 
[[Category:Formatting Templates]]
 
[[Category:Formatting Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:50, 25 September 2023

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 = 
| html class = 
}}

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 skill bonuses 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.
html class 
Class that should be assigned to the list to apply a style.