Template:5e Monster Short: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
m (Habitat)
 
(11 intermediate revisions by the same user not shown)
Line 5: Line 5:
</noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
</noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
_table = 5eMonster
_table = 5eMonster
|Sort_Text = {{{1|}}} AAA {{#if {{{5eh|}}}|5eh|5e}}
|Sort_Text = {{{1|}}} AA {{{3|}}} {{NAMESPACE}}
|Monster_Name = {{{2|}}} {{{3|}}}
|Monster_Name = {{{2|}}} {{#ifeq: {{{3|}}}|Individual|<!--skip-->|{{{3}}}}}
|Type = {{{3|}}}
|Type = {{{3|}}}
|Monster_Tags = {{{4|}}}
|Monster_Tags = {{{4|}}}
}}}}<big><big>'''''{{{2|}}} {{{3|}}}'''<br /></big></big>{{#if: {{{nodb|}}}|<!--skip-->|[[Category:{{NAMESPACE}} {{Type Array|{{{2}}}}}]][[Category:{{NAMESPACE}} Monster {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:{{NAMESPACE}} {{Type Array|mtag}}]]|\s}}|}}</includeonly><noinclude>
|NPC = {{#ifeq: {{{3|}}}|Named NPC|1|0}}
|Individual = {{#ifeq: {{{3|}}}|Individual|1|0}}
|Habitat = {{#if: {{{habitat|}}}|{{{habitat}}}|}}
|Plane = {{#if: {{{plane|}}}|{{{plane}}}|}}
|Summary = {{{summary|}}}
}}<!--end cargo_store-->{{#if: {{{adventure|}}}|{{5e Adventure Creatures
|creature={{{2|}}} {{#ifeq: {{{3|}}}|Individual|<!--skip-->|{{{3}}}}}
|Type = {{{3|}}}
|adventure={{{adventure}}}
}}|}}
<!--categories-->
[[Category:5e Monsters]][[Category:5e {{Type Array|{{{3}}}}}]]{{#if: {{{4|}}}|{{#arraymap: {{{4}}}|,|xTag|[[Category:5e {{Type Array|xTag}}]]|}}|}}{{#ifeq: {{{3|}}}|Individual|[[Category:5e Individuals]]|}}{{#ifeq: {{{3|}}}|Named NPC|[[Category:5e NPCs]]|}}{{#if: {{{habitat|}}}|{{#arraymap: {{{habitat}}}|,|xHab|[[Category:5e xHab Creatures]]|}}|}}<!--endif habitat-->{{#if: {{{plane|}}}|{{#arraymap: {{{plane}}}|,|xPlane|[[Category:5e xPlane Creatures]]|}}|}}<!--endif habitat-->
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br /><!--<nowiki></nowiki>
 
=={{{2|}}} {{{3|}}}==
-->|}}{{#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 16: Line 31:
<pre>{{5e Monster Short|sortText|name|type|tags}}</pre>
<pre>{{5e Monster Short|sortText|name|type|tags}}</pre>


* Type = Overview, Template
* Type = Overview, Template, Named NPC
* Tags = type, subtype(s)
* Tags = type, subtype(s)
* If Type is Named NPC nothing will be displayed
===Add'l Parameters===
<pre>
|adventure= <!--blank, list of adventures-->
|habitat= <!--blank, list of habitats-->
|nodb= <!--blank, true to skip db and categories-->
|nosort= <!--blank, true to skip category sort-->
|plane= <!--blank, list of planes-->
|refs= <!--references-->
|summary=
</pre>


{{5e Monster Short|Foo|Foo|Overview|Foogar, Bar|nodb=true}}
{{5e Monster Short|Foo|Foo|Overview|Fools, Bar|habitat=Arctic, Underground|nodb=true}}
[[Category:5e Templates]]
[[Category:5e Templates]]
</noinclude>
</noinclude>

Latest revision as of 16:01, 21 April 2024

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

Use[edit]

Called from Overview or Monster templates.

Syntax[edit]

{{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[edit]

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

Foo Overview