Difference between revisions of "Template:4e Creature Bar MM3"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(Corrected the template in noincluded all of the documentation.)
(Making a big functional change. Will document.)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
| style="color: #fdf9d3; background-color: #8c844e; padding: 0.0625em 0.125em 0.0625em 0.625em;" colspan="3" | {{#if:{{{traits|}}}|'''Traits'''|'''{{{action|}}} Actions'''}}
+
<includeonly>| style="color: #fdf9d3; background-color: #8c844e; padding: 0.0625em 0.125em 0.0625em 0.625em;" colspan="3" | {{#if:{{{title|}}}|'''{{{title}}}'''|'''{{{action|}}} Actions'''}}
|- style="background: #dacc84;"
+
|- style="background: #dacc84;"</includeonly>
  
<noinclude>
+
<noinclude>{{Documentation}}</noinclude>
<code>
 
{{4e Creature Bar MM3<br />
 
|traits=y<br />
 
|action=<br />
 
}}<br />
 
</code>
 
Will produce:
 
{| style="background: #eee3a4; line-height: 1.25em;" cellspacing="0" cellpadding="0" width="75%"
 
|- style="background: #dacc84; vertical-align: top;"
 
{{4e Creature Bar MM3
 
|traits=y
 
|action=
 
}}
 
|}
 
 
 
<code>
 
{{4e Creature Bar MM3<br />
 
|traits=<br />
 
|action=Standard<br />
 
}}<br />
 
</code>
 
Will produce:
 
{| style="background: #eee3a4; line-height: 1.25em;" cellspacing="0" cellpadding="0" width="75%"
 
|- style="background: #dacc84; vertical-align: top;"
 
{{4e Creature Bar MM3
 
|traits=
 
|action=Standard
 
}}
 
|}
 
</noinclude>
 

Latest revision as of 04:38, 10 September 2011


Template documentation (for the above template, sometimes hidden or invisible)

Using This Template[edit]

Parameters
Name Required Description Example
title No Any entry for this parameter generates a bar with that exact title Traits
action No For the name of the action type Standard

Examples[edit]

{{4e Creature Bar MM3
|title=Traits
|action=
}}

Generates the following:

Traits
{{4e Creature Bar MM3
|title=
|action=Standard
}}

Generates the following:

Standard Actions