Template:Metadata/List to property

From OpenMedia
Jump to: navigation, search

Parse a semicolon list to a property (check for Wiki User syntax). Part of Template:Metadata.

Usage

{{Metadata/List to property|list=one; two; three;|property=myproperty}}
{{Metadata/List to property|list=one; two; three;|property=myproperty|add category=yes}}
{{Metadata/List to property|list=one; two; three;|property=myproperty|strip formatting=yes}}

Output would be: one • two • three.

Some properties will create a search link to http://species-id.net/openmedia/Special:RunQuery/Search_media_by_metadata

Parameters

Mandatory parameters:

|list= 
parameter value (semicolon list)
|sep= 
separator value (default  • )
|property= 
name of the property to save to
|add category= 
(default no) possible values 1, true, yes
|strip formatting= 
(default no) possible values 1, true, yes. Strips formatting of property but not the display

Dependencies