Template:5e24 Creature Short: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 11: | Line 11: | ||
|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 = {{#arraymap: {{{habitat|}}}|,|xHab|xHab}} | |Habitat = {{#arraymap: {{{habitat|}}}|, |xHab|xHab}} | ||
|Plane = {{#arraymap: {{{plane|}}}|,|xPlane|xPlane}} | |Plane = {{#arraymap: {{{plane|}}}|, |xPlane|xPlane}} | ||
|Treasure = {{#arraymap: {{{treasure|}}}|,|xTres|xTres}} | |Treasure = {{#arraymap: {{{treasure|}}}|, |xTres|xTres}} | ||
|Summary = {{{summary|}}} | |Summary = {{{summary|}}} | ||
}}<!--end cargo_store--><!-- | }}<!--end cargo_store--><!-- | ||
--Categories-- | --Categories-- | ||
-->{{#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: {{{ | -->{{#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: {{{treasure}}}|, |xTreas|[[Category:5e24 xTreas Creatures]]|}}|}}<!--endif treasure--> | ||
}}<!--endif nodb--><!-- | }}<!--endif nodb--><!-- | ||
--Display-- | --Display-- | ||
| Line 25: | Line 25: | ||
| individual = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Individual</big></big>''''' | | individual = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Individual</big></big>''''' | ||
|'''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}}</big></big>''''' | |'''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}}</big></big>''''' | ||
}}<!--switch | }}<!--end switch-->{{#if: {{{refs|}}}| {{{refs}}}|}} | ||
<div style="display:block; border-top:solid 1px gainsboro; border-radius:0em 0em 0.5em; 0.5em; 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 />|}} | <div style="display:block; border-top:solid 1px gainsboro; border-radius:0em 0em 0.5em; 0.5em; 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-->|—|}}<br /> | '''{{5e24|Habitat}}:''' {{#if: {{{habitat|}}}|{{#arraymap: {{{habitat}}}|, |xHab|{{5e24|xHab}}}}<!--end arraymap-->|—|}}<br /> | ||
Latest revision as of 13:35, 18 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]
- Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)p. 3-7. Licensed: Public Domain. ↑