Template:5e Monster Short: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
m (category)
mNo edit summary
Line 11: Line 11:
|NPC = {{#ifeq: {{{3|}}}|Named NPC|1|0}}
|NPC = {{#ifeq: {{{3|}}}|Named NPC|1|0}}
|Individual = {{#ifeq: {{{3|}}}|Individual|1|0}}
|Individual = {{#ifeq: {{{3|}}}|Individual|1|0}}
|Habitat = {{#if: {{{habitat|}}}|{{{habitat}}}|}}
|Summary = {{{summary|}}}
|Summary = {{{summary|}}}
}}}}{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&ensp;{{{refs|}}}<br /><!--<nowiki></nowiki>
}}}}{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br /><!--<nowiki></nowiki>


=={{{2|}}} {{{3|}}}==
=={{{2|}}} {{{3|}}}==
-->|}}{{#if: {{{nodb|}}}|<!--skip-->|{{#ifeq: {{{3|}}}|Named NPC|<!--skip-->|[[Category:{{NAMESPACE}} {{Type Array|{{{2}}}}}]]|}}<!--endif named npc-->[[Category:5e Monsters]][[Category:{{NAMESPACE}} Monster {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:{{NAMESPACE}} {{Type Array|mtag}}]]|\s}}|}}<!--endif nodb--></includeonly><noinclude>
-->|}}{{#if: {{{nodb|}}}|<!--skip-->|{{#ifeq: {{{3|}}}|Named NPC|<!--skip-->|[[Category:{{NAMESPACE}} {{Type Array|{{{2}}}}}]]|}}<!--endif named npc-->[[Category:{{NAMESPACE}} Monster {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:{{NAMESPACE}} {{Type Array|mtag}}]]|\s}}|}}<!--endif nodb--></includeonly><noinclude>
==Use==
==Use==
Called from Overview or Monster templates.
Called from Overview or Monster templates.
Line 28: Line 29:
===Add'l Parameters===
===Add'l Parameters===
<pre>
<pre>
|habitat= <!--blank, list of habitats-->
|nodb= <!--blank, true to skip db and categories-->
|nodb= <!--blank, true to skip db and categories-->
|nosort= <!--blank, true to skip category sort-->
|nosort= <!--blank, true to skip category sort-->
|refs=
|refs= <!--references-->
|summary=  
|summary=  
</pre>
</pre>

Revision as of 07:01, 12 February 2024

This template adds rows to the table "5eMonster", which is declared by the template 5e Monster. View table.

Use

Called from Overview or Monster templates.

Syntax

{{5e Monster Short|sortText|name|type|tags}}
  • Type = Overview, Template, Named NPC
  • Tags = type, subtype(s)
  • If Type is Named NPC nothing will be displayed

Add'l Parameters

|habitat= <!--blank, list of habitats-->
|nodb= <!--blank, true to skip db and categories-->
|nosort= <!--blank, true to skip category sort-->
|refs= <!--references-->
|summary= 

Foo Overview