Template:Command Header: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
wrapping the code itself in <includeonly> so the parser/Tidy doesn't commit suicide because of out-of-order tags. also other fixes
(propogating optional marks column to Command List template)
(wrapping the code itself in <includeonly> so the parser/Tidy doesn't commit suicide because of out-of-order tags. also other fixes)
Line 1: Line 1:
[[Image:Portrait {{{1}}} {{{2}}}.png|right|64px]] {{#vardefine:bar|0}}
<includeonly>[[Image:Portrait {{{1}}} {{{2}}}.png|right|64px]]
<p class="plainlinks template_edit_link">[[{{{3}}}|View]] {{dot}} [{{SERVER}}{{localurl:{{NAMESPACE}}:{{{3}}}|action=edit}} edit]</p>
<p class="plainlinks template_edit_link">[[{{{3}}}|View]] {{dot}} [{{SERVER}}{{localurl:{{NAMESPACE}}:{{{3}}}|action=edit}} edit]</p>
<table border="1" width="100%">
<table border="1" width="100%">
<tr>
<tr>
{{#if:{{{marks|}}}
{{#vardefine:marks_on|{{#if:{{{marks|}}}|1|0}}}}{{#if:{{{marks|}}}
| {{#vardefine:marks_on|1}} <th bgcolor="#D3D3D3" width="5%">Marks</th><th bgcolor="#D3D3D3" width="25%">Move Name</th>
|<th bgcolor="#D3D3D3" width="5%">Marks</th><th bgcolor="#D3D3D3" width="25%">Move Name</th>
| {{#vardefine:marks_on|0}} <th bgcolor="#D3D3D3" width="30%">Move Name</th> }}
|<th bgcolor="#D3D3D3" width="30%">Move Name</th>}}
<th bgcolor="#D3D3D3" width="30%">Commands</th>
<th bgcolor="#D3D3D3" width="30%">Commands</th>
<th bgcolor="#D3D3D3" width="45%">Notes</th>
<th bgcolor="#D3D3D3" width="45%">Notes</th></includeonly><noinclude>
<noinclude>
|}
{{Documentation}}
{{Documentation}}
[[Category:Move list templates|C]]</noinclude>
[[Category:Move list templates|C]]</noinclude>