Template:Feature: Difference between revisions

From Freephile Wiki
No edit summary
Add edit button
Line 6: Line 6:
| {{#if: {{{tests|}}} | {{{tests}}} }}
| {{#if: {{{tests|}}} | {{{tests}}} }}
| {{#if: {{{examples|}}} | {{{examples}}} }}
| {{#if: {{{examples|}}} | {{{examples}}} }}
| {{#formlink:form=|link text=edit|link type=post button|tooltip=Edit with Form|popup|reload|returnto=Features}}
|}
|}



Revision as of 10:24, 25 April 2020

[[{{{explains}}}]] {{{description}}} {{{notes}}}
Error: 'popup' and 'returnto' cannot be set in the same function.



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