Difference between revisions of "Template:5e Class Pointer"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(Created page with "<includeonly> {{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e Pointer}}|{{DEFAULTSORTKEY: {{PAGENAME}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{kind|}}...")
 
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e Pointer}}|{{DEFAULTSORTKEY:
 
{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e Pointer}}|{{DEFAULTSORTKEY:
{{PAGENAME}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{kind|}}}|[[Category:5e {{Type Array|{{{kind}}}}}]]{{#if: {{{name|}}}|[[Category:5e {{Type Array|{{{name}}}}}]]{{#if: {{{pub|}}}|<!--avoid cr
+
{{PAGENAME}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{name|}}}|[[Category:5e {{Type Array|{{{name}}}}}]]{{#if: {{{pub|}}}|<!--avoid cr
--><big><big>{{{name|}}}</big></big> is a {{srd5lc|Class}} in 5th edition,{{#set: Class={{{name}}}}} described in {{pub|{{{pub}}}}}.<br />|<!--no pub--><span style="color:red">'''Warning:''' No publisher listed.</span><br /> }}|<!--no class--><span style="color:red">'''Warning:''' No class name listed</span>.<br />}}|<!--no kind--><span style="color:red">'''Warning:''' No kind listed.</span><br /> }}
+
--><big><big>{{{name|}}}</big></big>{{#if: {{{refs|}}}|&nbsp;{{{refs}}}|}} is a {{#if: {{{sidekick|}}}|{{5eplc|Sidekick}}&ensp;{{#set: Sidekick=true}}[[Category:5e Sidekicks]]|}}{{srd5lc|Class}} in 5th edition,{{#set: Class={{{name}}}}} described in {{pub|{{{pub}}}}}.<br />|<!--no pub--><span style="color:red">'''Warning:''' No publisher listed.</span><br /> }}|<!--no class--><span style="color:red">'''Warning:''' No class name listed</span>.<br />}}
{{#if: {{{hitdie|}}}|<br /><big>'''Hit Die:'''</big> d{{{hitdie}}}{{#set: Hit Die=d{{{hitdie}}}}}| }}{{#if: {{{saveprofs|}}}|<br /><big>'''Saves:'''</big> {{{saveprofs}}}{{#set: Save={{{saveprofs}}}}}|}}{{#if: {{{feature1|}}}|<br /><big>'''Features:'''</big>
+
{{#if: {{{sidekick|}}}|<!--skip-->|{{#if: {{{hitdie|}}}|<br /><big>'''Hit Die:'''</big> {{#if: {{{hdNum|}}}|{{{hdNum}}}d{{{hitdie}}}{{#set: Hit Die={{{hdNum}}}d{{{hitdie}}}}}|1d{{{hitdie|}}}{{#set: Hit Die=1d{{{hitdie}}}}}|}} | }}{{#if: {{{saveprofs|}}}|<br /><big>'''Saves:'''</big> {{{saveprofs}}}{{#set: Save={{{saveprofs}}}}}|}}|}}{{#if: {{{feature1|}}}|<br /><big>'''Features:'''</big>
:{{{feature1}}}{{#set: Features={{{feature1}}}}}<br />| }}{{#if: {{{feature2|}}}|{{{feature2}}}{{#set: Features={{{feature2}}}}}<br />| }}{{#if: {{{feature3|}}}|{{{feature3}}}{{#set: Features={{{feature3}}}}}<br />| }}{{#if: {{{feature4|}}}|{{{feature4}}}{{#set: Features={{{feature4}}}}}<br />| }}{{#if: {{{feature5|}}}|{{{feature5}}}{{#set: Features={{{feature5}}}}}<br />| }}{{#if: {{{feature6|}}}|{{{feature6}}}{{#set: Features={{{feature6}}}}}<br />| }}{{#if: {{{feature7|}}}|{{{feature7}}}{{#set: Features={{{feature7}}}}}<br />| }}{{#if: {{{feature8|}}}|{{{feature8}}}{{#set: Features={{{feature8}}}}}<br />| }}{{#if: {{{feature9|}}}|{{{feature9}}}{{#set: Features={{{feature9}}}}}<br />| }}{{#if: {{{feature10|}}}|{{{feature10}}}{{#set: Features={{{feature10}}}}}<br />| }}{{#if: {{{feature11|}}}|{{{feature11}}}{{#set: Features={{{feature11}}}}}<br />| }}{{#if: {{{feature12|}}}|{{{feature12}}}{{#set: Features={{{feature12}}}}}<br />| }}{{#if: {{{feature13|}}}|{{{feature13}}}{{#set: Features={{{feature13}}}}}<br />| }}{{#if: {{{feature14|}}}|{{{feature14}}}{{#set: Features={{{feature14}}}}}<br />| }}{{#if: {{{feature15|}}}|{{{feature15}}}{{#set: Features={{{feature15}}}}}<br />| }}{{#if: {{{feature16|}}}|{{{feature16}}}{{#set: Features={{{feature16}}}}}<br />| }}{{#if: {{{feature17|}}}|{{{feature17}}}{{#set: Features={{{feature17}}}}}<br />| }}{{#if: {{{feature18|}}}|{{{feature18}}}{{#set: Features={{{feature18}}}}}<br />| }}{{#if: {{{feature19|}}}|{{{feature19}}}{{#set: Features={{{feature19}}}}}<br />| }}{{#if: {{{feature20|}}}|{{{feature20}}}{{#set: Features={{{feature20}}}}}<br />| }}
+
:{{{feature1}}}{{#set: Features={{{feature1}}}}}{{#if: {{{flvl1|}}}|&ensp;''<span class="small">({{{flvl1}}} level)</span>''|}}<br />| }}{{#if: {{{feature2|}}}|:{{{feature2}}}{{#set: Features={{{feature2}}}}}{{#if: {{{flvl2|}}}|&ensp;''<span class="small">({{{flvl2}}} level)</span>''|}}<br />| }}{{#if: {{{feature3|}}}|:{{{feature3}}}{{#set: Features={{{feature3}}}}}{{#if: {{{flvl3|}}}|&ensp;''<span class="small">({{{flvl3}}} level)</span>''|}}<br />| }}{{#if: {{{feature4|}}}|:{{{feature4}}}{{#set: Features={{{feature4}}}}}{{#if: {{{flvl4|}}}|&ensp;''<span class="small">({{{flvl4}}} level)</span>''|}}<br />| }}{{#if: {{{feature5|}}}|:{{{feature5}}}{{#set: Features={{{feature5}}}}}{{#if: {{{flvl5|}}}|&ensp;''<span class="small">({{{flvl5}}} level)</span>''|}}<br />| }}{{#if: {{{feature6|}}}|:{{{feature6}}}{{#set: Features={{{feature6}}}}}{{#if: {{{flvl6|}}}|&ensp;''<span class="small">({{{flvl6}}} level)</span>''|}}<br />| }}{{#if: {{{feature7|}}}|:{{{feature7}}}{{#set: Features={{{feature7}}}}}{{#if: {{{flvl7|}}}|&ensp;''<span class="small">({{{flvl7}}} level)</span>''|}}<br />| }}{{#if: {{{feature8|}}}|:{{{feature8}}}{{#set: Features={{{feature8}}}}}{{#if: {{{flvl8|}}}|&ensp;''<span class="small">({{{flvl8}}} level)</span>''|}}<br />| }}{{#if: {{{feature9|}}}|:{{{feature9}}}{{#set: Features={{{feature9}}}}}{{#if: {{{flvl9|}}}|&ensp;''<span class="small">({{{flvl9}}} level)</span>''|}}<br />| }}{{#if: {{{feature10|}}}|:{{{feature10}}}{{#set: Features={{{feature10}}}}}{{#if: {{{flvl10|}}}|&ensp;''<span class="small">({{{flvl10}}} level)</span>''|}}<br />| }}{{#if: {{{feature11|}}}|{{{feature11}}}{{#set: Features={{{feature11}}}}}{{#if: {{{flvl11|}}}|&ensp;''<span class="small">({{{flvl11}}} level)</span>''|}}<br />| }}{{#if: {{{feature12|}}}|{{{feature12}}}{{#set: Features={{{feature12}}}}}{{#if: {{{flvl12|}}}|&ensp;''<span class="small">({{{flvl12}}} level)</span>''|}}<br />| }}{{#if: {{{feature13|}}}|{{{feature13}}}{{#set: Features={{{feature13}}}}}{{#if: {{{flvl13|}}}|&ensp;''<span class="small">({{{flvl13}}} level)</span>''|}}<br />| }}{{#if: {{{feature14|}}}|{{{feature14}}}{{#set: Features={{{feature14}}}}}{{#if: {{{flvl14|}}}|&ensp;''<span class="small">({{{flvl14}}} level)</span>''|}}<br />| }}{{#if: {{{feature15|}}}|{{{feature15}}}{{#set: Features={{{feature15}}}}}{{#if: {{{flvl15|}}}|&ensp;''<span class="small">({{{flvl15}}} level)</span>''|}}<br />| }}{{#if: {{{feature16|}}}|{{{feature16}}}{{#set: Features={{{feature16}}}}}{{#if: {{{flvl16|}}}|&ensp;''<span class="small">({{{flvl16}}} level)</span>''|}}<br />| }}{{#if: {{{feature17|}}}|{{{feature17}}}{{#set: Features={{{feature17}}}}}{{#if: {{{flvl17|}}}|&ensp;''<span class="small">({{{flvl17}}} level)</span>''|}}<br />| }}{{#if: {{{feature18|}}}|{{{feature18}}}{{#set: Features={{{feature18}}}}}{{#if: {{{flvl18|}}}|&ensp;''<span class="small">({{{flvl18}}} level)</span>''|}}<br />| }}{{#if: {{{feature19|}}}|{{{feature19}}}{{#set: Features={{{feature19}}}}}{{#if: {{{flvl19|}}}|&ensp;''<span class="small">({{{flvl19}}} level)</span>''|}}<br />| }}{{#if: {{{feature20|}}}|{{{feature20}}}{{#set: Features={{{feature20}}}}}{{#if: {{{flvl20|}}}|&ensp;''<span class="small">({{{flvl20}}} level)</span>''|}}<br />| }}
 
{{#if: {{{desc}}}|<big>'''Unofficial Description:'''</big> {{{desc|}}}{{#set: Summary={{{desc}}}}}| }}
 
{{#if: {{{desc}}}|<big>'''Unofficial Description:'''</big> {{{desc|}}}{{#set: Summary={{{desc}}}}}| }}
  
[[Category:5e Subclasses]]{{#set: Subclass=true}}
+
[[Category:5e]]
 +
[[Category:5e Classes]]{{#set: Class=true}}
 +
[[Category:Class]]
 
[[Category:5e Pointers]]</includeonly><noinclude>
 
[[Category:5e Pointers]]</includeonly><noinclude>
  
Line 15: Line 17:
 
|sorttext= <!--opt. category sort key-->
 
|sorttext= <!--opt. category sort key-->
 
|pub= <!--Publication-->
 
|pub= <!--Publication-->
|hitdie= <!--Parent Class-->
+
|hdNum= <!--Number of HD -->
 +
|hitdie= <!--Type of HD (i.e. 6, 8 etc.)-->
 
|saveprofs= <!--Ability, no link-->
 
|saveprofs= <!--Ability, no link-->
 
|kind= <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
 
|kind= <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
 
|desc= <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
 
|desc= <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
 
|feature1= <!--1st Feature Name (Name Only)-->
 
|feature1= <!--1st Feature Name (Name Only)-->
 +
|flvl1= <!--level 1st feature is gained-->
 
|feature2= <!--2nd Feature Name-->
 
|feature2= <!--2nd Feature Name-->
 +
|flvl2= <!--level 2nd feature is gained-->
 
|feature20= <!--Repeat up to 20 features-->
 
|feature20= <!--Repeat up to 20 features-->
 +
|flvl20= <!--level 20th feature is gained-->
 
}}</pre>
 
}}</pre>
 +
 +
===Additional Entries===
 +
<pre>
 +
|sidekick= <!--blank, true if a {{5ep|Sidekick}} class-->
 +
</pre>
  
 
==Example==
 
==Example==
Line 29: Line 40:
 
|sorttext= <!--opt. category sort key-->
 
|sorttext= <!--opt. category sort key-->
 
|pub=Foo's Guide to Bar <!--Publication-->
 
|pub=Foo's Guide to Bar <!--Publication-->
|hitdie=12 <!--Parent Class-->
+
|hitdie=12  
 
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
 
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
 
|kind=Fooish Archetype <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
 
|kind=Fooish Archetype <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
 
|desc=Foos and Bars <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
 
|desc=Foos and Bars <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
 
|feature1=Fooishness <!--1st Feature Name (Name Only)-->
 
|feature1=Fooishness <!--1st Feature Name (Name Only)-->
 +
|flvl1=2nd
 
|feature2=Barsoom <!--2nd Feature Name-->
 
|feature2=Barsoom <!--2nd Feature Name-->
 +
|flvl2=7th
 
|feature20= <!--Repeat up to 20 features-->
 
|feature20= <!--Repeat up to 20 features-->
 +
|flvl20=
 
}}</pre>
 
}}</pre>
  
Line 45: Line 59:
 
|sorttext= <!--opt. category sort key-->
 
|sorttext= <!--opt. category sort key-->
 
|pub=Foo's Guide to Bar <!--Publication-->
 
|pub=Foo's Guide to Bar <!--Publication-->
|hitdie=12 <!--Parent Class-->
+
|sidekick=
 +
|hitdie=12  
 
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
 
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
 
|kind=Fooish Archetype <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
 
|kind=Fooish Archetype <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
 
|desc=Foos and Bars <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
 
|desc=Foos and Bars <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
 
|feature1=Fooishness <!--1st Feature Name (Name Only)-->
 
|feature1=Fooishness <!--1st Feature Name (Name Only)-->
 +
|flvl1=2nd
 
|feature2=Barsoom <!--2nd Feature Name-->
 
|feature2=Barsoom <!--2nd Feature Name-->
 +
|flvl2=7th
 
|feature20= <!--Repeat up to 20 features-->
 
|feature20= <!--Repeat up to 20 features-->
 +
|flvl20=
 
}}
 
}}
 
[[Category:5e Templates|Class Pointer Template 5e]]
 
[[Category:5e Templates|Class Pointer Template 5e]]
 
[[Category:5e Pointer Templates|Class Pointer Template 5e]]
 
[[Category:5e Pointer Templates|Class Pointer Template 5e]]
 
</noinclude>
 
</noinclude>

Latest revision as of 00:54, 24 August 2022


Syntax[edit]

{{5e Class Pointer
|name= <!--Name of subclass-->
|sorttext= <!--opt. category sort key-->
|pub= <!--Publication-->
|hdNum= <!--Number of HD -->
|hitdie= <!--Type of HD (i.e. 6, 8 etc.)-->
|saveprofs= <!--Ability, no link-->
|kind= <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
|desc= <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
|feature1= <!--1st Feature Name (Name Only)-->
|flvl1= <!--level 1st feature is gained-->
|feature2= <!--2nd Feature Name-->
|flvl2= <!--level 2nd feature is gained-->
|feature20= <!--Repeat up to 20 features-->
|flvl20= <!--level 20th feature is gained-->
}}

Additional Entries[edit]

|sidekick= <!--blank, true if a {{5ep|Sidekick}} class-->

Example[edit]

{{5e Class Pointer
|name=Foo <!--Name of subclass-->
|sorttext= <!--opt. category sort key-->
|pub=Foo's Guide to Bar <!--Publication-->
|hitdie=12 
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
|kind=Fooish Archetype <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.-->
|desc=Foos and Bars <!--opt. Unofficial, NONPLAGIARIZED description of subclass-->
|feature1=Fooishness <!--1st Feature Name (Name Only)-->
|flvl1=2nd
|feature2=Barsoom <!--2nd Feature Name-->
|flvl2=7th
|feature20= <!--Repeat up to 20 features-->
|flvl20=
}}

produces:

Foo is a class in 5th edition, described in Foo's Guide to Bar.

Hit Die: 1d12
Saves: Constitution, Intelligence
Features:

Fooishness (2nd level)
Barsoom (7th level)

Unofficial Description: Foos and Bars