Extension:AssembleFormLink

Description
AssembleFormLink is a parser function that allows to build simple helper forms on a page (in display mode). They enquire all necessary data to create a correct and consistent URL when creating a new page through a Semantic Form.

Installation
Checkout the latest version via Git:

git clone https://github.com/Fannon/AssembleFormLink.git

Add Substitutor to your LocalSettings:

require_once( "$IP/extensions/AssembleFormLink/AssembleFormLink.php" );

Example

 * This will link to a new form of type
 * In order to provide a name / label use the category NaturalPerson
 * Ask for the first name through a textfield of size 16, use "First Name" as a placeholder
 * Add a comma and a space (', ')
 * Ask for the last name through a textfield of size 20, use "Last Name" as a placeholder
 * Set the category min-width to 140px. This is to provide a more consistent visual layout if many AssembleFormLinkare used.

Seperators
Following Seperators are currently supported:,  ,   and. It is possible to provide free text as seperator too, but beware of escaping.

If a separator needs to be included more than once, it has to be enumerated:,  , etc.

Forms
Currently only textfield is supported.

Additional Options can be supported through. They will be translated into HTML attributes.

Additional Options

 * If given, the category will be included in the URL. This is useful if namespaces should be created.
 * Sets the category min-width to 140px. This is to provide a more consistent visual layout if many AssembleFormLink are used.
 * Overrides the text of the submit button.

Global Options

 * Defines a global default submit button text.