Difference between revisions of "Template:Feature"

From Freephile Wiki
Jump to navigation Jump to search
(Re-Add the formlink)
Tag: Undo
Line 1: Line 1:
{| class="wikitable" align="right" style="width:min-content;"
+
<noinclude>
 +
This is the "Feature" template.
 +
It should be called in the following format:
 +
<pre>
 +
{{Feature
 +
|explains=
 +
|description=
 +
|notes=
 +
|tests=
 +
|examples=
 +
}}
 +
</pre>
 +
Edit the page to see the template text.
 +
</noinclude><includeonly>{| class="wikitable"
 +
! Page or feature name
 +
| [[Feature explanation::{{{explains|}}}]]
 +
|-
 +
! Description
 +
| [[Feature description::{{{description|}}}]]
 +
|-
 +
! Notes
 +
| [[Feature notes::{{{notes|}}}]]
 +
|-
 +
! Test it (after upgrade)
 +
| [[Feature tests::{{{tests|}}}]]
 
|-
 
|-
| [[{{{explains}}}]]
+
! Examples
| {{{description}}}
+
| [[Feature examples::{{{examples|}}}]]
| {{#if: {{{notes|add notes:[[{{{explains}}}]]}}} | {{{notes}}} }}
 
| {{#if: {{{tests|}}} | {{{tests}}} }}
 
| {{#if: {{{examples|}}} | {{{examples}}} }}
 
| {{#formlink:form=|link text=edit|link type=post button|tooltip=Edit with Form|target={{PAGENAME}}|popup|reload|returnto=Features}}
 
 
|}
 
|}
  
{{#declare:
+
[[Category:Feature]]
feature explanation=explains
+
</includeonly>
|feature description=description
 
|feature notes=notes
 
|feature tests=tests
 
|feature examples=examples
 
}}
 
<includeonly>[[Category:Feature]] [[Category:Wiki]]</includeonly>
 
<noinclude>
 
{{documentation}}
 
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
 
The [https://www.semantic-mediawiki.org/wiki/Help:Argument_declaration_in_templates declare block] turns parameters into properties
 
 
 
</noinclude>
 

Revision as of 13:19, 27 April 2020

This is the "Feature" template. It should be called in the following format:

{{Feature
|explains=
|description=
|notes=
|tests=
|examples=
}}

Edit the page to see the template text.