Template:SemanticInputParser/doc

Summary
This template is a designed for inputting semantic data. It allows for customizable rules such as Regular Expressions, data delimiters and 5 types of linking options.

Description

 * value: This is the value passed into the template to be parsed according to the variables LineDelim, SameLineDelim, RegexPrepend, RegexAppend. It also displays a error if the parsed data does not match RegexLineCodition.
 * This value uses the ~ as a delimiter for additional information which is not part of the semantic value. The value after the first is put inside of, and the value after the second is put inside of undefined.
 * SemanticPropertyName: This is the name of the semantic property to assign the parsed data to
 * SearchByProperty: This boolean property creates a search icon if there are the same values for the this property
 * SemanticPropertyUnit: This is the unit of the semantic property to automatically add
 * linkOptions:
 * default, show no link if the page does not exist
 * none, never show a link
 * Semantic Unit, Show the input with the semantic unit using the display units on the property page.
 * Wikipedia, link to wikipedia if does not exist on this wiki
 * Form:FormName, if there is no page of this name on the wiki, create a form link.
 * LineDelim: This property sets the separator between items before parsing.
 * SameLineDelim: This property sets the separator for items on the same line
 * NewLineDelim: This sets the separator between the items after parsing.
 * RegexLineCondition: This sets a regex condition for each item on a line, this field is provided due to users ability to input in ways other than a regex form input.
 * RegexPrepend: This sets a regex condition for the beginning part of the line to not include in the parsing
 * RegexPrependTemplate: This is a optional user defined template (using the variable ) to pass the prepended regex text through.
 * RegexAppend: This sets a regex condition for the ending part of the line to not include in the parsing
 * RegexAppendTemplate: This is a optional user defined template (using the variable ) to pass the appended regex text through.
 * PrependText: This value is inserted in front of a line item
 * AppendText: This value is inserted behind a line item
 * Icon Type: This value is used to set the type of icon, as items in different categories may use different naming conventions. If this value is set, the template requires the template to be defined. The SemanticInputParser/icon template is a place to store naming conventions so that the template can assemble a filename based on the icon type and parsed data.

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) http:///extensions/SemanticMediaWiki/skins/SMW_tooltip.js (for the alert messages)
 * Template:!

Samples

 * Only allow digits (including decimal) (from any script)


 * Only allow Japanese Kanji, Spaces or Punctuation


 * Do not interpret end of text as part of value


 * Do not interpret start of text as part of parsed value, also add measurement units using semantic property


 * Add italics around parsed value


 * Add a line as a title using the ~ delimiter, also uses RegexPrepend for ul lists


 * Change the delimiter between data, also uses RegexPrepend for ul lists


 * Insert template inside another template to create two columns for infobox (no css)


 * Insert template inside another template to create two columns for infobox