Template:5eMonster: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
(wip)
Line 2: Line 2:
<!-- Cargo Table -->
<!-- Cargo Table -->
{{#cargo_declare:
{{#cargo_declare:
_table = 5eMonsters
_table = 5eMonster
|Sort_Text = String
|Sort_Text = String
|Page_Name = Page
|Page_Name = Page
|Monster_Name = String
|Monster_Name = String
|Monster_Size = String
|Type = String (allowed values=Aberration,Beast,Celestial,Construct,Dragon,Elemental,Fey,Fiend,Giant,Humanoid,Monstrosity,Ooze,Plant,Swarm,Undead)
|Type = String (allowed values=Aberration,Beast,Celestial,Construct,Dragon,Elemental,Fey,Fiend,Giant,Humanoid,Monstrosity,Ooze,Plant,Swarm,Undead)
|Tags = List (, ) of String
|Tags = List (, ) of String
Line 26: Line 27:
!<span style="font-size: 1.43em; font-weight: bold;">{{{name|}}}</span>{{#cargo_store: _table = 5eMonster|Monster_Name = {{{name}}}}}{{#if: {{{npc|}}}|<!--[[NPC::true| ]]-->[[Category:5e NPCs]][[Category:DnD NPCs]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon]][[Category:5e Canon Monsters]]<!--[[Canon Monster::true| ]]-->|}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:Monsters]][[Category:5e Monsters]]
!<span style="font-size: 1.43em; font-weight: bold;">{{{name|}}}</span>{{#cargo_store: _table = 5eMonster|Monster_Name = {{{name}}}}}{{#if: {{{npc|}}}|<!--[[NPC::true| ]]-->[[Category:5e NPCs]][[Category:DnD NPCs]]|}}{{#if: {{{canon|}}}|[[Category:5e Canon]][[Category:5e Canon Monsters]]<!--[[Canon Monster::true| ]]-->|}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e]][[Category:Monsters]][[Category:5e Monsters]]
{{!}}-
{{!}}-
{{!}} ''{{SRD5|{{{size}}}|{{ucfirst:{{{size}}}}}|Size}}[[Category:5e {{{size}}} Monsters]] {{SRD5|{{{type}}}|{{lc:{{{type}}}}}|Type}}[[Category:5e {{Type Array|{{{type}}}}}]]{{#ifeq:{{{type}}}|Swarm|&nbsp;of {{lc:{{{swarm}}}}} {{5e Type List|{{{subtype}}}}}|<!--not swarm-->{{#if:{{{subtype|}}}| &nbsp;({{5e Type List|{{{subtype}}}}}<!--{{5e Subtype|{{{subtype}}}|{{lc:{{Type Array|{{{subtype}}}}}}}|Subtype}}[[Category:5e {{Type Array|{{{subtype}}}}}]]-->{{#if:{{{subtype2|}}}|, &nbsp;{{5e Subtype|{{{subtype2}}}|{{lc:{{Type Array|{{{subtype2}}}}}}}|Subtype}}[[Category:5e {{Type Array|{{{subtype2}}}}}]]}})}}}}, {{5e Alignment Array|{{{align}}}|y}}<!--{{SRD5|{{{align}}}|{{lc:{{{align}}}}}|Alignment}}[[Category:5e {{{align}}} Monsters]]-->''
{{!}} ''{{SRD5|{{{size}}}|{{ucfirst:{{{size}}}}}|Size}}{{#cargo_store: _table = 5eMonster|Monster_Size = {{{size}}}}}[[Category:5e {{{size}}} Monsters]] {{SRD5|{{{type}}}|{{lc:{{{type}}}}}|Type}}{{#cargo_store: _table = 5eMonster|Type = {{{type}}}}}[[Category:5e {{Type Array|{{{type}}}}}]]{{#ifeq:{{{type}}}|Swarm|&nbsp;of {{lc:{{{swarm}}}}} {{5e Type List|{{{subtype}}}}}|<!--not swarm-->{{#if:{{{subtype|}}}| &nbsp;({{5e Type List|{{{subtype}}}}}<!--{{5e Subtype|{{{subtype}}}|{{lc:{{Type Array|{{{subtype}}}}}}}|Subtype}}[[Category:5e {{Type Array|{{{subtype}}}}}]]-->{{#if:{{{subtype2|}}}|, &nbsp;{{5e Subtype|{{{subtype2}}}|{{lc:{{Type Array|{{{subtype2}}}}}}}|Subtype}}[[Category:5e {{Type Array|{{{subtype2}}}}}]]}})}}}}{{#cargo_store: _table = 5eMonster|Tags = {{{subtype}}}}}, {{5e Alignment Array|{{{align}}}|y}}<!--{{SRD5|{{{align}}}|{{lc:{{{align}}}}}|Alignment}}[[Category:5e {{{align}}} Monsters]]-->''
{{!}}- class="separator"
{{!}}- class="separator"
{{!}}'''[[SRD5:Armor Class|Armor Class]]:''' {{{ac}}} {{#if: {{{acfluff|}}}|({{lc:{{{acfluff}}}}}) }}
{{!}}'''[[SRD5:Armor Class|Armor Class]]:''' {{{ac}}} {{#if: {{{acfluff|}}}|({{lc:{{{acfluff}}}}}) }}

Revision as of 21:41, 27 January 2020

This template defines the table "5eMonster". View table.


Template documentation (for the above template, sometimes hidden or invisible)

Visit Template:5eMonster/doc to edit this text! (How does this work?)