Template:5e24 Creature Short: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 26: | Line 26: | ||
|'''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}}</big></big>''''' | |'''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}}</big></big>''''' | ||
}}<!--switch 3-->{{#if: {{{refs|}}}| {{{refs}}}|}} | }}<!--switch 3-->{{#if: {{{refs|}}}| {{{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 />|}} | <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 /> | ||
'''{{5e24|Plane}}:''' {{#if: {{{plane|}}}|{{#arraymap: {{{plane}}}|, |xPlane|{{5e24|xPlane}}}}<!--end arraymap-->|—|}}<br /> | '''{{5e24|Plane}}:''' {{#if: {{{plane|}}}|{{#arraymap: {{{plane}}}|, |xPlane|{{5e24|xPlane}}}}<!--end arraymap-->|—|}}<br /> | ||
'''{{5e24|Treasure}}:''' {{#if: {{{treasure|}}}|{{#arraymap: {{{treasure|}}}|, |xTres|{{5e24|Treasure/xTres|xTres}}}}<!--arraymap-->|—|}}</div | '''{{5e24|Treasure}}:''' {{#if: {{{treasure|}}}|{{#arraymap: {{{treasure|}}}|, |xTres|{{5e24|Treasure/xTres|xTres}}}}<!--arraymap-->|—|}}</div>|}}<!--endif nodisplay--></includeonly><noinclude>{{template badge}}{{tocright}} | ||
==Use== | ==Use== | ||
Called from Overview or Creature templates. | Called from Overview or Creature templates. | ||
Revision as of 15:18, 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]
- 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. ↑