Template:DnD Individual: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> <!-- Cargo Table --> {{#cargo_declare: _table = DnD_Individual |Name = String |Sort_Text = String |Lineage = List (, ) of Wikitext string |Gender = Wikitext string |Class = List (, ) of Wikitext string |Challenge_Rating = String |Experience_Points = Integer |Alignment = Wikitext string |Home = Wikitext string |Setting = List (, ) of Wikitext string |Affiliation = List (, ) of Wikitext string }} </noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo...") |
mNo edit summary |
||
| Line 16: | Line 16: | ||
}} | }} | ||
</noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: | </noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: | ||
_table = | _table = DnD_Individual | ||
|Name = {{{name|}}} | |Name = {{{name|}}} | ||
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}}|{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}|}}|}} {{NAMESPACE}} | |Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}}|{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}|}}|}} {{NAMESPACE}} | ||
| Line 28: | Line 28: | ||
|Setting = {{{setting|}}} | |Setting = {{{setting|}}} | ||
|Affiliation = {{{affiliation|}}} | |Affiliation = {{{affiliation|}}} | ||
}}<!--Categories-->{{#if: {{{cr|}}}|[[Category: | }}<!--Categories-->{{#if: {{{cr|}}}|[[Category:DnD CR {{{cr}}} Monsters]]|}}<!--[[Category:5e NPCs]]-->[[Category:DnD Individuals]]{{#if: {{{tags|}}}|{{DnD Creature Short|{{#if: {{{sorttext|}}}|{{{sorttext}}}|{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}|}}|}}|{{{name|}}}|Individual|{{{tags}}}}}|<!--no tags--><!--{{#if: {{{lineage|}}}|[[Category:{{NAMESPACE}} {{Type Array|{{{lineage}}}}}]]|}}{{#if: {{{class|}}}|[[Category:{{NAMESPACE}} {{{class}}}s]]|}}-->}} | ||
|}}<!--endif nodb-->{{#if: {{{hide|}}}|<!--skip-->|<!-- | |}}<!--endif nodb-->{{#if: {{{hide|}}}|<!--skip-->|<!-- | ||
--Display-- | --Display-- | ||
| Line 98: | Line 98: | ||
|nodb=true | |nodb=true | ||
}} | }} | ||
[[Category: | [[Category:DnD Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:05, 14 April 2025
This template defines the table "DnD_Individual". View table.
Use
Displays and records information about named individuals. It should be followed by the Template:5e Monster to display the stat block. If no stat block, use the 'tags=' entry for type and tags.
Syntax
{{DnD Individual
|name=
|sortText=
|refs=
|lineage= <!-- lineage, subrace or group -->
|gender=
|class=
|cr=
|alignment=
|home=
|setting=
|affiliation=
|tags= <!--used only if no 5e Monster stat block and Not group-->
}}
Add'l Parameters
|hide= <!--blank, true to suppress display--> |nodb= <!--blank, true to supress db entry and categories-->
Deprecated Parameters
|sources= <!--replaced with refs-->
Example
{{DnD Individual
|name=Foo the Great
|sortText=Foo
|lineage={{5ep|Enkki}} <!-- lineage, subrace or group -->
|gender=Unstated
|class={{5ed|Assassin}}
|cr=7
|alignment={{SRD5|Chaotic Neutral}}
|affiliation=The King's Fools, Long Reach Assassin's Guild
|sources=Foo's Guide to Nothing p.137
|tags=Fey, Enkki <!--used only if no 5e Monster stat block-->
}}
produces...
Foo the Great (Individual)
Lineage: Enkki
Gender: Unstated
Class: Assassin
CR: 7 (2,900)
Alignment: Chaotic Neutral
Affiliations: The King's Fools, Long Reach Assassin's Guild
Sources: Foo's Guide to Nothing p.137
Tags: Fey, Enkki