Difference between revisions of "Template:Property"

From Open Food Facts wiki
Jump to navigation Jump to search
(Add a description to TemplateData)
Line 29: Line 29:
 
<templatedata>
 
<templatedata>
 
{
 
{
     "description": "This template creates a link for a property build for [[Folksonomy Engine]].",
+
     "description": "This template creates a link for a property build for Folksonomy Engine.",
 
     "params": {
 
     "params": {
 
         "1": {
 
         "1": {
 
             "label": "Property name",
 
             "label": "Property name",
 
             "description": "The name of the property",
 
             "description": "The name of the property",
             "type": "string"
+
             "type": "string",
 +
            "required": true
 
         }
 
         }
 
     }
 
     }

Revision as of 20:31, 15 September 2021

This template creates a link for 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

This template creates a link for a property build for Folksonomy Engine.

Template parameters

ParameterDescriptionTypeStatus
Property name1

The name of the property

Stringrequired

Code

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