mediawiki/semantic-forms-select

Allows to generate a select field in a form whose values are retrieved from a query

2.1.1 2017-06-27 14:46 UTC

README

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Packagist download count

Semantic Forms Select (a.k.a. SFS) can generate a select form element with values retrieved from a #ask query or a parser function.

Requirements

Installation

The recommended way to install Semantic Forms Select is by using Composer with an entry in MediaWiki's composer.json or alternatively composer.local.json.

{
	"require": {
		"mediawiki/semantic-forms-select": "~2.1"
	}
}
  1. From your MediaWiki installation directory, execute
    composer require mediawiki/semantic-forms-select:~2.1
  2. Add the following line to your "LocalSettings.php" file after the inclusion of Semantic MediaWiki and Page Forms:
    wfLoadExtension( 'SemanticFormsSelect' );
  3. Navigate to Special:Version on your wiki and verify that the extension has been successfully installed.

Note that the required extensions Semantic MediaWiki and Page Forms must be installed first according to the installation instructions provided with them.

Usage

Please consult the help page for more information and examples.

Contribution and support

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the contribution guideline.

Original code from https://code.google.com/p/semanticformsselect/downloads/list

Tests

This extension provides unit and integration tests that are run by a continues integration platform but can also be executed using composer phpunit from the extension base directory.

License

GNU General Public License, version 2 or later.