Difference between revisions of "Template:Power"

From Worms Knowledge Base

Jump to: navigation, search
m (Undo revision 15527 by Explorer09 (Talk))
(new parameter for subtitles)
Line 3: Line 3:
 
|
 
|
 
{| width="100%"
 
{| width="100%"
|+ style="font-size: 150%; font-weight: bold;" | Power settings</includeonly><noinclude>The header of the power settings infobox. Must use together with &#123;&#123;[[Template:Power-end|Power-end]]&#125;&#125; template.
+
|+ style="font-size: 100%;" | <span style="font-size: 150%; font-weight: bold;">Power settings</span><!--
 +
-->{{#if: {{{2|}}} | <br/>{{{2}}} }}</includeonly><noinclude>
 +
 
 +
The header of the power settings infobox. Must use together with &#123;&#123;[[Template:Power-end|Power-end]]&#125;&#125; template.
  
 
For weapons with uneditable power settings, use [[:Template:Power-super]] instead.  
 
For weapons with uneditable power settings, use [[:Template:Power-super]] instead.  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__
 
== Usage ==
 
== Usage ==
<pre><nowiki>{{Power|width}}
+
&#123;&#123;Power|width|subtitle&#125;&#125;
|-
+
|-
! th !! th !! th !! ...
+
! th !! th !! th !! ...
|-
+
|-
| td || td || td || ...
+
| td || td || td || ...
{{Power-end|footer text}}</nowiki></pre>
+
&#123;&#123;Power-end|footer text&#125;&#125;
 +
 
 +
* All parameters (width, subtitle and footer text) are optional.
 +
* The width shouldn't be less than 12em, or it'll be too narrow.
  
The width shouldn't be less than 12em.
 
 
{|
 
{|
 
|-
 
|-
Line 28: Line 33:
  
 
== Example ==
 
== Example ==
<pre><nowiki>{{Power|22em}}
+
&#123;&#123;Power|22em|subtitle&#125;&#125;
|-
+
|-
! th !! th !! th !! ...
+
! th !! th !! th !! ...
|-
+
|-
| td || td || td || ...
+
| td || td || td || ...
{{Power-end|Width and footer text are optional.}}</nowiki></pre>
+
&#123;&#123;Power-end|footer text&#125;&#125;
  
{{Power|22em}}
+
{{Power|22em|subtitle}}
 
|-
 
|-
 
! th !! th !! th !! ...
 
! th !! th !! th !! ...
 
|-
 
|-
 
| td || td || td || ...
 
| td || td || td || ...
{{Power-end|Width and footer text are optional.}}</noinclude>
+
{{Power-end|footer text}}</noinclude>

Revision as of 15:54, 21 June 2010


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

For weapons with uneditable power settings, use Template:Power-super instead.

Usage

{{Power|width|subtitle}}
|-
! th !! th !! th !! ...
|-
| td || td || td || ...
{{Power-end|footer text}}
  • All parameters (width, subtitle and footer text) are optional.
  • The width shouldn't be less than 12em, or it'll be too narrow.
Columns Recommended width
2 13em
3 15em
4 22em (default)

Example

{{Power|22em|subtitle}}
|-
! th !! th !! th !! ...
|-
| td || td || td || ...
{{Power-end|footer text}}
Power settings
subtitle
th th th ...
td td td ...
footer text
Personal tools