Difference between revisions of "Template:Feature"

From Freephile Wiki
Jump to navigation Jump to search
(Declare all parameters; change property names)
Line 5: Line 5:
 
| {{#if: {{{tests|}}} | {{{tests}}} }}
 
| {{#if: {{{tests|}}} | {{{tests}}} }}
 
| {{#if: {{{examples|}}} | {{{examples}}} }}
 
| {{#if: {{{examples|}}} | {{{examples}}} }}
<!-- add a declare block -->
+
<!-- add a declare block https://www.semantic-mediawiki.org/wiki/Help:Argument_declaration_in_templates -->
{{#declare:explainsFeature=explains
+
{{#declare:
|featureDescription=description
+
featureExplanation=explains
|testsDescription=tests
+
|feature description=description
 +
|feature notes=notes
 +
|feature tests=tests
 +
|feature examples=examples
 
}}
 
}}
 
<includeonly>[[Category:Feature]] [[Category:Wiki]]</includeonly>
 
<includeonly>[[Category:Feature]] [[Category:Wiki]]</includeonly>

Revision as of 13:44, 24 April 2020

|- | [[{{{explains}}}]] | {{{description}}} | {{{notes}}} | |


Documentation icon Template documentation[view] [edit] [history] [purge]

Usage[edit source]

To use the template, please fill out the Feature form.

Note about implementation[edit source]

The declare block turns parameters into properties