Difference between revisions of "User:Trias/sandbox/template"

From SpiralKnights

Jump to: navigation, search
Line 1: Line 1:
{{SKWindow2|width=40em|collapsible={{{collapsible|yes}}} |state={{{state|uncollapsed}}}
+
{| cellpadding="0" cellspacing="4" align="{{{align|*}}}" style="width: {{{width|<includeonly>*</includeonly><noinclude>200px</noinclude>}}}; margin: {{{margin|0px}}}; border: 2px solid #496e8b; background: #114255; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px;" class="wikitable sortable {{#if:{{{collapsible|}}}|collapsible {{{state|uncollapsed}}}}}"
|header={{PAGENAME}}'s Damage Table}}
+
{{#if:{{{header|}}}| !colspan=0 class="unsortable" style="background: #ebc94d; padding: 2px 2px 2px 2px;" {{!}}{{{header|}}}}}<noinclude>
{{SKNewRow}}
+
|-
{{SKCell2||background=#114255|unsortable=yes}}
+
|
{{SKCell2|'''Stratum 1'''|center|background=#ebc94d|unsortable=yes}}
+
|}
{{SKCell2|'''Stratum 2'''|center|background=#ebc94d|unsortable=yes}}
+
{{SKCell2|'''Stratum 3'''|center|background=#ebc94d|unsortable=yes}}
+
{{SKCell2|'''Stratum 4'''|center|background=#ebc94d|unsortable=yes}}
+
{{SKCell2|'''Stratum 5'''|center|background=#ebc94d|unsortable=yes}}
+
{{SKCell2|'''Stratum 6'''|center|background=#ebc94d|unsortable=yes}}
+
{{{1|}}}
+
{{Table/End}}<noinclude>
+
 
{{Documentation
 
{{Documentation
 
| content =
 
| content =
This template creates a weapon damage table. Subpages provide helper templates that work with this one.
+
This template creates a more compact table in Spiral Knights' visual style, but without a header. Use SKCell2 with this template.
  
 
== Usage ==
 
== Usage ==
This template can be used to display the damage information of a weapon.
+
This template can be used anywhere to display information.
  
 
== Parameters ==
 
== Parameters ==
=== Required ===
 
; 1 : Rows with damages of different attack modes/ vs. creature group. Use [[template:SKDamageRow]].
 
 
=== Optional ===
 
=== Optional ===
; collapsible : Whether to make the table collapsible. Possible values "yes" or "no".  Default value is "yes".
+
; width : The width of the table in CSS format, i.e.: "200px".
 +
; align : Where the table aligns to. By default it displays inline. Accepted values are "left", "center", "right", and "justify".
 +
; margin : How much space is around the outside of the table, in CSS format, i.e.: "20px" or "10px 20px 10px 20px".
 +
; header : Text to add as header. If left blank no header is generated.
 +
; collapsible : Whether to make the table collapsible. Possible values "yes" or "no".  Default value is "no". (requires header)
 
; state : The default state of the table either "collapsed" or "uncollapsed". Default value is uncollapsed.
 
; state : The default state of the table either "collapsed" or "uncollapsed". Default value is uncollapsed.
 
}}</noinclude>
 
}}</noinclude>

Revision as of 19:49, 23 August 2011

Documentation

This template creates a more compact table in Spiral Knights' visual style, but without a header. Use SKCell2 with this template.

Usage

This template can be used anywhere to display information.

Parameters

Optional

width 
The width of the table in CSS format, i.e.: "200px".
align 
Where the table aligns to. By default it displays inline. Accepted values are "left", "center", "right", and "justify".
margin 
How much space is around the outside of the table, in CSS format, i.e.: "20px" or "10px 20px 10px 20px".
header 
Text to add as header. If left blank no header is generated.
collapsible 
Whether to make the table collapsible. Possible values "yes" or "no". Default value is "no". (requires header)
state 
The default state of the table either "collapsed" or "uncollapsed". Default value is uncollapsed.
Personal tools