Difference between revisions of "Template:4E power"

From Action
Jump to navigation Jump to search
m (Fixed text style.)
(Fixed some issues with cell background color. Power text has light grey background color to separate it from page text.)
Line 1: Line 1:
<noinclude>
 
 
<!-- Documentation -->
 
<!-- Documentation -->
 
This template is used to display a power for 4th Edition Dungeon & Dragon.
 
This template is used to display a power for 4th Edition Dungeon & Dragon.
Line 17: Line 16:
  
 
== Preview ==
 
== Preview ==
<!-- Category -->
+
<onlyinclude>
[[Category:Game templates]]
+
{|style="border:0px;" cellpadding="0" cellspacing="0"
</noinclude>
+
|style="width: 40em;"|
{|style="width:40em;"
+
{|width="100%" style="color:white;{{#switch: {{{use}}}
|-style="color: white; {{#switch: {{{use}}}
 
 
|At-Will = background: green;
 
|At-Will = background: green;
 
|Encounter = background: red;
 
|Encounter = background: red;
 
|Daily = background: black;
 
|Daily = background: black;
 
|background: #999;
 
|background: #999;
}};"
+
}};" cellpadding="3" cellspacing="0" border="0"
||'''{{{name}}}'''||align="right" |{{{class}}} {{{type|}}} {{{level|}}}
+
|'''{{{name|Awesome Power}}}''' ||align="right"|{{{class|}}} {{{type|}}} {{{level|}}}
|-style="background:#eee;"
+
|}
|colspan="2"|''{{{fluff|You open a can of whoop-ass.}}}''
 
 
|-
 
|-
|colspan="2"|<span style="font-weight: bold;">{{{use}}}</span> {{#if:{{{keywords|}}}|✦ <span style="font-weight: bold;">{{{keywords|}}}</span>}}
+
| style="background:#eee; padding: 3px;" | ''{{{fluff|You open a can of whoop-ass.}}}''
 
|-
 
|-
|colspan="2"|'''{{{action}}}''' &nbsp;&nbsp;&nbsp;&nbsp; '''{{{target}}}''' {{{range|}}}
+
| style="background:#f9f9f9; padding: 3px;" |<span style="font-weight: bold;">{{{use}}}</span> {{#if:{{{keywords|}}}|✦ <span style="font-weight: bold;">{{{keywords|}}}</span>}}
 
|-
 
|-
|colspan="2"|{{{text}}}
+
| style="background:#f9f9f9; padding: 3px;" |'''{{{action}}}''' &nbsp;&nbsp;&nbsp;&nbsp; '''{{{target}}}''' {{{range|}}}
|}<noinclude>
+
|-
 +
| style="background:#f9f9f9; padding: 3px;" |{{{text}}}
 +
|}
 +
</onlyinclude>
 
<small>''This text is not part of the template. It is included only as an indicator vertical space usage.''</small>
 
<small>''This text is not part of the template. It is included only as an indicator vertical space usage.''</small>
</noinclude>
+
<!-- Category -->
 +
[[Category:4E templates]]

Revision as of 21:02, 7 December 2008

This template is used to display a power for 4th Edition Dungeon & Dragon.

Argument

  • name
  • class
  • fluff - Power fluff.
  • use - How often the power can be used. Use one of At-Will, Encounter or Daily.
  • type - Type of power, such as "Attack" or "Utility
  • level - level of the power (optional)
  • action -
  • target - Type of attack, such as "Close", or "Melee or Range". Not to be confused with the Target: feature, that is part of the text, below.
  • range - Range of the attack, such as none, or "weapon"
  • text - Description of the power. Wiki markup is required for this.

Preview

Awesome Power
You open a can of whoop-ass.
{{{use}}}
{{{action}}}      {{{target}}}
{{{text}}}

This text is not part of the template. It is included only as an indicator vertical space usage.