Template:Property: Difference between revisions

From Open Food Facts wiki
(Fix issue)
(Typo + Issues section)
 
(4 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 ==
* 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.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Property name1

The name of the property

Stringrequired

Code

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