Difference between revisions of "Template:Sub"

196 bytes added ,  04:52, 10 July 2022
Cleaning up this documentation page. Hopefully the <includeonly> tags won't change existing behavior.
(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>
{|
{|
{{{syntax|}}}|
  {{!}}-
  {{!}}-
  {{!}} 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 [[Enchantment]] for example usage.  


Fields: syntax and cost.
==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>
2,693

edits