Difference between revisions of "Template:Property"

From Open Food Facts wiki
Jump to navigation Jump to search
(Add "see also" section)
(Added TemplateData)
Line 25: Line 25:
 
== See also ==
 
== See also ==
 
* https://wiki.openstreetmap.org/wiki/Template:Tag
 
* https://wiki.openstreetmap.org/wiki/Template:Tag
 +
 +
== TemplateData ==
 +
<templatedata>
 +
{
 +
    "description": "",
 +
    "params": {
 +
        "1": {
 +
            "label": "Property name",
 +
            "description": "The name of the property",
 +
            "type": "string"
 +
        }
 +
    }
 +
}
 +
</templatedata>
  
 
== Code ==
 
== Code ==
 
</noinclude><code>[[Folksonomy/Property/{{{1}}}|{{{1}}}]]</code>
 
</noinclude><code>[[Folksonomy/Property/{{{1}}}|{{{1}}}]]</code>

Revision as of 19:55, 15 September 2021

This template adds a link and a format to a property build for Folksonomy Engine.

Syntax

  {{property
  |property_name
  }}

Example

  {{property 
  |packaging:has_character
  }}

or, might be easier to read:

  {{property|packaging:has_character}}

Result: packaging:has character

See also

TemplateData

Template parameters

ParameterDescriptionTypeStatus
Property name1

The name of the property

Stringoptional

Code

[[Folksonomy/Property/{{{1}}}|{{{1}}}]]