Difference between revisions of "Template:5e Subclass Pointer"
From Dungeons and Dragons Wiki
m (put publication in the Template:Pub) |
m (removing class from type arrary) |
||
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:{{Type Array|{{{kind}}}}}]]{{#if: {{{class|}}}|[[Category: | + | {{PAGENAME}} 5e Pointer}}| }}<!--check for empty fields-->{{#if: {{{kind|}}}|[[Category:{{Type Array|{{{kind}}}}}]]{{#if: {{{class|}}}|[[Category:{{{class}}}]]{{#if: {{{pub|}}}|<!--avoid cr |
--><big><big>{{{name|}}}</big></big> is a {{srd5lc|{{{kind}}}}} of the {{srd5lc|{{{class}}}}} class 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 listed</span>.<br />}}|<!--no kind--><span style="color:red">'''Warning:''' No kind listed.</span><br /> }} | --><big><big>{{{name|}}}</big></big> is a {{srd5lc|{{{kind}}}}} of the {{srd5lc|{{{class}}}}} class 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 listed</span>.<br />}}|<!--no kind--><span style="color:red">'''Warning:''' No kind listed.</span><br /> }} | ||
{{#if: {{{desc}}}|'''Unofficial Description:''' {{{desc|}}}| }} | {{#if: {{{desc}}}|'''Unofficial Description:''' {{{desc|}}}| }} |
Revision as of 00:54, 18 February 2018
Syntax
{{5e Subclass Pointer |name= <!--Name of subclass--> |sorttext= <!--opt. category sort key--> |class= <!--Parent Class--> |kind= <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.--> |pub= <!--Publication--> |desc= <!--opt. Unofficial, NONPLAGIARIZED description of subclass--> }}
Example
{{5e Subclass Pointer |name=Foo <!--Name of subclass--> |sorttext= <!--opt. category sort key--> |class= <!--Parent Class--> |kind= <!--Subclass kind. i.e. Primal Path, Martial Archetype, etc.--> |pub= <!--Publication--> |desc= <!--opt. Unofficial, NONPLAGIARIZED description of subclass--> }}
produces:
Foo is a bar archetype of the bar class described in Foo's Guide to Nothing.
Unofficial Description: This is where the description would go.