Difference between revisions of "Template:4e Power"
From Dungeons and Dragons Wiki
m (Saving 20 more bytes per power.) |
m (Alright, should be good now.) |
||
(20 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| style="line-height: 1.25em; width:600px; border: 2px solid" cellspacing="0" cellpadding="0" | <includeonly>{| style="line-height: 1.25em; width:600px; border: 2px solid" cellspacing="0" cellpadding="0" | ||
− | {{ | + | {{Full Row |
− | + | |rowstyle=color: #fdf9d3; {{#switch: {{{usage}}} | |
− | + | |At-Will=background-color: #598d60; | |
− | + | |Encounter=background-color: #80152E; | |
− | + | |Daily=background-color: #3D4040; | |
− | + | |background-color: #FF00FF; [[Category:Improperly Formatted 4e Powers]] | |
+ | }} | ||
|padding=0.625em 0.625em 0.0625em | |padding=0.625em 0.625em 0.0625em | ||
− | | | + | |content=[[{{{name}}} (4e Power)|<span style=color:#fdf9d3; border-radius-bottom-left:20px; font-size:1.25em;">'''{{{name}}}'''</span>]] <div style="text-align:right; float:right;">{{#switch: {{{owner}}} |
− | + | |Base Class=[[{{{class}}} (4e Class)|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">{{{class}}}</span>]] {{#if:{{{pact|}}}|({{{pact}}} [[Pact|<span style=color:#fdf9d3; -border-radius-bottom-left:20px;">Pact</span>]])}} {{{type}}} {{{level}}}[[Type::{{{class}}} {{{type}}} Power| ]][[Level::{{{level}}}| ]] | |
− | + | |Class Feature=[[{{{class}}} (4e Class)|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">{{{class}}}</span>]] {{#if:{{{type2|}}}|{{{type2}}}|Class Feature}}[[Type::{{{class}}} {{{type2|Class Feature}}}| ]][[Level::NA| ]] | |
− | + | |Paragon Class=[[{{{class}}} (4e Paragon Path)|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">{{{class}}}</span>]] {{#if:{{{pact|}}}|({{{pact}}} [[Pact|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">Pact</span>]])}} {{{type}}} {{{level}}}[[Type::{{{class}}} {{{type}}} Power| ]][[Level::{{{level}}}| ]] | |
− | + | |Feat=[[Type::{{{type|}}} Feat Power]][[Level::NA| ]] | |
− | + | |Race=[[{{{class}}} (4e Race)|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">{{{class}}}</span>]] Racial Power[[Type::{{{class}}} {{{type}}} Racial Power| ]][[Level::NA| ]] | |
− | + | |Epic Destiny=[[{{{class}}} (4e Epic Destiny)|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">{{{class}}}</span>]] {{#if:{{{pact|}}}|({{{pact}}} [[Pact|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">Pact</span>]])}} {{{type}}} {{{level}}}[[Type::{{{class}}} {{{type}}} Power| ]][[Level::{{{level}}}| ]] | |
− | + | |[[{{{class}}} (4e Class)|<span style=color:#fdf9d3; border-radius-bottom-left:20px;">{{{class}}}</span>]] {{{type}}} {{{level}}}[[Type::{{{class}}} {{{type}}} Power| ]][[Level::{{{level}}}| ]] | |
− | + | }}</div> | |
− | + | }} {{Full Row | |
− | + | |rowstyle=background: #eee3a4; | |
− | + | |padding=0.0625em 0.625em 0.0625em 0.625em | |
− | }} {{ | + | |content=''{{{flavor}}}'' |
− | + | }} {{4e Power/Full Row|'''[[Usage::{{{usage}}}]]'''{{#if:{{{keywords|}}}| ✦ {{#arraymap: {{{keywords}}}| ,|z|{{#if: {{#pos: z|<nowiki></nowiki> or |0}}|[[{{#sub: z|0|{{#pos: z|<nowiki></nowiki> or |0}}}} (4e Keyword)|{{#sub: z|0|{{#pos: z|<nowiki></nowiki> or |0}}}}]][[Keyword::{{#sub: z|0|{{#pos: z|<nowiki></nowiki> or |0}}}}| ]] or [[{{#sub: z|{{#expr:{{#pos: z|<nowiki></nowiki> or |0}}+4}}|0}} (4e Keyword)|{{#sub: z|{{#expr:{{#pos: z|<nowiki></nowiki> or |0}}+4}}|0}}]][[Keyword::{{#sub: z|{{#expr:{{#pos: z|<nowiki></nowiki> or |0}}+4}}|0}}| ]]|[[z (4e Keyword)|z]][[Keyword::z| ]]}}}} }} | |
− | |||
− | |||
− | }} {{4e Power/Full Row | ||
− | |||
− | |||
− | |||
}} {{#if: {{{special1|}}} | | }} {{#if: {{{special1|}}} | | ||
− | + | {{4e Power/Full Row|'''Special:''' {{{special1}}}}} | |
− | + | }} {{Row | |
− | + | |style-left=text-indent: -0.625em; width: 9.5em; | |
− | + | |padding=0.0625em 0.625em 0.0625em 1.25em | |
− | + | |left='''[[Action Type::{{{actiontype}}}]]''' | |
− | }} {{ | + | |right='''{{{range}}}''' {{{rangemod|}}}{{#set:Range={{{range}}}{{#if:{{{rangemod|}}}| {{{rangemod}}}|}}}} |
− | + | }} {{#if: {{{trigger|}}} | | |
− | + | {{4e Power/Full Row|'''Trigger:''' {{{trigger}}}}} | |
− | + | }} {{#if: {{{prerequisite|}}} | | |
− | + | {{4e Power/Full Row|'''Prerequisite:''' {{{prerequisite}}}}} | |
− | }} {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} {{#if: {{{prerequisite|}}} | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{requirement|}}} | | }} {{#if: {{{requirement|}}} | | ||
− | + | {{4e Power/Full Row|'''Requirement:''' {{{requirement}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{special2|}}} | | }} {{#if: {{{special2|}}} | | ||
− | + | {{4e Power/Full Row|'''Special:''' {{{special2}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{target|}}} | | }} {{#if: {{{target|}}} | | ||
− | + | {{4e Power/Full Row|'''{{#if: {{{secondarytarget|}}}|Primary}} Target:''' {{{target}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{special3|}}} | | }} {{#if: {{{special3|}}} | | ||
− | + | {{4e Power/Full Row |'''Special:''' {{{special3}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{attack|}}} | | }} {{#if: {{{attack|}}} | | ||
− | + | {{#ifeq: {{{type}}} | Attack | | |
− | + | {{4e Power/Full Row|'''Attack:''' {{{attack}}} {{#if: {{{extra11|}}}| {{{extra11}}}}} vs. {{#ifeq: {{{defense}}}|AC|Armor Class|{{{defense}}}}}{{#if: {{{extra12|}}}| {{{extra12}}}}}{{#if: {{{attackextra|}}}|, {{{attackextra}}}.}} | |
− | + | }} {{#if: {{{special4|}}} | | |
− | + | {{4e Power/Full Row|'''Special:''' {{{special4}}}}} | |
− | + | }} {{Full Row | |
− | + | |rowstyle=background: #eee3a4; | |
− | + | |style=text-indent: -0.625em; | |
− | + | |padding=0.0625em 0.625em 0.0625em 1.25em | |
− | + | |content='''Hit:''' {{{hit}}} | |
− | + | }} {{#if: {{{miss|}}} | | |
− | + | {{4e Power/Full Row|'''Miss:''' {{{miss}}}}} | |
− | + | }} {{#if: {{{weapon1|}}} | | |
− | + | {{4e Power/Full Row|'''Weapon:''' {{{weapon1}}}}} | |
− | + | }} | |
− | + | }} {{#if: {{{special5|}}} | | |
− | + | {{4e Power/Full Row|'''Special:''' {{{sp}}}}} | |
− | + | }} {{#if: {{{secondarytarget|}}} | | |
− | + | {{4e Power/Full Row|'''Secondary Target:''' {{{secondarytarget}}}}} | |
− | + | }} {{#if: {{{secondaryattack|}}} | | |
− | + | {{4e Power/Full Row|'''Secondary Attack:''' {{{secondaryattack}}} {{#if: {{{extra21|}}}| {{{extra21}}}}} vs. {{{secondarydefense}}}{{#if: {{{extra22|}}}| {{{extra22}}}}}{{#if: {{{secondaryattackextra|}}} | ,{{{secondaryattackextra}}} }} | |
− | + | }} {{Full Row | |
− | + | |rowstyle=background: #eee3a4; | |
− | + | |style=text-indent: -0.625em; | |
− | + | |padding=0.0625em 0.625em 0.0625em 1.25em | |
− | + | |content='''Hit:''' {{{secondaryhit}}} | |
− | + | }} {{#if: {{{secondarymiss|}}} | | |
− | + | {{4e Power/Full Row|'''Miss:''' {{{secondarymiss}}}}} | |
− | + | }} {{#if: {{{weapon2|}}} | | |
− | + | {{4e Power/Full Row|'''Weapon:''' {{{weapon2}}}}} | |
− | + | }} | |
− | + | }} {{#if: {{{tertiarytarget|}}} | | |
− | + | {{4e Power/Full Row|'''Tertiary Target:''' {{{tertiarytarget}}}}} | |
− | + | }} {{#if: {{{tertiaryattack|}}} | | |
− | + | {{4e Power/Full Row|'''Tertiary Attack:''' {{{tertiaryattack}}} {{#if: {{{extra31|}}}| {{{extra31}}}}} vs. {{{tertiarydefense}}}{{#if: {{{extra32|}}}| {{{extra32}}}}}{{#if: {{{tertiaryattackextra|}}} |, {{{tertiaryattackextra}}} }} | |
− | + | }} {{Full Row | |
− | + | |rowstyle=background: #eee3a4; | |
− | + | |style=text-indent: -0.625em; | |
− | + | |padding=0.0625em 0.625em 0.0625em 1.25em | |
− | + | |content='''Hit:''' {{{tertiaryhit}}} | |
− | + | }} {{#if: {{{tertiarymiss|}}} | | |
− | + | {{4e Power/Full Row|'''Miss:''' {{{tertiarymiss}}}}} | |
− | + | }} {{#if: {{{weapon3|}}} | | |
− | + | {{4e Power/Full Row|'''Weapon:''' {{{weapon3}}}}} | |
− | + | }} | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} {{#ifeq: {{{type}}} |Utility | | }} {{#ifeq: {{{type}}} |Utility | | ||
− | + | {{Full Row | |
− | + | |rowstyle=background: #eee3a4; | |
− | + | |style=text-indent: -0.625em; | |
− | + | |padding=0.0625em 0.625em 0.0625em 1.25em | |
− | + | |content='''Effect:''' {{{effect}}} | |
}} | | }} | | ||
− | + | {{#if: {{{effect|}}} | | |
− | + | {{4e Power/Full Row|'''Effect:''' {{{effect}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{weapon4|}}}| | }} {{#if: {{{weapon4|}}}| | ||
− | + | {{4e Power/Full Row|'''Weapon:''' {{{weapon4}}}}} | |
− | |||
− | |||
− | |||
}} | }} | ||
− | |||
}} {{#if: {{{extra|}}} | | }} {{#if: {{{extra|}}} | | ||
− | + | {{4e Power/Full Row|{{{extra}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{sustain|}}} | | }} {{#if: {{{sustain|}}} | | ||
− | + | {{4e Power/Full Row |'''Sustain [[Sustain Action Type::{{{sustainaction}}} Action|{{{sustainaction}}}]]:''' {{{sustain}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{buildoption|}}} | | }} {{#if: {{{buildoption|}}} | | ||
− | + | {{4e Power/Full Row |'''{{{buildoption}}}:''' {{{buildinfo}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} {{#if: {{{special|}}} | | }} {{#if: {{{special|}}} | | ||
− | + | {{4e Power/Full Row |'''Special:''' {{{special}}}}} | |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
|}<br /></includeonly><noinclude>{{Documentation}}</noinclude> | |}<br /></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 22:14, 6 May 2012
Template documentation (for the above template, sometimes hidden or invisible)
Contents
Name | Required | Description | Example |
---|---|---|---|
name | Yes | The name of the power | Holy Wrath |
owner | Yes | Base Class, Class Feature, Paragon Class, Feat, Race, or Epic Destiny | Base Class |
class | Yes | The name of the class or race this belongs to. | Paladin |
pact | No | The pact this power is from, if applicable. | Star |
type | Yes | The type of this power (Utility, Attack, etc.). | Utility |
level | No | The level of this power | 1 |
usage | Yes | At-Will, Encounter, or Daily. | At-Will |
flavor | No | The flavor text for this power | |
keywords | No | Keywords for this power. Separate with a comma and space. | |
actiontype | Yes | Immediate Interrupt, Immediate Reaction, Standard, Minor, Move | Standard |
trigger | No | The trigger for the power. | |
range | Yes | Ranged, Close Burst, Melee, etc. | Close Burst |
rangemod | No | The range in squares this attack has. | 3 |
prerequisite | No | Prerequisites to use this attack. | |
requirement | No | Requirements to use this attack. | |
target | No | Primary target for the power. | |
attack | No | Attack stat against the primary target. | |
attackextra | No | ||
defense | No | Defense stat for the primary target. | |
hit | No | What to do when the primary attack hits. | |
miss | No | What to do when the primary attack misses. | |
secondarytarget | No | Secondary target for the power. | |
secondaryattack | No | Attack stat against the secondary target. | |
secondaryattackextra | No | ||
secondarydefense | No | Defense stat for the secondary target. | |
secondaryhit | No | What to do when the secondary attack hits. | |
secondarymiss | No | What to do when the secondary attack misses. | |
tertiarytarget | No | Tertiary target for the power. | |
tertiaryattack | No | Attack stat against the tertiary target. | |
tertiaryattackextra | No | ||
tertiarydefense | No | Defense stat for the tertiary target. | |
tertiaryhit | No | What to do when the tertiary attack hits. | |
tertiarymiss | No | What to do when the tertiary attack misses. | |
effect | No | Effect for a Utility power. | |
extra | No | Any extra text you want to add. | |
sustain | No | How the power is sustained. | |
buildoption | No | ||
buildinfo | No | ||
special | No |
Example[edit]
{{4e Power |name=Test Power |owner=Base Class |class=Warlock |level=1 |usage=At-Will |owner=Race |actiontype=Immediate Reaction |range=Ranged |rangemod=10 |type=Attack |prerequisite=prereq |requirement=requirement |effect=Test effect }}
Test Power Warlock Racial Power
| |
{{{flavor}}} | |
At-Will | |
Immediate Reaction | Ranged 10 |
Prerequisite: prereq | |
Requirement: requirement | |
Effect: Test effect |
Visit Template:4e Power/doc to edit this text! (How does this work?)