Difference between revisions of "Template:4E power"

From Action
Jump to navigation Jump to search
m (Made some parameters conditional.)
m (Added color selection.)
Line 18: Line 18:
 
<div>
 
<div>
 
{|width="20em;"
 
{|width="20em;"
|-style="background:green; color: white;"
+
|-style="color: white; {{#switch: {{{use|}}}
||'''{{{name|Awesome Power Name}}}'''||align="right" |{{#if:{{{class}}}|{{{class}}}}} {{#if:{{{type}}}|{{{type}}}}} {{#if:{{{level}}}|{{{level}}}}}
+
At-Will | background: green;
 +
Encounter | background: red;
 +
Daily | background: black;
 +
#default | background: #999;
 +
}};"
 +
||'''{{{name|Power}}}'''||align="right" |{{{class}}} {{{type|}}} {{{level|}}}
 
|-style="background:#eee;"
 
|-style="background:#eee;"
 
|colspan="2"|''{{{fluff|This power awesome.}}}''
 
|colspan="2"|''{{{fluff|This power awesome.}}}''
Line 25: Line 30:
 
|colspan="2"|'''{{{use}}}''' ✦ '''{{{keywords}}}'''
 
|colspan="2"|'''{{{use}}}''' ✦ '''{{{keywords}}}'''
 
|-
 
|-
|colspan="2"|'''{{{action}}}''' ... '''{{{target}}}''' {{#if:{{{range}}}|{{{range}}}}}
+
|colspan="2"|'''{{{action}}}''' ... '''{{{target}}}''' {{{range|}}}
 
|-
 
|-
 
|colspan="2"|{{{text}}}
 
|colspan="2"|{{{text}}}

Revision as of 20:22, 16 September 2008

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

Argument

  • name
  • class
  • use - How often the power can be used
  • type - TYpe of power, such as "Attack" or "Utility
  • level - level of the power (optional)
  • fluff - Power fluff.
  • action -
  • attack - Type of attack, such as "Close", or "Melee or Range"
  • range - Range of the attack, such as none, or "weapon"
  • text - Description of the power. Wiki markup is required for this.
Power {{{class}}}
This power awesome.
{{{use}}}{{{keywords}}}
{{{action}}} ... {{{target}}}
{{{text}}}