Template:5e Racial Traits: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
(categorize multiple creature types)
 
Line 26: Line 26:
[[Template:5e Race Pointer]]<br />
[[Template:5e Race Pointer]]<br />
[[Template:5e Subrace Traits]]
[[Template:5e Subrace Traits]]
</div></noinclude><includeonly>{{#if: {{{name|}}}|'''<big>{{{name}}}</big>'''{{#if: {{{refs|}}}|&nbsp;{{{refs}}}|}}{{#if: {{{pointer|}}}|&ensp;([[pointer]])|}}<br />[[Category:5e {{Type Array|{{{name}}}}}]]|{{#if: {{{racename|}}}|'''<big>{{{racename}}}</big>'''&nbsp;{{{refs|}}}&nbsp;<br />[[Category:5e {{Type Array|{{{racename}}}}}]]|}}|}}[[Category:5e Races]][[Category:DnD Races]]{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} {{NAMESPACE}}}}|{{DEFAULTSORTKEY:{{PAGENAME}} {{NAMESPACE}}}}|}}
</div></noinclude><includeonly>{{#if: {{{name|}}}|'''<big>{{{name}}}</big>|name missing|}}'''&nbsp;{{{refs|}}}&nbsp;<br />
:'''{{anchor|Creature Type}}.''' {{#if: {{{creaturetype|}}}|{{5e Creature Type|{{{creaturetype}}}}}|{{#if: {{{ccreaturetype|}}}|{{{ccreaturetype}}}|{{SRD5|Humanoid}}|}}}}
:'''{{anchor|Creature Type}}.''' {{#if: {{{creaturetype|}}}|{{5e Creature Type|{{{creaturetype}}}}}|{{#if: {{{ccreaturetype|}}}|{{{ccreaturetype}}}|{{SRD5|Humanoid}}|}}}}
:'''{{anchor|Ability Score Increase}}.''' {{#if: {{{lineage|}}}|Increase one {{srd5lc|Ability Score}} by 2{{#if: {{{subrace|}}}|, or two different ability scores by 1.|<!--no subrace-->&ensp;and another one by 1, or increase three different ability scores by 1.}}|<!--not lineage-->{{#if: {{{abilitynote|}}}|{{{abilitynote}}}&ensp;|}}{{5e First Ability Mod|table=5e_Race|str={{{str|}}}|dex={{{dex|}}}|con={{{con|}}}|int={{{int|}}}|wis={{{wis|}}}|cha={{{cha|}}}}}|}}{{#if: {{{age|}}}|<br />
:'''{{anchor|Ability Score Increase}}.''' {{#if: {{{lineage|}}}|Increase one {{srd5lc|Ability Score}} by 2{{#if: {{{subrace|}}}|, or two different ability scores by 1.|<!--no subrace-->&ensp;and another one by 1, or increase three different ability scores by 1.}}|<!--not lineage-->{{#if: {{{abilitynote|}}}|{{{abilitynote}}}&ensp;|}}{{5e First Ability Mod|table=5e_Race|str={{{str|}}}|dex={{{dex|}}}|con={{{con|}}}|int={{{int|}}}|wis={{{wis|}}}|cha={{{cha|}}}}}|}}{{#if: {{{age|}}}|<br />
Line 60: Line 60:
_table = 5e_Race
_table = 5e_Race
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} {{NAMESPACE}}|{{PAGENAME}} {{NAMESPACE}}|}}
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} {{NAMESPACE}}|{{PAGENAME}} {{NAMESPACE}}|}}
|Race_Name = {{#if: {{{name|}}}|{{{name}}}|{{{racename|}}}|}}
|Race_Name = {{{name|}}}
|Creature_Type = {{#if: {{{creaturetype|}}}|{{{creaturetype}}}|{{#if: {{{ccreaturetype|}}}|{{{ccreaturetype}}}|Humanoid|}}}}
|Creature_Type = {{#if: {{{creaturetype|}}}|{{#arraymap: {{{1|}}}|,|xtypex|xtypex}}|{{#if: {{{ccreaturetype|}}}|{{{ccreaturetype}}}|Humanoid|}}}}
|Lineage = {{#if: {{{lineage|}}}|1|0|}}
|Lineage = {{#if: {{{lineage|}}}|1|0|}}
|Race_Ability_Note = {{{abilitynote|}}}
|Race_Ability_Note = {{{abilitynote|}}}
Line 77: Line 77:
|Race_Summary = {{{summary|}}}
|Race_Summary = {{{summary|}}}
|Race_Features = {{{trait1name|}}}{{#if: {{{trait2name|}}}|, {{{trait2name}}}|}}{{#if: {{{trait3name|}}}|, {{{trait3name}}}|}}{{#if: {{{trait4name|}}}|, {{{trait4name}}}|}}{{#if: {{{trait5name|}}}|, {{{trait5name}}}|}}{{#if: {{{trait6name|}}}|, {{{trait6name}}}|}}{{#if: {{{trait7name|}}}|, {{{trait7name}}}|}}{{#if: {{{trait8name|}}}|, {{{trait8name}}}|}}{{#if: {{{trait9name|}}}|, {{{trait9name}}}|}}{{#if: {{{trait10name|}}}|, {{{trait10name}}}|}}{{#if: {{{trait11name|}}}|, {{{trait11name}}}|}}{{#if: {{{trait12name|}}}|, {{{trait12name}}}|}}{{#if: {{{trait13name|}}}|, {{{trait13name}}}|}}{{#if: {{{trait14name|}}}|, {{{trait14name}}}|}}{{#if: {{{trait15name|}}}|, {{{trait15name}}}|}}{{#if: {{{trait16name|}}}|, {{{trait16name}}}|}}{{#if: {{{trait17name|}}}|, {{{trait17name}}}|}}{{#if: {{{trait18name|}}}|, {{{trait18name}}}|}}{{#if: {{{trait19name|}}}|, {{{trait19name}}}|}}{{#if: {{{trait20name|}}}|, {{{trait20name}}}|}}
|Race_Features = {{{trait1name|}}}{{#if: {{{trait2name|}}}|, {{{trait2name}}}|}}{{#if: {{{trait3name|}}}|, {{{trait3name}}}|}}{{#if: {{{trait4name|}}}|, {{{trait4name}}}|}}{{#if: {{{trait5name|}}}|, {{{trait5name}}}|}}{{#if: {{{trait6name|}}}|, {{{trait6name}}}|}}{{#if: {{{trait7name|}}}|, {{{trait7name}}}|}}{{#if: {{{trait8name|}}}|, {{{trait8name}}}|}}{{#if: {{{trait9name|}}}|, {{{trait9name}}}|}}{{#if: {{{trait10name|}}}|, {{{trait10name}}}|}}{{#if: {{{trait11name|}}}|, {{{trait11name}}}|}}{{#if: {{{trait12name|}}}|, {{{trait12name}}}|}}{{#if: {{{trait13name|}}}|, {{{trait13name}}}|}}{{#if: {{{trait14name|}}}|, {{{trait14name}}}|}}{{#if: {{{trait15name|}}}|, {{{trait15name}}}|}}{{#if: {{{trait16name|}}}|, {{{trait16name}}}|}}{{#if: {{{trait17name|}}}|, {{{trait17name}}}|}}{{#if: {{{trait18name|}}}|, {{{trait18name}}}|}}{{#if: {{{trait19name|}}}|, {{{trait19name}}}|}}{{#if: {{{trait20name|}}}|, {{{trait20name}}}|}}
}}}}
}}<!--
--Categories-->
{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} {{NAMESPACE}}}}|{{DEFAULTSORTKEY:{{PAGENAME}} {{NAMESPACE}}}}|}}[[Category:5e]][[Category:5e {{Type Array|{{{name}}}}}]][[Category:5e Races]][[Category:DnD Races]]{{#if: {{{creaturetype|}}}|[[Category:5e {{#arraymap: {{{1|}}}|,|xtypex|{{Array Type|xtypex}}}}]]|{{#if: {{{ccreaturetype|}}}|<!-- skip Manually Categorize-->|[[Category:5e Humanoids]]|}}}}
}}
</includeonly><noinclude>{{documentation}}
</includeonly><noinclude>{{documentation}}
[[Category:5e Templates|Racial Traits Template 5e]]</noinclude>
[[Category:5e Templates|Racial Traits Template 5e]]</noinclude>

Latest revision as of 07:05, 19 November 2022

This template defines the table "5e_Race". View table.

Related Templates:
Template:5e Race Pointer
Template:5e Subrace Traits

Template documentation (for the above template, sometimes hidden or invisible)

Description The 5e Racial Traits is used on articles that describe a playable race in 5th edition.

Syntax[edit]

 
{{5e Racial Traits
|name=
|sorttext=
|refs= <!--references-->
|creaturetype= 
|lineage= <!--blank, true if lineage-->
|abilitynote= <!--blank, note such as Choice of-->
|str=
|dex=
|con=
|int=
|wis=
|cha=
|age=<!-- the age that the race reaches adulthood, and life expectancy -->
|alignment=<!-- blank if lineage; the most common alignments of the race, and a short reason why -->
|sizedesc=<!-- the average height of the race -->
|size=<!-- size category of the race, like "Medium" -->
|speed=<!-- base speed of the race, as a number like "30" -->
|speedtype=<!-- blank; or movement type if not walking -->
|additionalspeeds=<!-- any additional movement types that the race has -->
|darkvisionfluff=<!-- blank=no darkvision; or the reason why your race has darkvision.-->
|darkvisiondist=<!-- blank=30 feet; or distance of darvision -->
|darkvisioncolor=<!-- blank=gray; or color of darkvision -->
|trait1name=<!-- the name of the first custom racial trait of the race -->
|trait1desc=<!-- mechanics and rules of the trait. NOTE: pointers will not have trait descriptions -->

|trait2name=<!-- as 1 above -->
|trait2desc=<!-- as 1 above -->

|trait3name=<!-- as 1 above -->
|trait3desc=<!-- as 1 above -->

|trait4name=<!-- as 1 above -->
|trait4desc=<!-- as 1 above -->

<!-- this template supports additional traits, up to trait20name and trait20desc. add as many as you need -->

|languages=<!-- blank if lineage, languages that you can speak, read, and write. defaults to "Common"-->
|languagedesc=<!-- a description of the racial language, options or descriptions -->
|subrace=<!-- y or blank -->
|summary=
}}

Add'l Parameters[edit]

|canon= <!--blank, true if published by [[WotC]]-->
|ccreaturetype= <!--creature types w/ choice -->
|pointer= <!--blank, only used in pointers-->
|hidden= <!--blank, admin use only-->
|ua= <!--blank, true if unearthed arcana-->

Example[edit]

{{5e Racial Traits
|name=Foo
|sorttext=
|refs=<ref name="fgtn.188">{{Cite Pub|Foo's Guide to Nothing|pages=188}} Licensed: [[Public Domain]].</ref>
|creaturetype=
|lineage=
|abilitynote= <!--blank, note such as Choice of-->
|str=+1
|dex=+2
|con=
|int=
|wis=
|cha=
|age=The foo mature at 100 and live an average of 1 year past that.
|alignment=Foos tend toward neutrality.
|size=Medium <!--size of your race (small, medium, large)-->
|sizedesc= Foos are slightly shorter and broader than humans.
|speed=30<!-- base speed of the race, as a number like "30" -->
|speedtype=<!-- blank; or movement type if not walking -->
|additionalspeeds=<!-- any additional movement types that the race has -->
|darkvisionfluff=Due to the foo heritage<!-- blank=no darkvision; or the reason why your race has darkvision.-->
|darkvisiondist=<!-- blank=30 feet; or distance of darvision -->
|darkvisioncolor=<!-- blank=gray; or color of darkvision -->
|languages=Foos speak {{SRD5|Common}} and one other language of their choice.
|languagedesc=<!-- a description of the racial language, options or descriptions -->
|subrace=y
|summary=Race of Foos.
|trait1name=Fooishness <!--name of 1st trait-->
|trait1desc=A foo may reroll any {{SRD5|Wisdom}} check or save.
|trait2name=Barrishness <!--name of 2nd trait-->
|trait2desc=The foo can use a {{srd5lc|Bonus Action}} to bar any creature from approaching within 10 feet of it. The target creatures may make a {{SRD5|Wisdom}} {{srd5lc|Saving Throw}} ({{SRD5|DC}} 14) to overcome this effect.
}}

produces:

Foo [1] 

Creature Type. Humanoid
Ability Score Increase. Strength +1, Dexterity +2
Age. The foo mature at 100 and live an average of 1 year past that.
Alignment. Foos tend toward neutrality.
Size. Foos are slightly shorter and broader than humans. Your size is Medium.
Speed. Your base speed is 30 feet.  
Darkvision. Due to the foo heritage You can see in dim light within 60 feet of you as if it were bright light, and in darkness as if it were dim light. You can't discern color in darkness, only shades of gray.
Fooishness. A foo may reroll any Wisdom check or save.
Barrishness. The foo can use a bonus action to bar any creature from approaching within 10 feet of it. The target creatures may make a Wisdom saving throw (DC 14) to overcome this effect.
Languages. You can speak, read, and write Foos speak Common and one other language of their choice.



Template Attribution[edit]

Template is modified from dnd-wiki.com

Any categories for the template itself