Template:5e Ability: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>'''''{{anchor|{{{1}}}}}{{#if: {{{limit|}}}| ({{{limit}}})|}}.''''' {{{2}}}{{#if: {{{1|}}}|{{#set: Features={{{1}}}}}|}}</includeonly><noinclude> ==Use== Use...") |
Tag: Undo |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>'''''{{anchor|{{{1}}}}}{{#if: {{{limit|}}}| ({{{limit}}})|}}.''''' {{{2}}}{{#if: {{{ | <noinclude><!-- Cargo Table --> | ||
{{#cargo_declare: | |||
_table = 5e_Features | |||
|Page_Name = Page (unique) | |||
|Features = List (, ) of String | |||
}} | |||
</noinclude><includeonly>{{#if: {{{1|}}}|'''''{{anchor|{{{1}}}}}{{#if: {{{limit|}}}| ({{{limit}}})|}}.''''' {{{2|}}}{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store: _table = 5e_Features | |||
|where=_pageName={{FULLPAGENAME}} | |||
|Page_Name={{FULLPAGENAME}} | |||
|Features={{{1}}} | |||
}}}}|}}</includeonly><noinclude> | |||
==Use== | ==Use== | ||
Used in many templates. It places an HTML anchor for the first term (name) and then lists the second term (description). | Used in many templates. It places an HTML anchor for the first term (name) and then lists the second term (description). It also places the feature in the 5e_Features db table. | ||
==Syntax== | ==Syntax== | ||
Line 20: | Line 30: | ||
Produces... | Produces... | ||
{{5e Ability|Foo|The description of foo is that it acts as a placeholder for a value.}} | {{5e Ability|Foo|The description of foo is that it acts as a placeholder for a value.|nodb=true}} | ||
{{5e Ability|Foo|limit={{SRD5|Recharge}}s 5-6|The description of foo is that it acts as a placeholder for a value.}} | {{5e Ability|Foo|limit={{SRD5|Recharge}}s 5-6|The description of foo is that it acts as a placeholder for a value.|nodb=true}} | ||
[[Category:5e Templates]] | [[Category:5e Templates|Ability 5e]] |
Latest revision as of 11:06, 3 March 2020
This template defines the table "5e_Features". View table.
Use
Used in many templates. It places an HTML anchor for the first term (name) and then lists the second term (description). It also places the feature in the 5e_Features db table.
Syntax
{{5e Ability|name|description}}
Optional Entries
|limit= <!-- limits how often. I.e. 3/Day, {{SRD5|Recharge}} 5-6, etc. -->
Example
{{5e Ability|Foo|The description of foo is that it acts as a placeholder for a value.}} {{5e Ability|Foo|limit={{SRD5|Recharge}}s 5-6|The description of foo is that it acts as a placeholder for a value.}}
Produces...
Foo. The description of foo is that it acts as a placeholder for a value.
Foo (Recharges 5-6). The description of foo is that it acts as a placeholder for a value.