FANDOM


Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:SemanticInputParser/Array]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.

Summary

This template is a designed for inputting multiple sets of data into single value semantic properties. See Template:SemanticInputParser for further documentation.

Variables (default)

{{SemanticInputParser/Array
        |value=
        |SemanticPropertyName=
        |SemanticPropertyUnit=
        |SearchByProperty=false
        |linkOptions=default
        |LineDelim=,
        |NewLineDelim=\n\n*
        |SameLineDelim=/
        |ExtraInfoDelim=~
        |ExtraInfoTemplate=
        |RegexLineCondition=
        |RegexPrepend=
        |RegexPrependTemplate=
        |RegexAppend=
        |RegexAppendTemplate=
        |PrependText=
        |PrependTemplate=
        |AppendText=
        |AppendTemplate=
}}

Description

  • LineDelim: This property sets the separator between items before parsing.
    • SameLineDelim: This property sets the separator for items on the same line. If this is set to the same as LineDelim it will cancel this parameter out.
  • NewLineDelim: This sets the separator between the items after parsing.
Side Notes
  • RegexPrepend: This should not contain values that have been defined as Delimiters.
  • RegexAppend: This should not contain values that have been defined as Delimiters.

Requirements

  1. http://www.mediawiki.org/wiki/Extension:Regex_Fun
  2. http://www.mediawiki.org/wiki/Extension:Variables
  3. http://www.mediawiki.org/wiki/Extension:Semantic_Forms (#arraymap parser)
  4. http://www.mediawiki.org/wiki/Extension:Semantic_MediaWiki
  5. Template:!
Community content is available under CC-BY-SA unless otherwise noted.