Template:5e Class Pointer: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(fixed canon_class)
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 18: Line 18:
|Summary=Wikitext
|Summary=Wikitext
|Canon_Class=Boolean
|Canon_Class=Boolean
|Sidekick=Boolean
|Class_Features=List (, ) of Wikitext string
|Class_Features=List (, ) of Wikitext string
}}-->
}}-->
</noinclude><includeonly>
</noinclude><includeonly>
{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e Pointer}}|{{DEFAULTSORTKEY:
{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}}{{#if: {{{sidekick|}}}|&ensp;Sidekick|}} 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}}{{#if: {{{sidekick|}}}|&ensp;Sidekick|}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{name|}}}|[[Category:5e {{Type Array|{{{name}}}}}{{#if: {{{sidekick|}}}|&ensp;Sidekicks|}}]]{{#if: {{{pub|}}}|<!--avoid cr
--><big><big>{{{name|}}}</big></big> is a {{srd5lc|Class}} in 5th edition, described in {{pub|{{{pub}}}}}.[[Class::{{{name}}}| ]]<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|}}}|{{5edlc|Sidekick}}&ensp;|}}{{srd5lc|Class}} in 5th edition, described in {{pub|{{{pub}}}}}.[[Class::{{{name}}}| ]]<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> {{#if: {{{hdNum|}}}|{{{hdNum}}}d{{{hitdie}}}[[Hit Die::{{{hdNum}}}d{{{hitdie}}}| ]]|1d{{{hitdie|}}}[[Hit Die::1d{{{hitdie}}}| ]]|}} | }}{{#if: {{{saveprofs|}}}|<br /><big>'''Saves:'''</big> {{{saveprofs}}}[[Save::{{{saveprofs}}}| ]]|}}{{#if: {{{feature1|}}}|<br /><big>'''Features:'''</big>
{{#if: {{{sidekick|}}}|<!--skip-->|{{#if: {{{hitdie|}}}|<br /><big>'''Hit Die:'''</big> {{#if: {{{hdNum|}}}|{{{hdNum}}}d{{{hitdie}}}[[Hit Die::{{{hdNum}}}d{{{hitdie}}}| ]]|1d{{{hitdie|}}}[[Hit Die::1d{{{hitdie}}}| ]]|}} | }}{{#if: {{{saveprofs|}}}|<br /><big>'''Saves:'''</big> {{{saveprofs}}}[[Save::{{{saveprofs}}}| ]]|}} }}{{#if: {{{feature1|}}}|<br /><big>'''Features:'''</big>
:{{{feature1}}}[[Features::{{{feature1}}}| ]]<br />| }}{{#if: {{{feature2|}}}|:{{{feature2}}}[[Features::{{{feature2}}}| ]]<br />| }}{{#if: {{{feature3|}}}|:{{{feature3}}}[[Features::{{{feature3}}}| ]]<br />| }}{{#if: {{{feature4|}}}|:{{{feature4}}}[[Features::{{{feature4}}}| ]]<br />| }}{{#if: {{{feature5|}}}|:{{{feature5}}}[[Features::{{{feature5}}}| ]]<br />| }}{{#if: {{{feature6|}}}|:{{{feature6}}}[[Features::{{{feature6}}}| ]]<br />| }}{{#if: {{{feature7|}}}|:{{{feature7}}}[[Features::{{{feature7}}}| ]]<br />| }}{{#if: {{{feature8|}}}|:{{{feature8}}}[[Features::{{{feature8}}}| ]]<br />| }}{{#if: {{{feature9|}}}|:{{{feature9}}}[[Features::{{{feature9}}}| ]]<br />| }}{{#if: {{{feature10|}}}|:{{{feature10}}}[[Features::{{{feature10}}}| ]]<br />| }}{{#if: {{{feature11|}}}|:{{{feature11}}}[[Features::{{{feature11}}}| ]]<br />| }}{{#if: {{{feature12|}}}|:{{{feature12}}}[[Features::{{{feature12}}}| ]]<br />| }}{{#if: {{{feature13|}}}|:{{{feature13}}}[[Features::{{{feature13}}}| ]]<br />| }}{{#if: {{{feature14|}}}|:{{{feature14}}}[[Features::{{{feature14}}}| ]]<br />| }}{{#if: {{{feature15|}}}|:{{{feature15}}}[[Features::{{{feature15}}}| ]]<br />| }}{{#if: {{{feature16|}}}|:{{{feature16}}}[[Features::{{{feature16}}}| ]]<br />| }}{{#if: {{{feature17|}}}|:{{{feature17}}}[[Features::{{{feature17}}}| ]]<br />| }}{{#if: {{{feature18|}}}|:{{{feature18}}}[[Features::{{{feature18}}}| ]]<br />| }}{{#if: {{{feature19|}}}|:{{{feature19}}}[[Features::{{{feature19}}}| ]]<br />| }}{{#if: {{{feature20|}}}|:{{{feature20}}}[[Features::{{{feature20}}}| ]]<br />| }}
:{{{feature1}}}[[Features::{{{feature1}}}| ]]{{#if: {{{flvl1|}}}|&nbsp;({{{flvl1}}} level)|}}<br />| }}{{#if: {{{feature2|}}}|:{{{feature2}}}[[Features::{{{feature2}}}| ]]{{#if: {{{flvl2|}}}|&nbsp;({{{flvl2}}} level)|}}<br />| }}{{#if: {{{feature3|}}}|:{{{feature3}}}[[Features::{{{feature3}}}| ]]{{#if: {{{flvl3|}}}|&nbsp;({{{flvl3}}} level)|}}<br />| }}{{#if: {{{feature4|}}}|:{{{feature4}}}[[Features::{{{feature4}}}| ]]{{#if: {{{flvl4|}}}|&nbsp;({{{flvl4}}} level)|}}<br />| }}{{#if: {{{feature5|}}}|:{{{feature5}}}[[Features::{{{feature5}}}| ]]{{#if: {{{flvl5|}}}|&nbsp;({{{flvl5}}} level)|}}<br />| }}{{#if: {{{feature6|}}}|:{{{feature6}}}[[Features::{{{feature6}}}| ]]{{#if: {{{flvl6|}}}|&nbsp;({{{flvl6}}} level)|}}<br />| }}{{#if: {{{feature7|}}}|:{{{feature7}}}[[Features::{{{feature7}}}| ]]{{#if: {{{flvl7|}}}|&nbsp;({{{flvl7}}} level)|}}<br />| }}{{#if: {{{feature8|}}}|:{{{feature8}}}[[Features::{{{feature8}}}| ]]{{#if: {{{flvl8|}}}|&nbsp;({{{flvl8}}} level)|}}<br />| }}{{#if: {{{feature9|}}}|:{{{feature9}}}[[Features::{{{feature9}}}| ]]{{#if: {{{flvl9|}}}|&nbsp;({{{flvl9}}} level)|}}<br />| }}{{#if: {{{feature10|}}}|:{{{feature10}}}[[Features::{{{feature10}}}| ]]{{#if: {{{flvl10|}}}|&nbsp;({{{flvl10}}} level)|}}<br />| }}{{#if: {{{feature11|}}}|:{{{feature11}}}[[Features::{{{feature11}}}| ]]{{#if: {{{flvl11|}}}|&nbsp;({{{flvl11}}} level)|}}<br />| }}{{#if: {{{feature12|}}}|:{{{feature12}}}[[Features::{{{feature12}}}| ]]{{#if: {{{flvl12|}}}|&nbsp;({{{flvl12}}} level)|}}<br />| }}{{#if: {{{feature13|}}}|:{{{feature13}}}[[Features::{{{feature13}}}| ]]{{#if: {{{flvl13|}}}|&nbsp;({{{flvl13}}} level)|}}<br />| }}{{#if: {{{feature14|}}}|:{{{feature14}}}[[Features::{{{feature14}}}| ]]{{#if: {{{flvl14|}}}|&nbsp;({{{flvl14}}} level)|}}<br />| }}{{#if: {{{feature15|}}}|:{{{feature15}}}[[Features::{{{feature15}}}| ]]{{#if: {{{flvl15|}}}|&nbsp;({{{flvl15}}} level)|}}<br />| }}{{#if: {{{feature16|}}}|:{{{feature16}}}[[Features::{{{feature16}}}| ]]{{#if: {{{flvl16|}}}|&nbsp;({{{flvl16}}} level)|}}<br />| }}{{#if: {{{feature17|}}}|:{{{feature17}}}[[Features::{{{feature17}}}| ]]{{#if: {{{flvl17|}}}|&nbsp;({{{flvl17}}} level)|}}<br />| }}{{#if: {{{feature18|}}}|:{{{feature18}}}[[Features::{{{feature18}}}| ]]{{#if: {{{flvl18|}}}|&nbsp;({{{flvl18}}} level)|}}<br />| }}{{#if: {{{feature19|}}}|:{{{feature19}}}[[Features::{{{feature19}}}| ]]{{#if: {{{flvl19|}}}|&nbsp;({{{flvl19}}} level)|}}<br />| }}{{#if: {{{feature20|}}}|:{{{feature20}}}[[Features::{{{feature20}}}| ]]{{#if: {{{flvl20|}}}|&nbsp;({{{flvl20}}} level)|}}<br />| }}
{{#if: {{{desc}}}|<big>'''Unofficial Description:'''</big> {{{desc|}}}[[Summary::{{{desc}}}| ]]| }}
{{#if: {{{desc}}}|<big>'''Unofficial Description:'''</big> {{{desc|}}}[[Summary::{{{desc}}}| ]]| }}


[[Category:5e Classes]][[Class::true| ]]
[[Category:5e{{#if: {{{subclass|}}}|&ensp;{{{subclass}}}|}} Classes]][[Class::true| ]]
[[Category:Class]]
[[Category:Class]]
[[Category:5e Pointers]]<!--
[[Category:5e Pointers]]<!--
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
_table = 5e_Class
_table = 5e_Class
|where Page_Name={{FULLPAGENAME}}
|Sort_Text={{#if: {{{sorttext|}}}|{{{sorttext}}}|{{PAGENAME}}}}
|Sort_Text={{#if: {{{sorttext|}}}|{{{sorttext}}}|{{PAGENAME}}}}
|Page_Name={{FULLPAGENAME}}
|Page_Name={{FULLPAGENAME}}
Line 40: Line 42:
|Save_Prof={{{saveprofs|}}}
|Save_Prof={{{saveprofs|}}}
|Class_Summary={{#if: {{{summary|}}}|{{{summary}}}|{{{desc|}}}}}
|Class_Summary={{#if: {{{summary|}}}|{{{summary}}}|{{{desc|}}}}}
|Sidekick={{#if: {{{sidekick|}}}|1}}
|Canon_Class={{#if: {{{noncanon|}}}|<!--Null-->|1}}
|Canon_Class={{#if: {{{noncanon|}}}|<!--Null-->|1}}
|Pointer=1
|Pointer=1
Line 45: Line 48:
|UA={{#if: {{{ua|}}}|1}}
|UA={{#if: {{{ua|}}}|1}}
|Class_Features={{{feature1|}}}{{#if: {{{feature2|}}}|, {{{feature2}}}{{#if: {{{feature3|}}}|, {{{feature3}}}{{#if: {{{feature4|}}}|, {{{feature4}}}{{#if: {{{feature5|}}}|, {{{feature5}}}{{#if: {{{feature6|}}}|, {{{feature6}}}{{#if: {{{feature7|}}}|, {{{feature7}}}{{#if: {{{feature8|}}}|, {{{feature8}}}{{#if: {{{feature9|}}}|, {{{feature9}}}{{#if: {{{feature10|}}}|, {{{feature10}}}{{#if: {{{feature11|}}}|, {{{feature11}}}{{#if: {{{feature12|}}}|, {{{feature12}}}{{#if: {{{feature13|}}}|, {{{feature13}}}{{#if: {{{feature14|}}}|, {{{feature14}}}{{#if: {{{feature15|}}}|, {{{feature15}}}{{#if: {{{feature16|}}}|, {{{feature16}}}{{#if: {{{feature17|}}}|, {{{feature17}}}{{#if: {{{feature18|}}}|, {{{feature18}}}{{#if: {{{feature19|}}}|, {{{feature19}}}{{#if: {{{feature20|}}}|, {{{feature20}}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}
|Class_Features={{{feature1|}}}{{#if: {{{feature2|}}}|, {{{feature2}}}{{#if: {{{feature3|}}}|, {{{feature3}}}{{#if: {{{feature4|}}}|, {{{feature4}}}{{#if: {{{feature5|}}}|, {{{feature5}}}{{#if: {{{feature6|}}}|, {{{feature6}}}{{#if: {{{feature7|}}}|, {{{feature7}}}{{#if: {{{feature8|}}}|, {{{feature8}}}{{#if: {{{feature9|}}}|, {{{feature9}}}{{#if: {{{feature10|}}}|, {{{feature10}}}{{#if: {{{feature11|}}}|, {{{feature11}}}{{#if: {{{feature12|}}}|, {{{feature12}}}{{#if: {{{feature13|}}}|, {{{feature13}}}{{#if: {{{feature14|}}}|, {{{feature14}}}{{#if: {{{feature15|}}}|, {{{feature15}}}{{#if: {{{feature16|}}}|, {{{feature16}}}{{#if: {{{feature17|}}}|, {{{feature17}}}{{#if: {{{feature18|}}}|, {{{feature18}}}{{#if: {{{feature19|}}}|, {{{feature19}}}{{#if: {{{feature20|}}}|, {{{feature20}}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}
|Subclass_Title={{{kind|}}}
}}}}</includeonly><noinclude>
}}}}</includeonly><noinclude>


Line 58: Line 62:
|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= <!--1st feature level acquired-->
|feature2= <!--2nd Feature Name-->
|feature2= <!--2nd Feature Name-->
|flvl2= <!--2nd feature level acquired-->
|feature20= <!--Repeat up to 20 features-->
|feature20= <!--Repeat up to 20 features-->
|flvl20= <!--20th feature level acquired-->
}}</pre>
}}</pre>


===Add'l Parameters===
===Add'l Parameters===
<pre>
<pre>
noncanon= <!--blank true if not canon-->
noncanon= <!--blank, true if not canon-->
sidekick= <!--blank, true if sidekick class-->
ua= <!--blank, true if unearthed arcana-->
ua= <!--blank, true if unearthed arcana-->
summary= <!--blank, fill if different from desc-->
summary= <!--blank, fill if different from desc-->
Line 79: Line 87:
|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=1st
|feature2=Barsoom <!--2nd Feature Name-->
|feature2=Barsoom <!--2nd Feature Name-->
|flvl2=6th
|feature20= <!--Repeat up to 20 features-->
|feature20= <!--Repeat up to 20 features-->
}}</pre>
}}</pre>
Line 90: Line 100:
|sorttext= <!--opt. category sort key-->
|sorttext= <!--opt. category sort key-->
|pub=Foo's Guide to Bar <!--Publication-->
|pub=Foo's Guide to Bar <!--Publication-->
|sidekick=true
|hitdie=12  
|hitdie=12  
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
|saveprofs=Constitution, Intelligence <!--Ability, no link-->
Line 95: Line 106:
|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=1st
|feature2=Barsoom <!--2nd Feature Name-->
|feature2=Barsoom <!--2nd Feature Name-->
|flvl2=6th
|feature20= <!--Repeat up to 20 features-->
|feature20= <!--Repeat up to 20 features-->
|nodb=true
|nodb=true

Latest revision as of 16:39, 23 August 2022

This template adds rows to the table "5e_Class", which is declared by the template 5e Class Features. View table.


Syntax

{{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= <!--1st feature level acquired-->
|feature2= <!--2nd Feature Name-->
|flvl2= <!--2nd feature level acquired-->
|feature20= <!--Repeat up to 20 features-->
|flvl20= <!--20th feature level acquired-->
}}

Add'l Parameters

noncanon= <!--blank, true if not canon-->
sidekick= <!--blank, true if sidekick class-->
ua= <!--blank, true if unearthed arcana-->
summary= <!--blank, fill if different from desc-->

Example

{{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=1st
|feature2=Barsoom <!--2nd Feature Name-->
|flvl2=6th
|feature20= <!--Repeat up to 20 features-->
}}

produces:

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

Features:

Fooishness  (1st level)
Barsoom  (6th level)

Unofficial Description: Foos and Bars