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

From Dungeons and Dragons Wiki
Jump to: navigation, search
m
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: {{{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> d{{{hitdie}}}{{#set: Hit Die=d{{{hitdie}}}}}| }}{{#if: {{{saveprofs|}}}|<br /><big>'''Saves:'''</big> {{{saveprofs}}}{{#set: Save={{{saveprofs}}}}}|}}{{#if: {{{feature1|}}}|<br /><big>'''Features:'''</big>
Line 7: Line 7:
 
{{#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 Classes]]{{#set: Class=true}}
 
[[Category:5e Pointers]]</includeonly><noinclude>
 
[[Category:5e Pointers]]</includeonly><noinclude>
  

Revision as of 04:32, 27 November 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