Difference between revisions of "Template:Property"

From Open Food Facts wiki
Jump to navigation Jump to search
(Added TemplateData)
(Typo + Issues section)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template adds a link and a format to a property build for [[Folksonomy Engine]].
+
This template creates a link for a property build for [[Folksonomy Engine]].
  
 
== Syntax ==
 
== Syntax ==
Line 21: Line 21:
 
</pre>
 
</pre>
  
'''Result''': {{property|packaging:has character}}
+
'''Result''': {{property|packaging:has_character}}
 +
 
 +
== Issues, questions or todo ==
 +
* What about linking to a page in another language?
  
 
== See also ==
 
== See also ==
Line 29: Line 32:
 
<templatedata>
 
<templatedata>
 
{
 
{
     "description": "",
+
     "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
 
         }
 
         }
 
     }
 
     }

Latest revision as of 07:03, 16 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

Issues, questions or todo

  • What about linking to a page in another language?

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}}}]]