Difference between revisions of "Template:SKWindowsmall/doc"

From SpiralKnights

Jump to: navigation, search
m (Created documentation)
 
m (added parameter)
Line 1: Line 1:
 
<noinclude>{{documentation subpage}}</noinclude>
 
<noinclude>{{documentation subpage}}</noinclude>
 
This template creates a table in Spiral Knights' visual style. Subpages from the [[Template:SKWindow]] template provide helper templates that work with this one.
 
This template creates a table in Spiral Knights' visual style. Subpages from the [[Template:SKWindow]] template provide helper templates that work with this one.
 +
==Parameters==
 +
===Required===
 +
'''title'''
 +
:a line of text, will appear in yellow header area
 +
'''body'''
 +
:content of the skwindowsmall goes here. Can work with most other templates.
 +
 +
===Optional===
 +
'''title-align'''
 +
:CSS command such as "left" or "center," positions the title text in the yellow header area horizontally.
 +
 
==Usage==
 
==Usage==
This template can be used anywhere to display information.
+
<nowiki>
 +
{{SKWindowsmall</nowiki><br/><nowiki>
 +
| title= </nowiki><br/><nowiki>
 +
| title-align= </nowiki><br/><nowiki>
 +
| body= </nowiki><br/><nowiki>
 +
}}</nowiki>
 +
 
 +
:;Example:
 +
 
 +
<nowiki>
 +
{{SKWindowsmall</nowiki><br/><nowiki>
 +
| title= Hey look at me I'm a title </nowiki><br/><nowiki>
 +
| title-align= center </nowiki><br/><nowiki>
 +
| body= Hey look at me I'm content. You should probably use helper templates/ SK cells in here! </nowiki><br/><nowiki>
 +
}}</nowiki>
 +
 
 +
:;Produces:
  
<pre>
 
 
{{SKWindowsmall
 
{{SKWindowsmall
| title=
+
| title= Hey look at me I'm a title
| body=
+
| title-align= center
}}</pre>
+
| body= Hey look at me I'm content. You should probably use helper templates/SK cells in here!
 +
}}

Revision as of 19:48, 8 January 2015

This template creates a table in Spiral Knights' visual style. Subpages from the Template:SKWindow template provide helper templates that work with this one.

Parameters

Required

title

a line of text, will appear in yellow header area

body

content of the skwindowsmall goes here. Can work with most other templates.

Optional

title-align

CSS command such as "left" or "center," positions the title text in the yellow header area horizontally.

Usage

{{SKWindowsmall
| title=
| title-align=
| body=
}}

Example

{{SKWindowsmall
| title= Hey look at me I'm a title
| title-align= center
| body= Hey look at me I'm content. You should probably use helper templates/ SK cells in here!
}}

Produces
Hey look at me I'm a title
Hey look at me I'm content. You should probably use helper templates/SK cells in here!
Personal tools