Template:5e Individual: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<noinclude> <!-- Cargo Table --> {{#cargo_declare: _table = 5e_Individual |Name = String |Sort_Text = String |Lineage = Wikitext string |Class = List (, ) of Wikitext string |...")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
|Sort_Text = String
|Sort_Text = String
|Lineage = Wikitext string
|Lineage = Wikitext string
|Gender = Wikitext string
|Class = List (, ) of Wikitext string
|Class = List (, ) of Wikitext string
|Challenge_Rating = String
|Challenge_Rating = String
Line 11: Line 12:
|Alignment = Wikitext string
|Alignment = Wikitext string
|Affiliation = List (, ) of Wikitext string
|Affiliation = List (, ) of Wikitext string
|Sources = List (, ) of Wikitext string
}}
}}
</noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
</noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
Line 18: Line 18:
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}}|{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}|}}|}} {{NAMESPACE}}
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}}|{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}|}}|}} {{NAMESPACE}}
|Lineage = {{{lineage|}}}
|Lineage = {{{lineage|}}}
|Gender = {{{gender|}}}
|Class = {{{class|}}}
|Class = {{{class|}}}
|Challenge_Rating = {{{cr|}}}
|Challenge_Rating = {{{cr|}}}
Line 23: Line 24:
|Alignment = {{{alignment|}}}
|Alignment = {{{alignment|}}}
|Affiliation = {{{affiliation|}}}
|Affiliation = {{{affiliation|}}}
|Sources = {{{sources|}}}
}}<!--Categories-->{{#if: {{{cr|}}}|[[Category:5e CR {{{cr}}} Monsters]]|}}<!--[[Category:5e NPCs]]-->[[Category:5e Individuals]]{{#if: {{{tags|}}}|{{5e Monster 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]]|}}-->}}
}}<!--Categories-->{{#if: {{{cr|}}}|[[Category:5e CR {{{cr}}} Monsters]]|}}[[Category:5e NPCs]][[Category:5e Individuals]]{{#if: {{{tags|}}}|{{5e Monster 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-->|<!--
--Display--
--Display--
--><big><big>'''''{{{name|}}}'''</big></big> ({{5ed|Individual}})<br />
--><big><big>'''''{{{name|}}}'''</big></big> ({{5ed|Individual}}) {{{refs|}}}<br />
'''Lineage:''' {{{lineage|}}}<br />
'''Lineage:''' {{{lineage|}}}{{#if: {{{gender|}}}|<br />
'''Gender:''' {{{gender|}}}|}}<br />
'''Class:''' {{{class|}}}<br />
'''Class:''' {{{class|}}}<br />
'''CR:''' {{#if: {{{cr|}}}|{{{cr}}} ({{5e xp|{{{cr}}}}})|}}<br />
'''CR:''' {{#if: {{{cr|}}}|{{{cr}}} ({{5e xp|{{{cr}}}}})|}}<br />
'''Alignment:''' {{{alignment|}}}<br />
'''Alignment:''' {{{alignment|}}}<br />
'''Affiliations:''' {{{affiliation|}}}<br />
'''Affiliations:''' {{{affiliation|}}}{{#if: {{{refs|}}}|<!--skip-->|{{#if: {{{sources|}}}|<br />
'''Sources:''' {{{sources|}}}<!--<br />
'''Sources:''' {{{sources|}}}|}}<!--endif sources-->|}}<!--endif refs-->{{#if: {{{tags|}}|<br />
'''Tags:''' {{{tags}}}-->
'''Tags:''' {{{tags}}}|}}<!--endif tags--> |}}<!--endif not hide-->
</includeonly><noinclude>
</includeonly><noinclude>{{tocright}}
==Use==
==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.
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.
Line 42: Line 44:
|name=
|name=
|sortText=
|sortText=
|refs=
|lineage= <!-- lineage, subrace or group -->
|lineage= <!-- lineage, subrace or group -->
|gender=
|class=
|class=
|cr=
|cr=
|alignment=
|alignment=
|affiliation=
|affiliation=
|sources=
|tags= <!--used only if no 5e Monster stat block and Not group-->
|tags= <!--used only if no 5e Monster stat block and Not group-->
}}</pre>
}}</pre>
===Add'l Parameters===
<pre>
|hide= <!--blank, true to suppress display-->
|nodb= <!--blank, true to supress db entry and categories-->
</pre>
===Deprecated Parameters===
<pre>|sources= <!--replaced with refs--></pre>


==Example==
==Example==
Line 56: Line 66:
|sortText=Foo
|sortText=Foo
|lineage={{5ep|Enkki}} <!-- lineage, subrace or group -->
|lineage={{5ep|Enkki}} <!-- lineage, subrace or group -->
|gender=Unstated
|class={{5ed|Assassin}}
|class={{5ed|Assassin}}
|cr=7
|cr=7
Line 64: Line 75:
}}</pre>
}}</pre>


produces...
produces...<br />


{{5e Individual
{{5e Individual
Line 70: Line 81:
|sortText=Foo
|sortText=Foo
|lineage={{5ep|Enkki}} <!-- lineage, subrace or group -->
|lineage={{5ep|Enkki}} <!-- lineage, subrace or group -->
|gender=Unstated
|class={{5ed|Assassin}}
|class={{5ed|Assassin}}
|cr=7
|cr=7

Latest revision as of 07:02, 5 July 2024

This template defines the table "5e_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

{{5e Individual
|name=
|sortText=
|refs=
|lineage= <!-- lineage, subrace or group -->
|gender=
|class=
|cr=
|alignment=
|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

{{5e 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