Difference between revisions of "Template:5e Monster Short"
From Dungeons and Dragons Wiki
m |
|||
Line 4: | Line 4: | ||
| template = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Template</big></big>'''''{{#if: {{{nodb|}}}|<!--skip-->|[[Category:5e Monster Templates]]{{#set: Type=Template}}|}} | | template = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Template</big></big>'''''{{#if: {{{nodb|}}}|<!--skip-->|[[Category:5e Monster Templates]]{{#set: Type=Template}}|}} | ||
|individual = {{#if: {{{nodb|}}}|<!--skip-->|{{#set: Type=Individual}}[[Category:5e Individuals]]|}}<!--no display--> | |individual = {{#if: {{{nodb|}}}|<!--skip-->|{{#set: Type=Individual}}[[Category:5e Individuals]]|}}<!--no display--> | ||
− | }}{{#if: {{{refs|}}}| {{{refs}}}|}}{{#if: {{{4|}}}|{{#arraymap: {{{4}}}|, |mtag|{{#if: {{{nodb|}}}|<!--skip-->|{{#set: Subtype=mtag}}[[Category:5e {{Type Array|mtag}}]]|}}| }}|}}{{#if: {{{nodb|}}}|<!--skip-->|{{#set: Summary={{{summary|}}}}}|}}<br /></includeonly><noinclude> | + | }}{{#if: {{{refs|}}}| {{{refs}}}|}}{{#if: {{{4|}}}|{{#arraymap: {{{4}}}|, |mtag|{{#if: {{{nodb|}}}|<!--skip-->|{{#set: Subtype=mtag}}[[Category:5e {{Type Array|mtag}}]]|}}| }}|}}{{#if: {{{nodb|}}}|<!--skip-->|{{#set: Summary={{{summary|}}}}}{{#if: {{{habitat|}}}|{{#set: Habitat={{{habitat}}}}}|}}|}}<br /></includeonly><noinclude> |
==Use== | ==Use== | ||
Called from Overview or Monster templates. | Called from Overview or Monster templates. | ||
Line 16: | Line 16: | ||
===Optional Paramaters=== | ===Optional Paramaters=== | ||
<pre> | <pre> | ||
+ | |habitat= <!--blank, list of habitats--> | ||
|nodb= <!--blank, true to skip properties and categories--> | |nodb= <!--blank, true to skip properties and categories--> | ||
|nosort= <!--blank, true to skip category sort--> | |nosort= <!--blank, true to skip category sort--> | ||
Line 23: | Line 24: | ||
− | <!--testing <br /> | + | <!-- testing <br /> |
− | {{5e Monster Short|Foo Sort|Foo|Overview|Monstrosity, Minotaur}} | + | {{5e Monster Short|Foo Sort|Foo|Overview|Monstrosity, Minotaur |
+ | |refs=<ref name="fgtn">{{pub|Foo's Guide to Nothing}}</ref> | ||
+ | |habitat=Forest, Swamp | ||
+ | |nodb=true}} | ||
--> | --> | ||
[[Category:5e Templates]] | [[Category:5e Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:05, 12 February 2024
Use
Called from Overview or Monster templates.
Syntax
{{5e Monster Short|sortText|name|type|tags}}
- Type = Overview, Template, Individual
- Tags = type, subtype
Optional Paramaters
|habitat= <!--blank, list of habitats--> |nodb= <!--blank, true to skip properties and categories--> |nosort= <!--blank, true to skip category sort--> |refs= <!--references--> |summary=