Difference between revisions of "Template:5x Subclass Ability Section"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(Created page with "<includeonly> {{#if: {{{2|}}}|{{#if: {{{1|}}}|{{#set: Features={{{2}}}}}{{#switch: {{{1}}} | 2 = =={{{2}}}== {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} | 3...")
 
m
 
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#if: {{{2|}}}|{{#if: {{{1|}}}|{{#switch: {{{1}}}
{{#if: {{{2|}}}|{{#if: {{{1|}}}|{{#set: Features={{{2}}}}}{{#switch: {{{1}}}
+
| 2 =<nowiki></nowiki>
| 2 =  
 
 
=={{{2}}}==
 
=={{{2}}}==
{{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}}
+
| 3 =<nowiki></nowiki>
| 3 =
 
 
==={{{2}}}===
 
==={{{2}}}===
{{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}}
+
| 4 =<nowiki></nowiki>
| 4 =
 
 
===={{{2}}}====
 
===={{{2}}}====
{{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}}
+
| 5 =<nowiki></nowiki>
| 5 =
 
 
====={{{2}}}=====
 
====={{{2}}}=====
{{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}}
+
| 6 =<nowiki></nowiki>
| 6 =
 
 
======{{{2}}}======
 
======{{{2}}}======
{{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}}
+
| default =<nowiki></nowiki>
| default =
 
 
==={{{2}}}===
 
==={{{2}}}===
{{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}}
+
}} }}
}}
+
{{#if: {{{4|}}}|''{{{4}}} level{{#if: {{{5|}}}|&ensp;{{{5}}}|}} feature.''<br />|}}  
|<span style="color:#ff0000;">'''!Missing Depth!'''</span>{{#set: Error=Depth Missing}}}}
+
{{{3|}}} }}
|<span style="color:#ff0000;">'''!Missing Feature Name!'''</span>{{#set: Error=Feature Name  Missing}}}}
+
</includeonly><noinclude>{{tocright}}
</includeonly><noinclude>
 
 
 
 
==Use==
 
==Use==
Used in many templates. It places an HTML anchor for the first term (name) and then lists the second term (description).
+
Used in many templates. It places an HTML anchor for the first term (subclass) and then lists the second term (description).
  
 
==Syntax==
 
==Syntax==
<pre>{{5e Ability Section|depth|name|description}}</pre>
+
<pre>{{5x Subclass Ability Section|depth|name|description|optLevel|optSubclassName}}</pre>
===Optional Entries===
 
<pre>|lvl= <!--class level of feature--></pre>
 
  
 
==Example==
 
==Example==
<pre>{{5x Subclass Ability Section|3|FooThe description of foo is that it acts as a placeholder for a value.|lvl=12th|}}</pre>
+
<pre>{{5x Subclass Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.|2nd|Bar}}</pre>
 
   
 
   
 
Produces...
 
Produces...
  
{{5x Subclass Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.|lvl=12th|}}
+
{{5x Subclass Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.|3rd|Bar}}
  
  
[[Category:5x Templates|Subclass Ability Section 5x]]
+
[[Category:5x Templates|Ability Section Template 5x]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:39, 23 September 2024

Use[edit]

Used in many templates. It places an HTML anchor for the first term (subclass) and then lists the second term (description).

Syntax[edit]

{{5x Subclass Ability Section|depth|name|description|optLevel|optSubclassName}}

Example[edit]

{{5x Subclass Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.|2nd|Bar}}

Produces...

Foo

3rd level Bar feature.
The description of foo is that it acts as a placeholder for a value.