Template:5e24 Creature Short: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
m (display tags)
mNo edit summary
Line 25: Line 25:
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br />|}}<div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; background:aliceblue; font-size:0.8em;">{{#if: {{{4|}}}|'''Tags:''' {{#arraymap: {{{4}}}|, |xTag|{{5e24|xTag}}}}<br />|}}{{#if: {{{habitat|}}}|'''Habitat:''' {{#arraymap: {{{habitat}}}|, |xHab|{{5e24|xHab}}}}<!--end arraymap-->{{#if: {{{plane|}}}|<br /> '''Plane:''' {{#arraymap: {{{plane}}}|, |xPlane|{{5e24|xPlane}}}}|}}{{#if: {{{treasure|}}}|<br /> '''Treasure:''' {{#arraymap: {{{treasure}}}|, |xTres|{{5e24|xTres}}}}|}}</div>|}}<!--
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br />|}}<div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; background:aliceblue; font-size:0.8em;">{{#if: {{{4|}}}|'''Tags:''' {{#arraymap: {{{4}}}|, |xTag|{{5e24|xTag}}}}<br />|}}{{#if: {{{habitat|}}}|'''Habitat:''' {{#arraymap: {{{habitat}}}|, |xHab|{{5e24|xHab}}}}<!--end arraymap-->{{#if: {{{plane|}}}|<br /> '''Plane:''' {{#arraymap: {{{plane}}}|, |xPlane|{{5e24|xPlane}}}}|}}{{#if: {{{treasure|}}}|<br /> '''Treasure:''' {{#arraymap: {{{treasure}}}|, |xTres|{{5e24|xTres}}}}|}}</div>|}}<!--
--categories--
--categories--
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#ifeq: {{{3|}}}|Named NPC|<!--skip-->|[[Category:5e24 {{Type Array|{{{2}}}}}]]|}}<!--endif named npc-->[[Category:5e24 Creature {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:5e24 {{Type Array|mtag}}]]|\s}}|}}<!--endif nodb--></includeonly><noinclude>{{tocright}}
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#ifeq: {{{3|}}}|Named NPC|<!--skip-->|[[Category:5e24 {{Type Array|{{{2}}}}}]]|}}<!--endif named npc-->[[Category:5e24 Creature {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:5e24 {{Type Array|mtag}}]]|\s}}|}}<!--endif nodb--></includeonly><noinclude>{{template badge}}{{tocright}}
==Use==
==Use==
Called from Overview or Monster templates.
Called from Overview or Monster templates.

Revision as of 18:38, 17 June 2025

--> This template adds rows to the table "5e24_Creature", which is declared by the template 5e24 Creature. View table.

 Template    

Use

Called from Overview or Monster templates.

Syntax

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

Add'l Parameters

|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-->
|summary= 

Example

{{5e24 Creature Short|Foo|Foo|Overview|Fools, Bar
|habitat=Arctic, Planar, Underground
|plane=Beastlands
|treasure=Any
|refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref>
}}

Produces

Foo Overview [1]

Tags: Fools, Bar
Habitat: Arctic, Planar, Underground
Plane: Beastlands
Treasure: Any