Template:5e Class Pointer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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|}}}| 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|}}}| Sidekick|}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{kind|}}}|<!--[[Category:5e {{Type Array|{{{kind}}}}}]]-->{{#if: {{{name|}}}|[[Category:5e {{Type Array|{{{name}}}}}{{#if: {{{sidekick|}}}| 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> is a {{#if: {{{sidekick|}}}|{{5edlc|Sidekick}} |}}{{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 /> }} | ||
{{#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}}}| ]]{{#if: {{{flvl1|}}}| ({{{flvl1}}} level)|}}<br />| }}{{#if: {{{feature2|}}}|:{{{feature2}}}[[Features::{{{feature2}}}| ]]{{#if: {{{flvl2|}}}| ({{{flvl2}}} level)|}}<br />| }}{{#if: {{{feature3|}}}|:{{{feature3}}}[[Features::{{{feature3}}}| ]]{{#if: {{{flvl3|}}}| ({{{flvl3}}} level)|}}<br />| }}{{#if: {{{feature4|}}}|:{{{feature4}}}[[Features::{{{feature4}}}| ]]{{#if: {{{flvl4|}}}| ({{{flvl4}}} level)|}}<br />| }}{{#if: {{{feature5|}}}|:{{{feature5}}}[[Features::{{{feature5}}}| ]]{{#if: {{{flvl5|}}}| ({{{flvl5}}} level)|}}<br />| }}{{#if: {{{feature6|}}}|:{{{feature6}}}[[Features::{{{feature6}}}| ]]{{#if: {{{flvl6|}}}| ({{{flvl6}}} level)|}}<br />| }}{{#if: {{{feature7|}}}|:{{{feature7}}}[[Features::{{{feature7}}}| ]]{{#if: {{{flvl7|}}}| ({{{flvl7}}} level)|}}<br />| }}{{#if: {{{feature8|}}}|:{{{feature8}}}[[Features::{{{feature8}}}| ]]{{#if: {{{flvl8|}}}| ({{{flvl8}}} level)|}}<br />| }}{{#if: {{{feature9|}}}|:{{{feature9}}}[[Features::{{{feature9}}}| ]]{{#if: {{{flvl9|}}}| ({{{flvl9}}} level)|}}<br />| }}{{#if: {{{feature10|}}}|:{{{feature10}}}[[Features::{{{feature10}}}| ]]{{#if: {{{flvl10|}}}| ({{{flvl10}}} level)|}}<br />| }}{{#if: {{{feature11|}}}|:{{{feature11}}}[[Features::{{{feature11}}}| ]]{{#if: {{{flvl11|}}}| ({{{flvl11}}} level)|}}<br />| }}{{#if: {{{feature12|}}}|:{{{feature12}}}[[Features::{{{feature12}}}| ]]{{#if: {{{flvl12|}}}| ({{{flvl12}}} level)|}}<br />| }}{{#if: {{{feature13|}}}|:{{{feature13}}}[[Features::{{{feature13}}}| ]]{{#if: {{{flvl13|}}}| ({{{flvl13}}} level)|}}<br />| }}{{#if: {{{feature14|}}}|:{{{feature14}}}[[Features::{{{feature14}}}| ]]{{#if: {{{flvl14|}}}| ({{{flvl14}}} level)|}}<br />| }}{{#if: {{{feature15|}}}|:{{{feature15}}}[[Features::{{{feature15}}}| ]]{{#if: {{{flvl15|}}}| ({{{flvl15}}} level)|}}<br />| }}{{#if: {{{feature16|}}}|:{{{feature16}}}[[Features::{{{feature16}}}| ]]{{#if: {{{flvl16|}}}| ({{{flvl16}}} level)|}}<br />| }}{{#if: {{{feature17|}}}|:{{{feature17}}}[[Features::{{{feature17}}}| ]]{{#if: {{{flvl17|}}}| ({{{flvl17}}} level)|}}<br />| }}{{#if: {{{feature18|}}}|:{{{feature18}}}[[Features::{{{feature18}}}| ]]{{#if: {{{flvl18|}}}| ({{{flvl18}}} level)|}}<br />| }}{{#if: {{{feature19|}}}|:{{{feature19}}}[[Features::{{{feature19}}}| ]]{{#if: {{{flvl19|}}}| ({{{flvl19}}} level)|}}<br />| }}{{#if: {{{feature20|}}}|:{{{feature20}}}[[Features::{{{feature20}}}| ]]{{#if: {{{flvl20|}}}| ({{{flvl20}}} level)|}}<br />| }} | :{{{feature1}}}[[Features::{{{feature1}}}| ]]{{#if: {{{flvl1|}}}| ({{{flvl1}}} level)|}}<br />| }}{{#if: {{{feature2|}}}|:{{{feature2}}}[[Features::{{{feature2}}}| ]]{{#if: {{{flvl2|}}}| ({{{flvl2}}} level)|}}<br />| }}{{#if: {{{feature3|}}}|:{{{feature3}}}[[Features::{{{feature3}}}| ]]{{#if: {{{flvl3|}}}| ({{{flvl3}}} level)|}}<br />| }}{{#if: {{{feature4|}}}|:{{{feature4}}}[[Features::{{{feature4}}}| ]]{{#if: {{{flvl4|}}}| ({{{flvl4}}} level)|}}<br />| }}{{#if: {{{feature5|}}}|:{{{feature5}}}[[Features::{{{feature5}}}| ]]{{#if: {{{flvl5|}}}| ({{{flvl5}}} level)|}}<br />| }}{{#if: {{{feature6|}}}|:{{{feature6}}}[[Features::{{{feature6}}}| ]]{{#if: {{{flvl6|}}}| ({{{flvl6}}} level)|}}<br />| }}{{#if: {{{feature7|}}}|:{{{feature7}}}[[Features::{{{feature7}}}| ]]{{#if: {{{flvl7|}}}| ({{{flvl7}}} level)|}}<br />| }}{{#if: {{{feature8|}}}|:{{{feature8}}}[[Features::{{{feature8}}}| ]]{{#if: {{{flvl8|}}}| ({{{flvl8}}} level)|}}<br />| }}{{#if: {{{feature9|}}}|:{{{feature9}}}[[Features::{{{feature9}}}| ]]{{#if: {{{flvl9|}}}| ({{{flvl9}}} level)|}}<br />| }}{{#if: {{{feature10|}}}|:{{{feature10}}}[[Features::{{{feature10}}}| ]]{{#if: {{{flvl10|}}}| ({{{flvl10}}} level)|}}<br />| }}{{#if: {{{feature11|}}}|:{{{feature11}}}[[Features::{{{feature11}}}| ]]{{#if: {{{flvl11|}}}| ({{{flvl11}}} level)|}}<br />| }}{{#if: {{{feature12|}}}|:{{{feature12}}}[[Features::{{{feature12}}}| ]]{{#if: {{{flvl12|}}}| ({{{flvl12}}} level)|}}<br />| }}{{#if: {{{feature13|}}}|:{{{feature13}}}[[Features::{{{feature13}}}| ]]{{#if: {{{flvl13|}}}| ({{{flvl13}}} level)|}}<br />| }}{{#if: {{{feature14|}}}|:{{{feature14}}}[[Features::{{{feature14}}}| ]]{{#if: {{{flvl14|}}}| ({{{flvl14}}} level)|}}<br />| }}{{#if: {{{feature15|}}}|:{{{feature15}}}[[Features::{{{feature15}}}| ]]{{#if: {{{flvl15|}}}| ({{{flvl15}}} level)|}}<br />| }}{{#if: {{{feature16|}}}|:{{{feature16}}}[[Features::{{{feature16}}}| ]]{{#if: {{{flvl16|}}}| ({{{flvl16}}} level)|}}<br />| }}{{#if: {{{feature17|}}}|:{{{feature17}}}[[Features::{{{feature17}}}| ]]{{#if: {{{flvl17|}}}| ({{{flvl17}}} level)|}}<br />| }}{{#if: {{{feature18|}}}|:{{{feature18}}}[[Features::{{{feature18}}}| ]]{{#if: {{{flvl18|}}}| ({{{flvl18}}} level)|}}<br />| }}{{#if: {{{feature19|}}}|:{{{feature19}}}[[Features::{{{feature19}}}| ]]{{#if: {{{flvl19|}}}| ({{{flvl19}}} level)|}}<br />| }}{{#if: {{{feature20|}}}|:{{{feature20}}}[[Features::{{{feature20}}}| ]]{{#if: {{{flvl20|}}}| ({{{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|}}}| {{{subclass}}}|}} Classes]][[Class::true| ]] | ||
[[Category:Class]] | [[Category:Class]] | ||
[[Category:5e Pointers]]<!-- | [[Category:5e Pointers]]<!-- | ||
Line 41: | 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 91: | Line 93: | ||
|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= | |||
|hitdie=12 | |hitdie=12 | ||
|saveprofs=Constitution, Intelligence <!--Ability, no link--> | |saveprofs=Constitution, Intelligence <!--Ability, no link--> |
Revision as of 13:45, 2 March 2021
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)--> |feature2= <!--2nd Feature Name--> |feature20= <!--Repeat up to 20 features--> }}
Add'l Parameters
noncanon= <!--blank true if not canon--> 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)--> |feature2=Barsoom <!--2nd Feature Name--> |feature20= <!--Repeat up to 20 features--> }}
produces:
Foo is a class in 5th edition, described in Foo's Guide to Bar.
Hit Die: 1d12
Saves: Constitution, Intelligence
Features: