Difference between revisions of "Template:Sub"
Jump to navigation
Jump to search
(Created new template to fill need for syntax boxes within description text. May need testing) |
(Cleaning up this documentation page. Hopefully the <includeonly> tags won't change existing behavior.) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | |||
{| | {| | ||
{{!}}- | {{!}}- | ||
{{!}} style="background:darkblue; color:white" {{!}} '''Syntax''' | {{!}} style="background:darkblue; color:white" {{!}} '''Syntax''' | ||
{{!}}- | {{!}}- | ||
{{!}} style="background:lightblue"{{!}}<tt> {{{syntax|}}} </tt> | {{!}} style="background:lightblue"{{!}}<tt> {{{syntax|}}} </tt> | ||
{{#if:{{{cost|}}}| | {{#if:{{{cost|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="background:pink {{!}} {{{cost|}}} | {{!}} style="background:pink {{!}} {{{cost|}}} | ||
}} | }} | ||
|} | |}</includeonly> | ||
<noinclude> | <noinclude> | ||
This template should be used within the [[Template:AB|Ability]] template to create syntax/cost boxes within the body of the description. See [[Ecology#Rebirth|Ecology - Rebirth]] for example usage. | |||
This template should be used within the [[Template:AB|Ability]] template to create syntax/cost boxes within the body of the description. See [[ | |||
==Parameters== | |||
*<code>syntax</code> | |||
*<code>cost</code> - Optional. | |||
[[Category:Templates]]</noinclude> | ==Example== | ||
<pre>{{sub | |||
|syntax = EVOKE HOD | |||
|cost = Power: 3 (any) | |||
}}</pre> | |||
{{Sub | |||
|syntax = EVOKE HOD | |||
|cost = Power: 3 (any) | |||
}} | |||
[[Category: Templates]]</noinclude> |
Latest revision as of 04:52, 10 July 2022
This template should be used within the Ability template to create syntax/cost boxes within the body of the description. See Ecology - Rebirth for example usage.
Parameters
syntax
cost
- Optional.
Example
{{sub |syntax = EVOKE HOD |cost = Power: 3 (any) }}
Syntax |
EVOKE HOD |
Power: 3 (any) |