Template:5e Racial Traits: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
(categorize multiple creature types)
 
(29 intermediate revisions by the same user not shown)
Line 5: Line 5:
|Sort_Text = String
|Sort_Text = String
|Race_Name = String
|Race_Name = String
|Creature_Type = String
|Creature_Type = List (, ) of String
|Lineage = Boolean
|Race_Ability_Mod= Wikitext String
|Race_Ability_Mod= Wikitext String
|Race_Ability_Note = Wikitext String
|Race_Ability_Note = Wikitext String
Line 25: Line 26:
[[Template:5e Race Pointer]]<br />
[[Template:5e Race Pointer]]<br />
[[Template:5e Subrace Traits]]
[[Template:5e Subrace Traits]]
</div></noinclude><includeonly>{{#if: {{{racename|}}}|[[Category:5e {{Type Array|{{{racename}}}}}]]|}}[[Category:5e Races]][[Category:DnD Races]]{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}}{{#if: {{{hidden|}}}| Hidden|}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}}{{#if: {{{hidden|}}}| Hidden|}} 5e}} }}
</div></noinclude><includeonly>{{#if: {{{name|}}}|'''<big>{{{name}}}</big>|name missing|}}'''&nbsp;{{{refs|}}}&nbsp;<br />
:'''{{anchor|Creature Type}}.''' {{#if: {{{creaturetype|}}}|{{SRD5|{{{creaturetype}}}}}|{{SRD5|Humanoid}}|}}
:'''{{anchor|Creature Type}}.''' {{#if: {{{creaturetype|}}}|{{5e Creature Type|{{{creaturetype}}}}}|{{#if: {{{ccreaturetype|}}}|{{{ccreaturetype}}}|{{SRD5|Humanoid}}|}}}}
:'''{{anchor|Ability Score Increase}}.''' {{#if: {{{abilitynote|}}}|{{{abilitynote}}}&ensp;|}}{{5e First Ability Mod|table=5e_Race|str={{{str|}}}|dex={{{dex|}}}|con={{{con|}}}|int={{{int|}}}|wis={{{wis|}}}|cha={{{cha|}}}}}
:'''{{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|Age}}.''''' {{{age|}}}
:'''''{{anchor|Age}}.''''' {{{age}}}|}}{{#if: {{{lineage|}}}|<!--skip-->|{{#if: {{{alignment|}}}|<br />
:'''''{{anchor|Alignment}}.''''' {{{alignment|}}}
:'''''{{anchor|Alignment}}.''''' {{{alignment|}}}|}}|}}
:'''''{{anchor|Size}}.''''' {{#if: {{{sizedesc|}}}|{{{sizedesc}}}<nowiki> </nowiki>|}} Your size is {{ucfirst:{{{size|medium}}}}}.
:'''''{{anchor|Size}}.''''' {{#if: {{{sizedesc|}}}|{{{sizedesc}}}<nowiki> </nowiki>|}} Your size is {{ucfirst:{{{size|medium}}}}}.
:'''''{{anchor|Speed}}.''''' Your base {{{speedtype|walking}}} speed is {{{speed|30}}} feet. {{{additionalspeeds|}}}{{#if: {{{darkvisionfluff|}}} |&nbsp;
:'''''{{anchor|Speed}}.''''' Your base {{{speedtype|walking}}} speed is {{{speed|30}}} feet. {{{additionalspeeds|}}}{{#if: {{{darkvisionfluff|}}} |&nbsp;
:{{#ifeq: {{{darkvisionfluff}}}|true|'''Darkvision:''' {{#if: {{{darkvisiondist|}}}|{{{darkvisiondist}}}|60}} ft.|{{5e Darkvision|fluff={{{darkvisionfluff}}}|dist={{#if:{{{darkvisiondist|}}}|{{{darkvisiondist}}}|60}}|color={{{darkvisioncolor|}}}}}<!--close darkvision template-->|}}|}}<!--endif dvfluff-->{{#if: {{{trait1name|}}}|<nowiki />
:{{#ifeq: {{{darkvisionfluff}}}|true|
{{5e Darkvision|dist={{{darkvisiondist|}}}|color={{{darkvisioncolor|}}}}}<!--close darkvision template-->|<!--fluff ≠ true-->{{5e Darkvision|fluff={{{darkvisionfluff}}}|dist={{#if:{{{darkvisiondist|}}}|{{{darkvisiondist}}}|60}}|color={{{darkvisioncolor|}}}}}<!--close darkvision template-->|}}|}}<!--endif dvfluff-->{{#if: {{{trait1name|}}}|<nowiki />
:{{5e Ability|{{{trait1name}}}|{{{trait1desc|}}}|nodb=true}}|}}{{#if: {{{trait2name|}}} |<nowiki />
:{{5e Ability|{{{trait1name}}}|{{{trait1desc|}}}|nodb=true}}|}}{{#if: {{{trait2name|}}} |<nowiki />
:{{5e Ability|{{{trait2name}}}|{{{trait2desc|}}}|nodb=true}}|}}{{#if: {{{trait3name|}}} |<nowiki />
:{{5e Ability|{{{trait2name}}}|{{{trait2desc|}}}|nodb=true}}|}}{{#if: {{{trait3name|}}} |<nowiki />
Line 53: Line 55:
:{{5e Ability|{{{trait19name}}}|{{{trait19desc|}}}|nodb=true}}|}}{{#if: {{{trait20name|}}} |<nowiki />
:{{5e Ability|{{{trait19name}}}|{{{trait19desc|}}}|nodb=true}}|}}{{#if: {{{trait20name|}}} |<nowiki />
:{{5e Ability|{{{trait20name}}}|{{{trait20desc|}}}|nodb=true}}|}}
:{{5e Ability|{{{trait20name}}}|{{{trait20desc|}}}|nodb=true}}|}}
:'''''{{anchor|Languages}}.''''' {{#if: {{{languages|}}}|You can speak, read, and write {{{languages|Common}}}.|}} {{{languagedesc|}}}
:'''''{{anchor|Languages}}.''''' You can speak, read, and write {{#if: {{{languages}}}|{{{languages}}}|{{#if: {{{lineage|}}}|{{5elang|Common}} and 1 other {{srd5lc|language}} of your choice.|<!--not lineage-->{{5elang|Common}}.|}} {{{languagedesc|}}}|}}
<!-- store data -->
<!-- store data -->
{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
_table = 5e_Race
_table = 5e_Race
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}}{{#if: {{{hidden|}}}| Hidden}} 5e|{{PAGENAME}}{{#if: {{{hidden|}}}| Hidden}} 5e}}
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} {{NAMESPACE}}|{{PAGENAME}} {{NAMESPACE}}|}}
|Race_Name = {{{racename|}}}
|Race_Name = {{{name|}}}
|Creature_Type = {{#if: {{{creaturetype|}}}|{{{creaturetype}}}|Humanoid|}}
|Creature_Type = {{#if: {{{creaturetype|}}}|{{#arraymap: {{{1|}}}|,|xtypex|xtypex}}|{{#if: {{{ccreaturetype|}}}|{{{ccreaturetype}}}|Humanoid|}}}}
|Lineage = {{#if: {{{lineage|}}}|1|0|}}
|Race_Ability_Note = {{{abilitynote|}}}
|Race_Ability_Note = {{{abilitynote|}}}
|Race_Str = {{{str|}}}
|Race_Str = {{{str|}}}
Line 67: Line 70:
|Race_Wis = {{{wis|}}}
|Race_Wis = {{{wis|}}}
|Race_Cha = {{{cha|}}}
|Race_Cha = {{{cha|}}}
|Race_Ability_Mod={{#if: {{{abilitynote|}}}|{{{abilitynote}}}&ensp;|}}{{5e First Ability Mod|table=5e_Race|str={{{str|}}}|dex={{{dex|}}}|con={{{con|}}}|int={{{int|}}}|wis={{{wis|}}}|cha={{{cha|}}}}}
|Race_Ability_Mod={{#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|}}}}}}}
|Race_Size = {{{size|}}}
|Race_Size = {{{size|}}}
|Race_Walking_Speed = {{{speed|}}}
|Race_Walking_Speed = {{{speed|}}}
Line 73: Line 76:
|Race_Darkvision = {{#if: {{{darkvisionfluff|}}}|{{#if: {{{darkvisiondist|}}}|{{{darkvisiondist}}}|60|}} feet|}}
|Race_Darkvision = {{#if: {{{darkvisionfluff|}}}|{{#if: {{{darkvisiondist|}}}|{{{darkvisiondist}}}|60|}} feet|}}
|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 06: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

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

|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

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

Template is modified from dnd-wiki.com

Any categories for the template itself