Difference between revisions of "Template:5e Class Pointer"
From Dungeons and Dragons Wiki
(adj. for multiple HD) |
|||
Line 3: | Line 3: | ||
{{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: {{{kind|}}}|<!--[[Category:5e {{Type Array|{{{kind}}}}}]]-->{{#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> 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 /> }} | ||
− | {{#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: {{{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}}}}}<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 />| }} | ||
{{#if: {{{desc}}}|<big>'''Unofficial Description:'''</big> {{{desc|}}}{{#set: Summary={{{desc}}}}}| }} | {{#if: {{{desc}}}|<big>'''Unofficial Description:'''</big> {{{desc|}}}{{#set: Summary={{{desc}}}}}| }} |
Revision as of 00:33, 1 December 2018
Syntax
{{5e Class Pointer |name= <!--Name of subclass--> |sorttext= <!--opt. category sort key--> |pub= <!--Publication--> |hitdie= <!--Parent Class--> |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--> }}
Example
{{5e Class Pointer |name=Foo <!--Name of subclass--> |sorttext= <!--opt. category sort key--> |pub=Foo's Guide to Bar <!--Publication--> |hitdie=12 <!--Parent Class--> |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:
- Fooishness
- Barsoom
Unofficial Description: Foos and Bars