Template:5e Class Pointer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(20 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
|Prerequisites=List (* ) of Wikitext string | |Prerequisites=List (* ) of Wikitext string | ||
|Summary=Wikitext | |Summary=Wikitext | ||
| | |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}} | {{PAGENAME}}{{#if: {{{sidekick|}}}| Sidekick|}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{name|}}}|[[Category:5e {{Type Array|{{{name}}}}}{{#if: {{{sidekick|}}}| Sidekicks|}}]]{{#if: {{{pub|}}}|<!--avoid cr | ||
--><big><big>{{{name|}}}</big></big> | --><big><big>{{{name|}}}</big></big>{{#if: {{{refs|}}}| {{{refs}}}|}} 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 />}} | ||
{{#if: {{{ | {{#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}}}| ]] | :{{{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]]<!-- | ||
-->{{#cargo_store: | -->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: | ||
_table = 5e_Class | _table = 5e_Class | ||
|Sort_Text={{{sorttext|}}} | |where Page_Name={{FULLPAGENAME}} | ||
|Page_Name={{ | |Sort_Text={{#if: {{{sorttext|}}}|{{{sorttext}}}|{{PAGENAME}}}} | ||
|Page_Name={{FULLPAGENAME}} | |||
|Class_Name={{{name|}}} | |Class_Name={{{name|}}} | ||
|Hit_Die={{{hitdie|}}} | |Hit_Die={{#if: {{{hitdie|}}}|d{{{hitdie}}}|}} | ||
|HD_Num={{{hdNum|}}} | |HD_Num={{{hdNum|1}}} | ||
|Save_Prof={{{saveprofs|}}} | |Save_Prof={{{saveprofs|}}} | ||
|Class_Summary={{{summary|}}} | |Class_Summary={{#if: {{{summary|}}}|{{{summary}}}|{{{desc|}}}}} | ||
| | |Sidekick={{#if: {{{sidekick|}}}|1}} | ||
|Canon_Class={{#if: {{{noncanon|}}}|<!--Null-->|1}} | |||
|Pointer=1 | |||
|Hidden={{#if: {{{hidden|}}}|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}}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}} | ||
}}</includeonly><noinclude> | |Subclass_Title={{{kind|}}} | ||
}}}}</includeonly><noinclude> | |||
==Syntax== | ==Syntax== | ||
Line 55: | 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=== | |||
<pre> | |||
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--> | |||
</pre> | |||
==Example== | ==Example== | ||
Line 69: | 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 80: | 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 85: | 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 | |||
}} | }} | ||
[[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 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 sidekick class in 5th edition, described in Foo's Guide to Bar.
Features: