Template:5e Feat: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
|Feat_Canon=Boolean
|Feat_Canon=Boolean
|Feat_Pointer=Boolean
|Feat_Pointer=Boolean
}}</noinclude><includeonly>{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}| }}The '''{{{name|}}}''' is a {{srd5lc|Feat}}[[Category:5e]][[Category:5e Feats]] in [[5e|5th ed. Dungeons & Dragons]]{{#if: {{{pub|}}}|&ensp;described in the ''{{pub|{{{pub|}}}}}|}}''.
}}</noinclude><includeonly>
 
'''<big><big>{{{name|}}}</big></big>'''{{#if: {{{refs|}}}|&ensp;{{{refs}}}|}} <span style="font-size:0.9em;">({{srd5lc|Feat}})</span>{{#if: {{{prereqs|}}}|<br />''Prerequisite: {{#arraymap: {{{prereqs}}}|,|x|x}}
'''<big><big>{{{name|}}}</big></big>'''{{#if: {{{refs|}}}|<span style="display:inline; float:right;">{{{refs}}}</span>|}}{{#if: {{{prereqs|}}}|<br />''Prerequisite: {{#arraymap: {{{prereqs}}}|,|x|x}}
}}<br/>
}}<br/>
{{#if: {{{benefit|}}}|{{{benefit}}}|'''Unofficial Description:''' {{{summary|}}}}}<!--
{{#if: {{{benefit|}}}|{{{benefit}}}|'''Unofficial Description:''' {{{summary|}}}}}<!--
Line 25: Line 24:
|Feat_Canon={{#if: {{{canon|}}}|1}}
|Feat_Canon={{#if: {{{canon|}}}|1}}
|Feat_Pointer={{#if: {{{pointer|}}}|1}}
|Feat_Pointer={{#if: {{{pointer|}}}|1}}
}}}}[[Category:5e Feats]]{{#if: {{{racefeat|}}}|{{5e Race Line to Cat|{{{racefeat}}}}}[[Category:5e Racial Feat]]|}}
}}<!--
-- Categories --
-->{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}| }}[[Category:5e Feats]]{{#if: {{{racefeat|}}}|{{5e Race Line to Cat|{{{racefeat}}}}}[[Category:5e Racial Feat]]|}}
}}<!--endif nodb-->
</includeonly><noinclude>
</includeonly><noinclude>
==Syntax==
==Syntax==
Line 43: Line 45:
===Deprecated Entries===
===Deprecated Entries===
<pre>|pub= (replaced by refs)</pre>
<pre>|pub= (replaced by refs)</pre>
==Database Table==
<pre>
table = 5e_Feats
|Sort_Text = String
|Feat_Name=String
|Prereqs=List (, ) of Wikitext String
|Summary=Wikitext String
|Benefit=Wikitext
|Race_Feat=List (, ) of Wikitext String <!--list of races or subraces-->
|Feat_Canon=Boolean
|Feat_Pointer=Boolean
</pre>


==Example==
==Example==

Revision as of 06:00, 30 May 2022

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

Syntax

{{5e Feat
|name= <!--Feat Name-->
|sorttext= <!--Usually blank, category sort-->
|refs=
|prereqs= <!--blank, otherwise list prerequisites-->
|racefeat=<!--blank or link to race if racial feat-->
|canon=<!--blank, true if canon-->
|pointer=<!--blank, true if pointer-->
|summary=
|benefit= <!--benefit of feat-->
}}

Deprecated Entries

|pub= (replaced by refs)

Example

{{5e Feat
|name=Foo <!--Feat Name-->
|sorttext= <!--Usually blank, category sort-->
|refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=128}} Licensed: [[CC-BY-SA]].</ref>
|prereqs={{SRD5|Strength}} 13+, {{SRD5|Intelligence}} <10
|summary=You can fool some of the people...
|benefit=The Foo feat allows you to be a fool.
* Strength and {{SRD5|Dexterity}} {{srd5lc|Check}}s to escape a {{srd5lc|Grapple}} have {{srd5lc|Advantage}}.
* {{SRD5|Insight}} checks are at {{srd5lc|Disadvantage}}.
* add 1d4 to {{SRD5|Charisma}} {{srd5lc|Saving Throw}}s.<!--benefit of feat-->
}}

produces...


Foo[1] (feat)
Prerequisite: Strength 13+, Intelligence <10
The Foo feat allows you to be a fool.

  1. Foo's Guide to Nothing p. 128. Licensed: CC-BY-SA.