Template:5e Alignment Array: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(added nocat) |
||
(3 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| | | chaotic = {{SRD5|Chaotic|{{#if: {{{2|}}}|chaotic|Chaotic|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Monsters]]}} | ||
| chaotic evil = {{SRD5| | | chaotic evil = {{SRD5|Chaotic Evil|{{#if: {{{2|}}}|chaotic evil|Chaotic Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Evil Monsters]]}} | ||
| chaotic good = {{SRD5| | | chaotic good = {{SRD5|Chaotic Good|{{#if: {{{2|}}}|chaotic good|Chaotic Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Good Monsters]]}} | ||
| chaotic neutral = {{SRD5| | | chaotic neutral = {{SRD5|Chaotic Neutral|{{#if: {{{2|}}}|chaotic neutral|Chaotic Neutral|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Chaotic Neutral Monsters]]}} | ||
| evil = {{SRD5| | | evil = {{SRD5|Evil|{{#if: {{{2|}}}|evil|Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Evil Monsters]]}} | ||
| good = {{SRD5| | | good = {{SRD5|Good|{{#if: {{{2|}}}|good|Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Good Monsters]]}} | ||
| lawful = {{SRD5| | | lawful = {{SRD5|Lawful|{{#if: {{{2|}}}|lawful|Lawful|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Monsters]]}} | ||
| lawful evil = {{SRD5| | | lawful evil = {{SRD5|Lawful Evil|{{#if: {{{2|}}}|lawful evil|Lawful Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Evil Monsters]]}} | ||
| lawful good = {{SRD5| | | lawful good = {{SRD5|Lawful Good|{{#if: {{{2|}}}|lawful good|Lawful Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Good Monsters]]}} | ||
| lawful neutral = {{SRD5| | | lawful neutral = {{SRD5|Lawful Neutral|{{#if: {{{2|}}}|lawful neutral|Lawful Neutral|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Lawful Neutral Monsters]]}} | ||
| neutral = {{SRD5| | | neutral = {{SRD5|Neutral|{{#if: {{{2|}}}|neutral|Neutral|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Neutral Monsters]]}} | ||
| neutral good = {{SRD5| | | neutral good = {{SRD5|Neutral Good|{{#if: {{{2|}}}|neutral good|Neutral Good|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Neutral Good Monsters]]}} | ||
| neutral evil = {{SRD5| | | neutral evil = {{SRD5|Neutral Evil|{{#if: {{{2|}}}|neutral evil|Neutral Evil|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Neutral Evil Monsters]]}} | ||
| unaligned = {{SRD5| | | unaligned = {{SRD5|Unaligned|{{#if: {{{2|}}}|unaligned|Unaligned|}}|Alignment}}{{#if: {{{nocat|}}}|<!--skip-->|[[Category:5e Unaligned Monsters]]}} | ||
| [[SRD5:Alignment|{{#if: {{{2|}}}|{{lc:{{{1}}}}}|{{{1}}}|}}]]<!--default result--> | | 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 25: | 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 32: | 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