Template:5e Darkvision/doc: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "=== Usage === <nowiki>{{5e Darkvision |fluff=You never saw light while growing up. |dist=240 }}</nowiki> becomes {{5e Darkvision |fluff=You never saw light while growing up....")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=== Usage ===
=== Usage ===
Called from the 5e racial traits and 5e subrace traits templates.


<nowiki>{{5e Darkvision |fluff=You never saw light while growing up. |dist=240 }}</nowiki>
==Syntax==
<pre>{{5e Darkvision |fluff=optReasonForDarkvision|dist=optNumberOfFeat|color=optColorSeen}}</pre>


becomes
==Example==
{{5e Darkvision |fluff=You never saw light while growing up. |dist=240 }}
<pre>
{{5e Darkvision}}


----
{{5e Darkvision|fluff=You are from the Feywild.}}


Note: The |fluff parameter is optional, and will simply omit the leading sentences. The |dist parameter will default to 60 if it is missing.
{{5e Darkvision|dist=90}}


<nowiki>{{5e Darkvision}}</nowiki>
{{5e Darkvision|color=red}}
</pre>
 
produces...


becomes
{{5e Darkvision}}
{{5e Darkvision}}
{{5e Darkvision|fluff=You are from the Feywild.}}
{{5e Darkvision|dist=90}}
{{5e Darkvision|color=red}}
<noinclude>
[[Category:5e Template Documentation|Darkvision 5e]]
</noinclude>

Latest revision as of 07:52, 8 October 2019

Usage

Called from the 5e racial traits and 5e subrace traits templates.

Syntax

{{5e Darkvision |fluff=optReasonForDarkvision|dist=optNumberOfFeat|color=optColorSeen}}

Example

{{5e Darkvision}}

{{5e Darkvision|fluff=You are from the Feywild.}}

{{5e Darkvision|dist=90}}

{{5e Darkvision|color=red}}

produces...

Darkvision. 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.
Darkvision. You are from the Feywild. 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.
Darkvision. You can see in dim light within 90 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.
Darkvision. 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 red.