Template:Feature: Difference between revisions

From Freephile Wiki
No edit summary
No edit summary
Line 1: Line 1:
{| class="wikitable" align="right" style="width:min-content;"
|-
|-
| [[{{{explains}}}]]
| [[{{{explains}}}]]
Line 5: Line 6:
| {{#if: {{{tests|}}} | {{{tests}}} }}
| {{#if: {{{tests|}}} | {{{tests}}} }}
| {{#if: {{{examples|}}} | {{{examples}}} }}
| {{#if: {{{examples|}}} | {{{examples}}} }}
<!-- add a declare block https://www.semantic-mediawiki.org/wiki/Help:Argument_declaration_in_templates -->
|}
 
{{#declare:
{{#declare:
feature explanation=explains
feature explanation=explains
Line 17: Line 19:
{{documentation}}
{{documentation}}
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
<!-- 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>
</noinclude>

Revision as of 15:08, 24 April 2020

[[{{{explains}}}]] {{{description}}} {{{notes}}}



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

This is the 'Feature' template.

Usage

When you create a new Feature page, just use the Feature form which automatically uses this template.

If you were to manually include it in a page, it would be used like this:

{{Feature
 | image =
 | imgdesc =
 | collection =
 | title =
 | description =
 | notes =
 | examples =
 | tests =
}}

The template doesn't set has coordinates. But if a page does have the property, then the infobox will display a map


A template for creating pages with the content type "Feature", making the pages semantically rich, included in the Feature category and displayed on the Feature page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Feature imageimage

a suitable representation of the feature

Fileoptional
feature image descriptionimgdesc

describe the image used

Stringoptional
Image collectioncollection

no description

Unknownoptional
Feature Titletitle

no description

Stringoptional
Feature descriptiondescription

no description

Stringoptional
notesnotes

no description

Stringoptional
examplesexamples

no description

Stringoptional
teststests

no description

Stringoptional

The declare block turns parameters into properties