Difference between revisions of "Template:STDT"

From Starsonata Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
style=margin: 0.25em; border: 1px solid {{{1|#000}}};{{{+|}}} cellpadding=3 cellspacing=0 rules=allnoinclude
+
style="margin: 0.25em; border: 1px solid {{{1|#000}}};{{{+|}}}" cellpadding="3" cellspacing="0" rules="all"<noinclude>
  
 
== Description ==
 
== Description ==
pre
+
<pre>
 
{{STDT}}
 
{{STDT}}
{{STDT|color}}
+
{{STDT|<color>}}
{{STDT|+=styles}}
+
{{STDT|+=<styles>}}
/pre
+
</pre>
 
Standard table design template. Simply paste the following after the beginning of your table:
 
Standard table design template. Simply paste the following after the beginning of your table:
  
Line 16: Line 16:
  
 
== Examples ==
 
== Examples ==
pre
+
<pre>
 
{| {{STDT|silver}}
 
{| {{STDT|silver}}
 
| 1.1 || 1.2
 
| 1.1 || 1.2
Line 22: Line 22:
 
| 2.1 || 2.2
 
| 2.1 || 2.2
 
|}
 
|}
/pre
+
</pre>
  
 
{| {{STDT|silver}}
 
{| {{STDT|silver}}
Line 31: Line 31:
  
 
=== Using the ''+'' parameter ===
 
=== Using the ''+'' parameter ===
pre
+
<pre>
 
{| {{STDT|silver|+=float: right;}}
 
{| {{STDT|silver|+=float: right;}}
 
| 1.1 || 1.2
 
| 1.1 || 1.2
Line 37: Line 37:
 
| 2.1 || 2.2
 
| 2.1 || 2.2
 
|}
 
|}
/pre
+
</pre>
  
 
{| {{STDT|silver|+=float: right;}}
 
{| {{STDT|silver|+=float: right;}}
Line 45: Line 45:
 
|}
 
|}
  
 
+
{{GW}}
 
[[Category:Style templates|STDT]]
 
[[Category:Style templates|STDT]]
/noinclude
+
</noinclude>

Latest revision as of 16:18, 25 January 2009

style="margin: 0.25em; border: 1px solid #000;" cellpadding="3" cellspacing="0" rules="all"

Description

{{STDT}}
{{STDT|<color>}}
{{STDT|+=<styles>}}

Standard table design template. Simply paste the following after the beginning of your table:

Parameters

unnamed parameter 1
Optional. Border color. Defaults to black.
+
Optional. Adds the given styles to the style attribute

Examples

{| {{STDT|silver}}
| 1.1 || 1.2
|-
| 2.1 || 2.2
|}
1.1 1.2
2.1 2.2

Using the + parameter

{| {{STDT|silver|+=float: right;}}
| 1.1 || 1.2
|-
| 2.1 || 2.2
|}
1.1 1.2
2.1 2.2



part of this article was copied from Template:STDT