Template:5e24 Creature Short: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
|Treasure = {{#if: {{{treasure|}}}|{{{treasure}}}|}}
|Treasure = {{#if: {{{treasure|}}}|{{{treasure}}}|}}
|Summary = {{{summary|}}}
|Summary = {{{summary|}}}
}}<!--
-- DnD Creature xRef --
-->{{DnD Creature xRef
|sorttext={{#if: {{{1|}}}|{{{1}}} 5e24|{{{2}}} 5e24}}
|creature={{{2|}}}
|link={{FULLPAGENAME}}
|type={{{3|}}}
|tags={{{4|}}}
|edition=5e24
|NPC={{{npc|}}}
|individual={{#ifeq: {{{3|}}}|Individual|1|0}}
|nodisplay=true
}}<!--end cargo_store-->{{#if: {{{adventure|}}}|{{5e24 Adventure Creatures
}}<!--end cargo_store-->{{#if: {{{adventure|}}}|{{5e24 Adventure Creatures
|creature={{{2|}}} {{#ifeq: {{{3|}}}|Individual|<!--skip-->|{{{3}}}}}
|creature={{{2|}}} {{#ifeq: {{{3|}}}|Individual|<!--skip-->|{{{3}}}}}
Line 23: Line 35:
<!--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 />|}}<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-->|<!--
--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; margin-right:200px; 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>{{template badge}}{{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}}

Latest revision as of 16:49, 25 July 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