Template:5e24 Creature Short: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
<!--categories-->
<!--categories-->
[[Category:5e24 Creatures]][[Category:5e24 {{Type Array|{{{3}}}}}]]{{#if: {{{4|}}}|{{#arraymap: {{{4}}}|,|xTag|[[Category:5e24 {{Type Array|xTag}}]]|}}|}}{{#ifeq: {{{3|}}}|Individual|[[Category:5e24 Individuals]]|}}{{#ifeq: {{{3|}}}|Named NPC|[[Category:5e24 NPCs]]|}}{{#if: {{{habitat|}}}|{{#arraymap: {{{habitat}}}|,|xHab|[[Category:5e24 xHab Creatures]]|}}|}}<!--endif habitat-->{{#if: {{{plane|}}}|{{#arraymap: {{{plane}}}|,|xPlane|[[Category:5e24 xPlane Creatures]]|}}|}}<!--endif habitat-->
[[Category:5e24 Creatures]][[Category:5e24 {{Type Array|{{{3}}}}}]]{{#if: {{{4|}}}|{{#arraymap: {{{4}}}|,|xTag|[[Category:5e24 {{Type Array|xTag}}]]|}}|}}{{#ifeq: {{{3|}}}|Individual|[[Category:5e24 Individuals]]|}}{{#ifeq: {{{3|}}}|Named NPC|[[Category:5e24 NPCs]]|}}{{#if: {{{habitat|}}}|{{#arraymap: {{{habitat}}}|,|xHab|[[Category:5e24 xHab Creatures]]|}}|}}<!--endif habitat-->{{#if: {{{plane|}}}|{{#arraymap: {{{plane}}}|,|xPlane|[[Category:5e24 xPlane Creatures]]|}}|}}<!--endif habitat-->
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br />|}}{{#if: {{{habitat|}}}|<div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; background:aliceblue; font-size:0.9em;">'''Habitat:''' {{#arraymap: {{{habitat}}}|, |xHab|{{5e24|xHab}}}}<!--end arraymap-->{{#if: {{{plane|}}}|&#59; '''Plane:''' {{#arraymap: {{{plane}}}|, |xPlane|{{5e24|xPlane}}}}|}}{{#if: {{{treasure|}}}|&#59; '''Treasure:''' {{#arraymap: {{{treasure}}}|, |xTres|{{5e24|xTres}}}}|}}</div>|}}<!--
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br />|}}{{#if: {{{habitat|}}}|<div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; background:aliceblue; font-size:0.8em;">'''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>{{tocright}}

Revision as of 19:45, 15 March 2025

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

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]

Habitat: Arctic, Planar, Underground
Plane: Beastlands
Treasure: Any