Difference between revisions of "Template:SKWindow"

From SpiralKnights

Jump to: navigation, search
m
m (Protected "Template:SKWindow": Due to misedits of this page, I'm locking this and any suggested changes can be done via the talk page. ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| cellpadding="0" cellspacing="0" align="{{{align|*}}}" style="width: {{{width|*}}}; border: 5px solid #000000; background: #ebc94d; margin: {{{margin|0px}}}; border-radius: 14px; -moz-border-radius: 14px; -webkit-border-radius: 14px; -khtml-border-radius: 14px; -icab-border-radius: 14px; -o-border-radius: 14px;"
+
{| cellpadding="0" cellspacing="0" align="{{{align|*}}}" style="width: {{{width|<includeonly>*</includeonly><noinclude>200px</noinclude>}}}; border: {{{border-width|5px}}} {{{border-type|solid}}} rgb({{{border-color|0,0,0}}}); background: rgb({{{header background-color|235,201,77}}}); margin: {{{margin|0px}}}; border-radius: 14px; -moz-border-radius: 14px; -webkit-border-radius: 14px; -khtml-border-radius: 14px; -icab-border-radius: 14px; -o-border-radius: 14px;"
 
|-
 
|-
| <table cellpadding="0" cellspacing="5" width="100%" style="background: none;"><tr>
+
| <table cellpadding="0" cellspacing="{{#if: {{{icon|}}} | 5 | 10}}" width="100%" style="background: none; color: rgb({{{header font-color|0,0,0}}})"><tr>
{{#if: {{{icon|}}} | <td width="36">[[Image:{{{icon}}}|36px]]</td>}}
+
{{#if: {{{icon|}}} | <td width="36" vertical-align="middle"><div style="width: 36px; height: 36px; overflow: hidden;">[[Image:{{{icon}}}|36px]]</div></td>}}
 
<td align="left"><big><big><big>'''''{{{title|Title}}}'''''</big></big></big></td>
 
<td align="left"><big><big><big>'''''{{{title|Title}}}'''''</big></big></big></td>
{{#if: {{{stars|}}} | <td width="50">{{Star|{{{stars}}}}}</td>}}
+
{{#if: {{{stars|}}} | <td width="50">{{Star|{{{stars}}}|color=4d6d89}}</td>}}
 
</tr></table>
 
</tr></table>
 
|-
 
|-
 
| align="center" |
 
| align="center" |
{| cellpadding="0" cellspacing="5" align="center" style="border: 2px solid #496e8b; background: #114255; width: 100%; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px;"
+
{| cellpadding="0" cellspacing="5" align="center" style="border: {{{body border-width|2px}}} {{{border-type|solid}}} rgb({{{body border-color|73,110,139}}}); background: rgb({{{body background-color|17,66,85}}}); width: 100%; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px;"
 
<noinclude>
 
<noinclude>
 
|-
 
|-
Line 16: Line 16:
 
|}
 
|}
 
|}<noinclude>
 
|}<noinclude>
{| align="center" width="50%" style="background: none;"
+
{{Documentation
|+ '''Use the following to display a table with Spiral Knights' visual style.'''
+
| content =
|-
+
This template create a table in Spiral Knights' visual style. Subpages provide helper templates that work with this one.
|
+
 
<pre>
+
== Usage ==
{{SKWindow
+
This template can be used anywhere to display information.
| width = Number
+
 
| align = Align
+
== Parameters ==
| margin = Number(s)
+
=== Required ===
| icon = Image name
+
; title : The title of the table.
| title = Title
+
; body : The main content area of the table. Only use subpage helper templates here.
| stars = Star rating
+
 
| body = Body
+
=== Optional ===
}}
+
; width : The width of the table in CSS format, i.e.: "200px".
</pre>
+
; 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".
</noinclude>
+
; icon : The file name and extension of the image to be used as the icon in the top-left corner of the table. If not given, the space where the icon displays will be taken up by other elements.
 +
; stars : The star rating to display in the top-right corner of the table. If not given, the space where the stars display will be taken up by other elements.
 +
}}</noinclude>

Latest revision as of 22:48, 9 December 2011

Title


Template documentation

This template create a table in Spiral Knights' visual style. Subpages provide helper templates that work with this one.

Usage

This template can be used anywhere to display information.

Parameters

Required

title 
The title of the table.
body 
The main content area of the table. Only use subpage helper templates here.

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".
icon 
The file name and extension of the image to be used as the icon in the top-left corner of the table. If not given, the space where the icon displays will be taken up by other elements.
stars 
The star rating to display in the top-right corner of the table. If not given, the space where the stars display will be taken up by other elements.
Personal tools