Difference between revisions of "Template:5e Ability Section"
From Dungeons and Dragons Wiki
(Created page with "<includeonly> {{#if: {{{2|}}}|{{#if: {{{1|}}}|{{#set: Features={{{2}}}}}{{#switch: {{{1}}} | 2 = =={{{2}}}== {{{3}}} | 3 = ==={{{2}}}=== {{{3}}} | 4 = ===={{{2}}}==== {{{3}...") |
(added feature level option) |
||
Line 3: | Line 3: | ||
| 2 = | | 2 = | ||
=={{{2}}}== | =={{{2}}}== | ||
− | {{{3}}} | + | {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} |
| 3 = | | 3 = | ||
==={{{2}}}=== | ==={{{2}}}=== | ||
− | {{{3}}} | + | {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} |
| 4 = | | 4 = | ||
===={{{2}}}==== | ===={{{2}}}==== | ||
− | {{{3}}} | + | {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} |
| 5 = | | 5 = | ||
====={{{2}}}===== | ====={{{2}}}===== | ||
− | {{{3}}} | + | {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} |
| 6 = | | 6 = | ||
======{{{2}}}====== | ======{{{2}}}====== | ||
− | {{{3}}} | + | {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} |
| default = | | default = | ||
==={{{2}}}=== | ==={{{2}}}=== | ||
− | {{{3}}} | + | {{#if: {{{lvl|}}}|''{{{lvl}}} level feature''<br />|}}{{{3}}} |
}} | }} | ||
|<span style="color:#ff0000;">'''!Missing Depth!'''</span>{{#set: Error=Depth Missing}}}} | |<span style="color:#ff0000;">'''!Missing Depth!'''</span>{{#set: Error=Depth Missing}}}} | ||
Line 29: | Line 29: | ||
==Syntax== | ==Syntax== | ||
<pre>{{5e Ability Section|depth|name|description}}</pre> | <pre>{{5e Ability Section|depth|name|description}}</pre> | ||
+ | ===Optional Entries=== | ||
+ | <pre>|lvl= <!--class level of feature--></pre> | ||
==Example== | ==Example== | ||
− | <pre>{{5e Ability Section|3| | + | <pre>{{5e Ability Section|3|FooThe description of foo is that it acts as a placeholder for a value.|lvl=12th|}}</pre> |
Produces... | Produces... | ||
− | {{5e Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.}} | + | {{5e Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.|lvl=12th|}} |
[[Category:5e Templates|Ability Section Template 5e]] | [[Category:5e Templates|Ability Section Template 5e]] | ||
</noinclude> | </noinclude> |
Latest revision as of 00:17, 15 March 2022
Contents
Use[edit]
Used in many templates. It places an HTML anchor for the first term (name) and then lists the second term (description).
Syntax[edit]
{{5e Ability Section|depth|name|description}}
Optional Entries[edit]
|lvl= <!--class level of feature-->
Example[edit]
{{5e Ability Section|3|FooThe description of foo is that it acts as a placeholder for a value.|lvl=12th|}}
Produces...
Foo
12th level feature
The description of foo is that it acts as a placeholder for a value.