Difference between revisions of "Template:Power"

From Worms Knowledge Base

Jump to: navigation, search
(New: The header of the power settings infobox.)
 
(better example)
 
(11 intermediate revisions by the same user not shown)
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.
+
{| width="100%"
 +
|+ 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.  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__
 
== Usage ==
 
== Usage ==
<pre><nowiki>{{Power|columns|width}}
+
&#123;&#123;Power|width|subtitle&#125;&#125;
|-
+
|-
! th !! th !! ...
+
! th !! th !! th !! ...
|-
+
|-
| td || td || ...
+
| td || td || td || ...
{{Power-end|columns|footer text}}
+
&#123;&#123;Power-end|footer text&#125;&#125;
  
OR
+
* All parameters (width, subtitle and footer text) are optional.
 +
* The width shouldn't be less than 12em, or the box will be too narrow.
  
{{Power|columns|width}}
+
{|
 
|-
 
|-
! th !! th !! ...
+
! Columns !! Recommended width
 
|-
 
|-
| td || td || ...
+
| 2 || 13em
|}</nowiki></pre>
+
== Example ==
+
{{Power|3|22em}}
+
 
|-
 
|-
! th !! th !! ...
+
| 3 || 15em
 
|-
 
|-
| td || td || ...
+
| 4 || 22em (default)
{{Power-end|3|Width and footer text are optional.}}
+
|}
  
<pre><nowiki>{{Power|3|22em}}
+
== Example ==
 +
{|
 +
| Take [[Mortar]] for example:
 +
<pre><nowiki>{{Power|22em|(2nd generation)}}
 +
|-
 +
! Power
 +
! Number&amp;nbsp;of clusters
 +
! Maximum injury
 +
! Crater diameter
 +
|-
 +
| ... || ... || ... || ...
 +
|-
 +
| 1 || 4 || ? hp || 23 px
 +
|-
 +
| 2 || 4 || ? || 23
 +
|-
 +
| 3 || 5 || ? || 35
 +
|-
 +
| 4 || 5 || ? || 35
 +
|-
 +
| 5 || 6 || ? || 35
 +
|-
 +
| ... || ... || ... || ...
 +
{{Power-end|Initial explosion has same characteristics as each bomblet explosion. Values are per bomblet.}}</nowiki></pre>
 +
|
 +
{{Power|22em|(2nd generation)}}
 +
|-
 +
! Power
 +
! Number&nbsp;of clusters
 +
! Maximum injury
 +
! Crater diameter
 +
|-
 +
| ... || ... || ... || ...
 +
|-
 +
| 1 || 4 || ? hp || 23 px
 +
|-
 +
| 2 || 4 || ? || 23
 +
|-
 +
| 3 || 5 || ? || 35
 +
|-
 +
| 4 || 5 || ? || 35
 
|-
 
|-
! th !! th !! ...
+
| 5 || 6 || ? || 35
 
|-
 
|-
| td || td || ...
+
| ... || ... || ... || ...
{{Power-end|3|Width and footer text are optional.}}</nowiki></pre>
+
{{Power-end|Initial explosion has same characteristics as each bomblet explosion. Values are per bomblet.}}
 +
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:09, 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 the box will be too narrow.
Columns Recommended width
2 13em
3 15em
4 22em (default)

Example

Take Mortar for example:
{{Power|22em|(2nd generation)}}
|-
! Power
! Number&nbsp;of clusters
! Maximum injury
! Crater diameter
|-
| ... || ... || ... || ...
|-
| 1 || 4 || ? hp || 23 px
|-
| 2 || 4 || ? || 23
|-
| 3 || 5 || ? || 35
|-
| 4 || 5 || ? || 35
|-
| 5 || 6 || ? || 35
|-
| ... || ... || ... || ...
{{Power-end|Initial explosion has same characteristics as each bomblet explosion. Values are per bomblet.}}
Power settings
(2nd generation)
Power Number of clusters Maximum injury Crater diameter
... ... ... ...
1 4  ? hp 23 px
2 4  ? 23
3 5  ? 35
4 5  ? 35
5 6  ? 35
... ... ... ...
Initial explosion has same characteristics as each bomblet explosion. Values are per bomblet.
Personal tools