Template:5e24 Creature Short: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 6: Line 6:
_table = 5e24_Creature
_table = 5e24_Creature
|Sort_Text = {{{1|}}} AA {{{3|}}} {{NAMESPACE}}
|Sort_Text = {{{1|}}} AA {{{3|}}} {{NAMESPACE}}
|Creature = {{{2|}}} {{#ifeq: {{{3|}}}|Individual|<!--skip-->|{{{3}}}}}
|Creature = {{{2|}}}  
|Type = {{{3|}}}
|Type = {{{3|}}}
|Tags = {{{4|}}}
|Tags = {{{4|}}}
|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}}}|}}
|Habitat = {{#arraymap: {{{habitat|}}}|,|xHab|xHab}}
|Plane = {{#if: {{{plane|}}}|{{{plane}}}|}}
|Plane = {{#arraymap: {{{plane|}}}|,|xPlane|xPlane}}
|Treasure = {{#arraymap: {{{treasure|}}}|,|xTres|xTres}}
|Summary = {{{summary|}}}
|Summary = {{{summary|}}}
}}<!--end cargo_store-->{{#if: {{{adventure|}}}|{{5e24 Adventure Creatures
}}<!--end cargo_store--><!--
|creature={{{2|}}} {{#ifeq: {{{3|}}}|Individual|<!--skip-->|{{{3}}}}}
--Categories--
|Type = {{{3|}}}
-->{{#if: {{{nosort|}}}|<!--skip-->|{{#if: {{{1|}}}|{{DEFAULTSORTKEY:{{{1}}} AAA {{{3|}}} 5e24}}|<!--no 1-->{{DEFAULTSORTKEY:{{{2|}}} AAA {{{3|}}} 5e24}}|}}<!--endif 1-->|}}<!--endif nosort-->[[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 plane-->{{#if: {{{treasure|}}}|{{#arraymap: {{{treaure}}}|,|xTreas|[[Category:5e24 xTreas Creatures]]|}}|}}<!--endif plane-->
|adventure={{{adventure}}}
}}<!--endif nodb--><!--
}}|}}
--Display--
<!--categories-->
-->{{#if: {{{nodisplay|}}}|<!--skip-->|{{#switch: {{lc: {{{3|}}}}}
[[Category:5e24 Monsters]][[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-->
| overview = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Overview</big></big>'''''
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big>&nbsp;{{{refs|}}}<br /><!--<nowiki></nowiki>
| template = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Template</big></big>'''''
 
| individual = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Individual</big></big>'''''
=={{{2|}}} {{{3|}}}==
|'''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}}</big></big>'''''
-->|}}{{#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>{{tocright}}
}}<!--switch 3-->{{#if: {{{refs|}}}|&ensp;{{{refs}}}|}}
<div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; margin-right:200px; background:azure; font-size:0.9em; font-size:0.8em;">{{#if: {{{4|}}}|'''{{5e24|Tag}}s:''' {{#arraymap: {{{4}}}|, |mtag|{{5e24|mtag}}}}<br />|}}
'''{{5e24|Habitat}}:''' {{#if: {{{habitat|}}}|{{#arraymap: {{{habitat}}}|, |xHab|{{5e24|xHab}}}}<!--end arraymap-->|&mdash;|}}<br />
'''{{5e24|Plane}}:''' {{#if: {{{plane|}}}|{{#arraymap: {{{plane}}}|, |xPlane|{{5e24|xPlane}}}}<!--end arraymap-->|&mdash;|}}<br />
'''{{5e24|Treasure}}:''' {{#if: {{{treasure|}}}|{{#arraymap: {{{treasure|}}}|, |xTres|{{5e24|Treasure/xTres|xTres}}}}<!--arraymap-->|&mdash;|}}</div><br />|}}<!--endif nodisplay--></includeonly><noinclude>{{template badge}}{{tocright}}
==Use==
==Use==
Called from Overview or Monster templates.
Called from Overview or Creature templates.


==Syntax==
==Syntax==
<pre>{{5e24 Creature Short|sortText|name|type|tags|refs=}}</pre>
<pre>{{5e24 Creature Short|sortText|name|type|tags
|refs=
|habitat= <!--blank, list of habitats-->
|plane= <!--blank, list of planes-->
|treasure= <!--blank, list of treasure types-->
}}</pre>


* Type = Overview, Template, Named NPC
* Type = Overview, Template, Named NPC
Line 37: Line 47:
===Add'l Parameters===
===Add'l Parameters===
<pre>
<pre>
|adventure= <!--blank, list of adventures-->
|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-->
|plane= <!--blank, list of planes-->
|summary=  
|summary=  
</pre>
</pre>
Line 48: Line 55:
<pre>
<pre>
{{5e24 Creature Short|Foo|Foo|Overview|Fools, Bar
{{5e24 Creature Short|Foo|Foo|Overview|Fools, Bar
|refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref>
|habitat=Arctic, Underground
|habitat=Arctic, Underground
|refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref>}}
|plane=
|treasure=
}}
</pre>
</pre>
===Produces===
===Produces===
{{5e24 Creature Short|Foo|Foo|Overview|Fools, Bar
{{5e24 Creature Short|Foo|Foo|Overview|Fools, Bar
|refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref>
|habitat=Arctic, Underground
|habitat=Arctic, Underground
|refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref>
|plane=
|nodb=true}}
|treasure=
|nodb=
}}


[[Category:5e24 Templates]]
[[Category:5e24 Templates]]
</noinclude>
</noinclude>

Revision as of 15:12, 17 April 2026

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 Creature templates.

Syntax

{{5e24 Creature Short|sortText|name|type|tags
|refs=
|habitat= <!--blank, list of habitats-->
|plane= <!--blank, list of planes-->
|treasure= <!--blank, list of treasure types-->
}}
  • Type = Overview, Template, Named NPC
  • Tags = type, subtype(s)
  • If Type is Named NPC nothing will be displayed

Add'l Parameters

|nodb= <!--blank, true to skip db and categories-->
|nosort= <!--blank, true to skip category sort-->
|summary= 

Example

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

Produces

Foo Overview[1]

Tags: Fools, Bar

Habitat: Arctic, Underground
Plane:

Treasure: