Template:5e24 Creature Short: Difference between revisions
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| | |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 = {{# | |Habitat = {{#arraymap: {{{habitat|}}}|,|xHab|xHab}} | ||
|Plane = {{# | |Plane = {{#arraymap: {{{plane|}}}|,|xPlane|xPlane}} | ||
|Treasure = {{#arraymap: {{{treasure|}}}|,|xTres|xTres}} | |||
|Summary = {{{summary|}}} | |Summary = {{{summary|}}} | ||
}}<!--end cargo_store-->{{#if: {{{ | }}<!--end cargo_store--><!-- | ||
--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: {{{treaure}}}|,|xTreas|[[Category:5e24 xTreas Creatures]]|}}|}}<!--endif plane--> | |||
}}<!--endif nodb--><!-- | |||
}}|}} | --Display-- | ||
<!-- | -->{{#if: {{{nodisplay|}}}|<!--skip-->|{{#switch: {{lc: {{{3|}}}}} | ||
[[Category:5e24 | | overview = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Overview</big></big>''''' | ||
}}<!-- | | template = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Template</big></big>''''' | ||
| individual = '''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}} Individual</big></big>''''' | |||
|'''''<big><big>{{#if: {{{2|}}}|{{{2}}}|}}</big></big>''''' | |||
--> | }}<!--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 />|}} | |||
'''{{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|Treasure}}:''' {{#if: {{{treasure|}}}|{{#arraymap: {{{treasure|}}}|, |xTres|{{5e24|Treasure/xTres|xTres}}}}<!--arraymap-->|—|}}</div><br />|}}<!--endif nodisplay--></includeonly><noinclude>{{template badge}}{{tocright}} | |||
==Use== | ==Use== | ||
Called from Overview or | 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> | ||
|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--> | ||
|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 | ||
| | |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 | ||
| | |plane= | ||
|nodb= | |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]
- Foo's Guide to Nothing (5e24) p. 3-7. Licensed: Public Domain. ↑