Difference between revisions of "Template:Power"

From Worms Knowledge Base

Jump to: navigation, search
m (description text)
(use nested tables; obsolete "columns" parameter)
Line 1: Line 1:
<includeonly>{| class="infobox" cellspacing="2" style="width: {{{width|{{{2|22em}}}}}}; font-size: 90%; text-align: left;"
+
<includeonly>{| class="infobox" style="width: {{{width|{{{1|22em}}}}}}; font-size: 90%;"
 
|-
 
|-
! colspan="{{{1}}}" style="font-size: 150%; text-align: center" | Power settings</includeonly><noinclude>The header of the power settings infobox. Must use together with <nowiki>{{</nowiki>[[Template:Power-end|Power-end]]<nowiki>}}</nowiki> or a table ending markup "<code><nowiki>|}</nowiki></code>".  
+
|
 +
{| width="100%"
 +
|+ style="font-size: 150%; font-weight: bold;" | Power settings</includeonly><noinclude>The header of the power settings infobox. Must use together with <nowiki>{{</nowiki>[[Template:Power-end|Power-end]]<nowiki>}}</nowiki>.  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__
 
== Usage ==
 
== Usage ==
<pre><nowiki>{{Power|columns|width}}
+
<pre><nowiki>{{Power|width}}
 
|-
 
|-
! th !! th !! ...
+
! th !! th !! th !! ...
 
|-
 
|-
| td || td || ...
+
| td || td || td || ...
{{Power-end|columns|footer text}}</nowiki></pre>
+
{{Power-end|footer text}}</nowiki></pre>
  
OR
 
 
<pre><nowiki>{{Power|columns|width}}
 
|-
 
! th !! th !! ...
 
|-
 
| td || td || ...
 
|}</nowiki></pre>
 
 
== Example ==
 
== Example ==
<pre><nowiki>{{Power|3|22em}}
+
<pre><nowiki>{{Power|22em}}
 
|-
 
|-
! th !! th !! ...
+
! th !! th !! th !! ...
 
|-
 
|-
| td || td || ...
+
| td || td || td || ...
{{Power-end|3|Width and footer text are optional.}}</nowiki></pre>
+
{{Power-end|Width and footer text are optional.}}</nowiki></pre>
  
{{Power|3|22em}}
+
{{Power|22em}}
 
|-
 
|-
 
! th !! th !! ...
 
! th !! th !! ...
 
|-
 
|-
 
| td || td || ...
 
| td || td || ...
{{Power-end|3|Width and footer text are optional.}}</noinclude>
+
{{Power-end|Width and footer text are optional.}}</noinclude>

Revision as of 14:31, 3 August 2009

The header of the power settings infobox. Must use together with {{Power-end}}.

Usage

{{Power|width}}
|-
! th !! th !! th !! ...
|-
| td || td || td || ...
{{Power-end|footer text}}

Example

{{Power|22em}}
|-
! th !! th !! th !! ...
|-
| td || td || td || ...
{{Power-end|Width and footer text are optional.}}
Power settings
th th ...
td td ...
Width and footer text are optional.
Personal tools