Template:DnD Creature Short: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> <!-- Cargo Table --> {{#cargo_declare: _table = DnD_Creature |Creature = String |Sort_Text = String |Size = String |Type = String |Tags = List (, ) of String |Alignment = String |HP = String |HD = String |Movement_Type = List (, ) of String |CR = List (, ) of String <!--CR, CR in lair--> |XP = List (, ) of String |Maturity = String |Mount = Boolean |Riders = List (, ) of String |Habitat = List (, ) of String |Plane = List (, ) of String |Treasure = List (, )...") |
mNo edit summary |
||
| Line 49: | Line 49: | ||
}}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<!-- | }}<!--endifnodb-->{{#ifeq: {{{3|}}}|Individual|<!--no display-->|<!-- | ||
-- Display -- | -- Display -- | ||
--><div style="display:block; border:solid 2px gainsboro; border-radius:0.5em; margin:2px;"> | -->{{#if: {{{hide|}}}|<!--skip-->|<div style="display:block; border:solid 2px gainsboro; border-radius:0.5em; margin:2px;"> | ||
<big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big> {{{refs|}}}<br /> | <big><big>'''''{{anchor|{{{2|}}} {{{3|}}}}}'''''</big></big> {{{refs|}}}<br /> | ||
<div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; background:aliceblue; font-size:0.8em;"> | <div style="display:block; border-top:solid 1px gainsboro; padding:0.5em; background:aliceblue; font-size:0.8em;"> | ||
'''Tags:''' {{#arraymap: {{{4|}}}|, |xTag|{{dnd|xTag}}}}<!--end arraymap-->{{#if: {{{size|}}}|<br />'''Size:''' {{{size}}}|}}{{#if: {{{habitat|}}}|<br /> '''Habitat:''' {{#arraymap: {{{habitat}}}|, |xHab|{{dnd|xHab}}}}<!--end arraymap-->{{#if: {{{plane|}}}|<br /> '''Plane:''' {{#arraymap: {{{plane}}}|, |xPlane|{{dnd|xPlane}}}}|}}{{#if: {{{treasure|}}}|<br /> '''Treasure:''' {{#arraymap: {{{treasure}}}|, |xTres|{{dnd|xTres}}}}|}}</div> | '''Tags:''' {{#arraymap: {{{4|}}}|, |xTag|{{dnd|xTag}}}}<!--end arraymap-->{{#if: {{{size|}}}|<br />'''Size:''' {{{size}}}|}}{{#if: {{{habitat|}}}|<br /> '''Habitat:''' {{#arraymap: {{{habitat}}}|, |xHab|{{dnd|xHab}}}}<!--end arraymap-->|}}<!--endif habitat-->{{#if: {{{plane|}}}|<br /> '''Plane:''' {{#arraymap: {{{plane}}}|, |xPlane|{{dnd|xPlane}}}}|}}<!--endif plane-->{{#if: {{{treasure|}}}|<br /> '''Treasure:''' {{#arraymap: {{{treasure}}}|, |xTres|{{dnd|xTres}}}}|}}<!--endif treasure--></div> | ||
</div>|}}<!-- | </div>|}}<!--endif hide-->|}}<!--endif individual--><!-- | ||
--categories-- | --categories-- | ||
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#ifeq: {{{3|}}}|Named NPC|<!--skip-->|[[Category:DnD {{Type Array|{{{2}}}}}]]|}}<!--endif named npc-->[[Category:DnD Creature {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:DnD {{Type Array|mtag}}]]|\s}}|}}<!--endif nodb--></includeonly><noinclude>{{tocright}} | -->{{#if: {{{nodb|}}}|<!--skip-->|{{#ifeq: {{{3|}}}|Named NPC|<!--skip-->|[[Category:DnD {{Type Array|{{{2}}}}}]]|}}<!--endif named npc-->[[Category:DnD Creature {{{3}}}s]]{{#arraymap: {{{4|}}}|, |mtag|[[Category:DnD {{Type Array|mtag}}]]|\s}}|}}<!--endif nodb--></includeonly><noinclude>{{tocright}} | ||
| Line 93: | Line 93: | ||
|refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref> | |refs=<ref name="foo">{{Cite Pub|Foo's Guide to Nothing (5e24)|pages=3-7}} Licensed: [[Public Domain]].</ref> | ||
|nodb=true | |nodb=true | ||
}} | |||
{{DnD 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> | |||
|nodb=true | |||
|hide=true | |||
}} | }} | ||
[[Category:DnD Templates]] | [[Category:DnD Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:43, 12 March 2026
This template defines the table "DnD_Creature". This table has not been created yet.
Use
Called from Overview or Monster templates.
Syntax
{{DnD 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--> |size= |summary=
Example
{{DnD 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]
- Foo's Guide to Nothing (5e24) p. 3-7. Licensed: Public Domain. ↑