Difference between revisions of "Template:Property"

From Open Food Facts wiki
Jump to navigation Jump to search
(Fix issue)
(Typo + Issues section)
 
(5 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 12: Line 12:
 
<pre>
 
<pre>
 
   {{property  
 
   {{property  
   |packaging:has character
+
   |packaging:has_character
 
   }}
 
   }}
 
</pre>
 
</pre>
  
Result: {{property|packaging:has character}}
+
or, might be easier to read:
 +
<pre>
 +
  {{property|packaging:has_character}}
 +
</pre>
 +
 
 +
'''Result''': {{property|packaging:has_character}}
 +
 
 +
== Issues, questions or todo ==
 +
* What about linking to a page in another language?
 +
 
 +
== See also ==
 +
* https://wiki.openstreetmap.org/wiki/Template:Tag
 +
 
 +
== TemplateData ==
 +
<templatedata>
 +
{
 +
    "description": "This template creates a link for a property build for Folksonomy Engine.",
 +
    "params": {
 +
        "1": {
 +
            "label": "Property name",
 +
            "description": "The name of the property",
 +
            "type": "string",
 +
            "required": true
 +
        }
 +
    }
 +
}
 +
</templatedata>
  
 +
== Code ==
 
</noinclude><code>[[Folksonomy/Property/{{{1}}}|{{{1}}}]]</code>
 
</noinclude><code>[[Folksonomy/Property/{{{1}}}|{{{1}}}]]</code>

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