Template:5e Alignment Array: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if: {{{1|}}}|{{#switch: {{lc:{{{1}}}}} | chaotic = {{SRD5|Alignment#Chaotic|{{#if: {{{2|}}}|chaotic|Chaotic|}}|Alignment}}Category:5e Chaotic Monsters |...")
 
(added nocat)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|{{#switch: {{lc:{{{1}}}}}
<includeonly>{{#if: {{{1|}}}|{{#switch: {{lc:{{{1}}}}}
  | chaotic = {{SRD5|Alignment#Chaotic|{{#if: {{{2|}}}|chaotic|Chaotic|}}|Alignment}}[[Category:5e Chaotic Monsters]]
  | chaotic = {{SRD5|Chaotic|{{#if: {{{2|}}}|chaotic|Chaotic|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Monsters]]}}
  | chaotic evil = {{SRD5|Alignment#Chaotic Evil|{{#if: {{{2|}}}|chaotic evil|Chaotic Evil|}}|Alignment}}[[Category:5e Chaotic Evil Monsters]]
  | chaotic evil = {{SRD5|Chaotic Evil|{{#if: {{{2|}}}|chaotic evil|Chaotic Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Evil Monsters]]}}
  | chaotic good = {{SRD5|Alignment#Chaotic Good|{{#if: {{{2|}}}|chaotic good|Chaotic Good|}}|Alignment}}[[Category:5e Chaotic Good Monsters]]
  | chaotic good = {{SRD5|Chaotic Good|{{#if: {{{2|}}}|chaotic good|Chaotic Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Good Monsters]]}}
  | chaotic neutral = {{SRD5|Alignment#Chaotic Neutral|{{#if: {{{2|}}}|chaotic neutral|Chaotic Neutral|}}|Alignment}}[[Category:5e Chaotic Neutral Monsters]]
  | chaotic neutral = {{SRD5|Chaotic Neutral|{{#if: {{{2|}}}|chaotic neutral|Chaotic Neutral|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Neutral Monsters]]}}
  | evil = {{SRD5|Alignment#Evil|{{#if: {{{2|}}}|evil|Evil|}}|Alignment}}[[Category:5e Evil Monsters]]
  | evil = {{SRD5|Evil|{{#if: {{{2|}}}|evil|Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Evil Monsters]]}}
  | good = {{SRD5|Alignment#Good|{{#if: {{{2|}}}|good|Good|}}|Alignment}}[[Category:5e Good Monsters]]
  | good = {{SRD5|Good|{{#if: {{{2|}}}|good|Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Good Monsters]]}}
  | lawful = {{SRD5|Alignment#Lawful|{{#if: {{{2|}}}|lawful|Lawful|}}|Alignment}}[[Category:5e Lawful Monsters]]
  | lawful = {{SRD5|Lawful|{{#if: {{{2|}}}|lawful|Lawful|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Monsters]]}}
  | lawful evil = {{SRD5|Alignment#Lawful Evil|{{#if: {{{2|}}}|lawful evil|Lawful Evil|}}|Alignment}}[[Category:5e Lawful Evil Monsters]]
  | lawful evil = {{SRD5|Lawful Evil|{{#if: {{{2|}}}|lawful evil|Lawful Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Evil Monsters]]}}
  | lawful good = {{SRD5|Alignment#Lawful Good|{{#if: {{{2|}}}|lawful good|Lawful Good|}}|Alignment}}[[Category:5e Lawful Good Monsters]]
  | lawful good = {{SRD5|Lawful Good|{{#if: {{{2|}}}|lawful good|Lawful Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Good Monsters]]}}
  | lawful neutral = {{SRD5|Alignment#Lawful Neutral|{{#if: {{{2|}}}|lawful neutral|Lawful Neutral|}}|Alignment}}[[Category:5e Lawful Neutral Monsters]]
  | lawful neutral = {{SRD5|Lawful Neutral|{{#if: {{{2|}}}|lawful neutral|Lawful Neutral|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Neutral Monsters]]}}
  | neutral = {{SRD5|Alignment#Neutral|{{#if: {{{2|}}}|neutral|Neutral|}}|Alignment}}[[Category:5e Neutral Monsters]]
  | neutral = {{SRD5|Neutral|{{#if: {{{2|}}}|neutral|Neutral|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Neutral Monsters]]}}
  | neutral good = {{SRD5|Alignment#Neutral Good|{{#if: {{{2|}}}|neutral good|Neutral Good|}}|Alignment}}[[Category:5e Neutral Good Monsters]]
  | neutral good = {{SRD5|Neutral Good|{{#if: {{{2|}}}|neutral good|Neutral Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Neutral Good Monsters]]}}
  | unaligned = {{SRD5|Alignment#Unaligned|{{#if: {{{2|}}}|unaligned|Unaligned|}}|Alignment}}[[Category:5e Unaligned Monsters]]
  | neutral evil = {{SRD5|Neutral Evil|{{#if: {{{2|}}}|neutral evil|Neutral Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Neutral Evil Monsters]]}}
  | [[SRD5:Alignment|{{#if: {{{2|}}}|{{lc:{{{1}}}}}|{{{1}}}|}}]]<!--default result-->
| unaligned = {{SRD5|Unaligned|{{#if: {{{2|}}}|unaligned|Unaligned|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Unaligned Monsters]]}}
| varied = varied alignment{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Varied Alignment Monsters]]}}
  | [[SRD5:Alignment|{{#if: {{{2|}}}|{{lc:{{{1}}}}}|{{{1}}}|Alignment}}]]<!--default result-->
}} |<span style="text-color:red;">!!Alignment Missing!!</span>}}</includeonly><noinclude>
}} |<span style="text-color:red;">!!Alignment Missing!!</span>}}</includeonly><noinclude>


Line 24: Line 26:
==Syntax==
==Syntax==
'''<nowiki>{{5e Alignment Array|alignmentType|optLowerCase}}</nowiki>'''
'''<nowiki>{{5e Alignment Array|alignmentType|optLowerCase}}</nowiki>'''
===Add'l Entry===
<pre>|nocat= <!--blank, true to skip categories--></pre>


==Examples==
==Examples==
Line 31: Line 36:
   
   
<nowiki>{{5e Alignment Array|Evil|y}}</nowiki> -> {{5e Alignment Array|Evil|y}}
<nowiki>{{5e Alignment Array|Evil|y}}</nowiki> -> {{5e Alignment Array|Evil|y}}
<nowiki>{{5e Alignment Array|Neutral|y|nocat=true}}</nowiki> -> {{5e Alignment Array|Neutral|y|nocat=true}}
   
   
[[Category:5e Templates]]
[[Category:5e Templates]]
</noinclude>
</noinclude>

Latest revision as of 10:19, 5 November 2020


Use

For automated links to 5th edition alignments

Returns

Link to matching alignment and Alignment property.

Syntax

{{5e Alignment Array|alignmentType|optLowerCase}}

Add'l Entry

|nocat= <!--blank, true to skip categories-->

Examples

{{5e Alignment Array|Foo}} -> Foo

{{5e Alignment Array|Lawful Good}} -> Lawful Good

{{5e Alignment Array|Evil|y}} -> evil

{{5e Alignment Array|Neutral|y|nocat=true}} -> neutral