Difference between revisions of "Template:5e Racial Traits"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m
m (pointer)
 
(18 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
|[[Template:5e Race Pointer]]<br />
 
|[[Template:5e Race Pointer]]<br />
 
[[Template:5e Subrace Traits]]
 
[[Template:5e Subrace Traits]]
|}</noinclude>--><includeonly>{{#set: Is Race=true}}
+
|}</noinclude>--><includeonly>{{#set: Is Race=true}}[[Category:5e Races]][[Category:Race]]
:'''Ability Score Increase.''' <!--{{#if: {{{abilityscores|}}}|{{{abilityscores}}}|}}abilityscores is deprecated-->{{#if: {{{abilitynote|}}}|{{{abilitynote}}}&ensp;{{#set: Ability Mods={{{abilitynote}}}}}|}}{{5e First Ability Mod|str={{{str}}}|dex={{{dex}}}|con={{{con}}}|int={{{int}}}|wis={{{wis}}}|cha={{{cha}}}}}
+
<span style="font-size:1.3em;">'''{{{name|}}}'''</span>{{#if: {{{refs|}}}|&ensp;{{{refs|}}}|}}{{#if: {{{pointer|}}}|&ensp;([[pointer]])|}}
:{{5e Ability|Age|{{{age|}}} }}
+
:'''Creature Type.''' {{#if: {{{creaturetype|}}}|{{5e Creature Type Line|{{{creaturetype}}}}}|{{SRD5|Humanoid}}{{#set: Type=Humanoid}}|}}
:{{5e Ability|Alignment|{{{alignment|}}} }}
+
:'''Ability Score Increase.''' {{#if: {{{lineage|}}}|Increase one {{srd5lc|Ability Score}} by 2 and another one by 1, or increase three different ability scores by 1{{#set: Ability Mods=Increase one {{srd5lc|Ability Score}} by 2 and another one by 1, or increase three different ability scores by 1}}{{#set: Is Lineage=true}}|<!--not lineage-->{{#if: {{{abilitynote|}}}|{{{abilitynote}}}&ensp;{{#set: Ability Mods={{{abilitynote}}}}}|}}{{5e First Ability Mod|str={{{str}}}|dex={{{dex}}}|con={{{con}}}|int={{{int}}}|wis={{{wis}}}|cha={{{cha}}}}}|}}
 +
:{{5e Ability|Age|{{{age|}}} }}{{#if: {{{lineage|}}}|<!--skip-->|<nowiki />
 +
:{{5e Ability|Alignment|{{{alignment|}}} }} |}}
 
:{{5e Ability|Size|{{#if: {{{sizedesc|}}}|{{{sizedesc}}}<nowiki> </nowiki>|}} Your size is {{ucfirst:{{{size|medium}}}}}{{#set: Size={{{size}}}}}. }}
 
:{{5e Ability|Size|{{#if: {{{sizedesc|}}}|{{{sizedesc}}}<nowiki> </nowiki>|}} Your size is {{ucfirst:{{{size|medium}}}}}{{#set: Size={{{size}}}}}. }}
 
:{{5e Ability|Speed|Your base {{{speedtype|walking}}} speed is {{{speed|30}}} feet. {{{additionalspeeds|}}} }}{{#if: {{{darkvisionfluff|}}} |&nbsp;
 
:{{5e Ability|Speed|Your base {{{speedtype|walking}}} speed is {{{speed|30}}} feet. {{{additionalspeeds|}}} }}{{#if: {{{darkvisionfluff|}}} |&nbsp;
:{{5e Darkvision|fluff={{{darkvisionfluff}}}|dist={{#if:{{{darkvisiondist|}}}|{{{darkvisiondist}}}{{#set: Features=Darkvision {{{darkvisiondist}}}}}|60{{#set: Features=Darkvision 60}}}}|color={{#if: {{{darkvisioncolor|}}}|{{{darkvisioncolor}}}|gray}}}}<!--close darkvision template-->|}}<!--endif fluff-->{{#if: {{{trait1name|}}} |&nbsp;
+
:{{5e Darkvision|fluff={{#ifeq: {{{darkvisionfluff}}}|true|<!--skip-->|{{{darkvisionfluff}}}|}}|dist={{#if:{{{darkvisiondist|}}}|{{{darkvisiondist}}}{{#set: Features=Darkvision {{{darkvisiondist}}}}}|60{{#set: Features=Darkvision 60}}}}|color={{#if: {{{darkvisioncolor|}}}|{{{darkvisioncolor}}}|gray}}}}<!--close darkvision template-->|}}<!--endif fluff-->{{#if: {{{trait1name|}}} |&nbsp;
 
:{{5e Ability|{{{trait1name}}}|{{{trait1desc|No trait1desc written.}}} }}{{#set: Features={{{trait1name}}}}} }}{{#if: {{{trait2name|}}} |&nbsp;
 
:{{5e Ability|{{{trait1name}}}|{{{trait1desc|No trait1desc written.}}} }}{{#set: Features={{{trait1name}}}}} }}{{#if: {{{trait2name|}}} |&nbsp;
 
:{{5e Ability|{{{trait2name}}}|{{{trait2desc|No trait2desc written.}}} }}{{#set: Features={{{trait2name}}}}} }}{{#if: {{{trait3name|}}} |&nbsp;
 
:{{5e Ability|{{{trait2name}}}|{{{trait2desc|No trait2desc written.}}} }}{{#set: Features={{{trait2name}}}}} }}{{#if: {{{trait3name|}}} |&nbsp;
Line 31: Line 33:
 
:{{5e Ability|{{{trait19name}}}|{{{trait19desc|No trait19desc written.}}} }}{{#set: Features={{{trait19name}}}}} }}{{#if: {{{trait20name|}}} |&nbsp;
 
:{{5e Ability|{{{trait19name}}}|{{{trait19desc|No trait19desc written.}}} }}{{#set: Features={{{trait19name}}}}} }}{{#if: {{{trait20name|}}} |&nbsp;
 
:{{5e Ability|{{{trait20name}}}|{{{trait20desc|No trait20desc written.}}} }}{{#set: Features={{{trait20name}}}}} }}
 
:{{5e Ability|{{{trait20name}}}|{{{trait20desc|No trait20desc written.}}} }}{{#set: Features={{{trait20name}}}}} }}
:{{5e Ability|Languages|You can speak, read, and write {{{languages|Common}}}. {{{languagedesc|}}} }}{{#if: {{{subrace|}}} |<!--&nbsp;
+
:{{5e Ability|Languages|You can speak, read, and write {{#if: {{{languages|}}}|{{{languages}}}|{{#if: {{{lineage|}}}|{{SRD5|Common}} and one other language of choice.|{{5elang|Common}}.|}}|}} {{{languagedesc|}}} }}{{#if: {{{subrace|}}} |<!--&nbsp;
 
:{{5e Ability|Subrace|{{{subrace}}} }}-->{{#set: Subrace=true}} }}
 
:{{5e Ability|Subrace|{{{subrace}}} }}-->{{#set: Subrace=true}} }}
 +
{{#if: {{{name|}}}|{{#set: Race Name={{{name}}}}}|{{#set: Race Name={{BASEPAGENAME}}}}|}}
 +
{{#if: {{{summary|}}}|{{#set: Summary={{{summary}}}}}|}}
 +
{{#if: {{{sorttext|}}}|{{DEFAULTSORTKEY: {{{sorttext}}} 5e}}{{#set: SortText={{{sorttext}}}}}|}}
 
</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 13:47, 8 August 2022

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=
|creaturetype=
|lineage= <!--blank, or 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=<!-- 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; true=std.fluff, 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 associated custom racial trait -->

|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=<!-- 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 -->
}}

Example[edit]

{{5e Racial Traits
|name=Foo
|sorttext=
|refs=<ref name="fgtn.33">{{Cite Pub|Foo's Guide to Nothing|pages=33}} 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={{SRD5|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=<!-- blank=no darkvision; nofluff=skip fluff; or the reason why your race has darkvision.-->
|darkvisiondist=<!-- blank=30 feet; or distance of darvision -->
|darkvisioncolor=<!-- blank=gray; or color of darkvision -->
|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.
|languages={{SRD5|Common}} and Fooishness
|languagedesc=<!-- a description of the racial language, options or descriptions -->
|subrace=y
}}

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.  
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 Common and Fooishness




Template Attribution[edit]

Template is modified from dnd-wiki.com

Any categories for the template itself


  1. p. 33. Licensed: Public Domain.