Template:5e Subclass Ability Section: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<noinclude> <!--{{#cargo_attach: _table = 5e_Class }}--><!-- |Sort_Text = String |Page_Name=Page |Class_Name=String |Hit_Die=String |HD_Num=Integer |Armor_Prof=List (, ) of Wi...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{#if: {{{2|}}}|{{#if: {{{1|}}}|{{#switch: {{{1}}}
<!--{{#cargo_attach:
_table = 5e_Class
}}--><!--
|Sort_Text = String
|Page_Name=Page
|Class_Name=String
|Hit_Die=String
|HD_Num=Integer
|Armor_Prof=List (, ) of Wikitext string
|Weapon_Prof=List (, ) of Wikitext string
|Tool_Prof=List (, ) of Wikitext string
|Save_Prof=List (, ) of Wikitext string
|Skill_Prof=List (, ) of Wikitext string
|Skill_Num=String
|Start_Equip=List (, ) of Wikitext string
|Prerequisites=List (* ) of Wikitext string
|Summary=Wikitext
|Canon_Spell=Boolean
|Class_Features=List (, ) of Wikitext string
}}--></noinclude><includeonly>{{#if: {{{2|}}}|{{#if: {{{1|}}}|{{#switch: {{{1}}}
  | 2 =<nowiki></nowiki>
  | 2 =<nowiki></nowiki>
=={{{2}}}==
=={{{2}}}==
Line 32: Line 12:
  | default =<nowiki></nowiki>
  | default =<nowiki></nowiki>
==={{{2}}}===
==={{{2}}}===
}}
}} }}
{{{3}}}<!--[[Features::{{{2}}}| ]]-->|<span style="color:#ff0000;">'''!Missing Depth!'''</span>{{#set: Error=Depth Missing}}}}
{{#if: {{{4|}}}|''{{{4}}} level{{#if: {{{5|}}}|&ensp;{{{5}}}|}} feature.''<br />|}}  
|<span style="color:#ff0000;">'''!Missing Feature Name!'''</span>[[Error::Feature Name  Missing| ]]}}<!--
{{{3|}}} }}
--><!--{{#cargo_store:
_table = 5e_Class
|where Page_Name=_pageName
|Class_Features ={{{2|}}}
}}-->
</includeonly><noinclude>
</includeonly><noinclude>


Line 46: Line 21:


==Syntax==
==Syntax==
<pre>{{5e Subclass Ability Section|depth|name|description}}</pre>
<pre>{{5e Subclass Ability Section|depth|name|description|optLevel|optSubclassName}}</pre>


==Example==
==Example==
<pre>{{5e Subclass Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.}}</pre>
<pre>{{5e Subclass Ability Section|3|Foo|The description of foo is that it acts as a placeholder for a value.|2nd|Bar}}</pre>
   
   
Produces...
Produces...


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




[[Category:5e Templates|Ability Section Template 5e]]
[[Category:5e Templates|Ability Section Template 5e]]
</noinclude>
</noinclude>

Latest revision as of 15:12, 18 February 2021


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 Subclass Ability Section|depth|name|description|optLevel|optSubclassName}}

Example[edit]

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

Produces...

Foo

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