GithubHelp home page GithubHelp logo

wikimedia / mediawiki-extensions-selecttag Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 804 KB

Github mirror of MediaWiki extension SelectTag - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Home Page: https://gerrit.wikimedia.org

License: GNU General Public License v3.0

PHP 88.97% JavaScript 11.03%

mediawiki-extensions-selecttag's Introduction

MediaWiki Extension
Name: SelectTag
Author: Khaled El Mansoury

Example:

---LocalSettings.php---
$wgSelectTag[ 'examplesource' ][ '_dbname' ] = 'exampletbl';
$wgSelectTag[ 'examplesource' ][ 'attr1' ] = 'field1';
$wgSelectTag[ 'examplesource' ][ 'attr2' ] = 'field2';
$wgSelectTag[ 'examplesource' ][ 'attr3' ] = 'field3';
$wgSelectTag[ 'examplesource' ][ '_show' ][ 'show1' ] = 'field4';
$wgSelectTag[ 'examplesource' ][ '_showDefault' ] = 'show1';

---Page---
<select _source="examplesource" arr1="value1" arr2="value2" arr3="value3" _show="show1" />

---Resulting SQL query---
SELECT field1, field2, field3 FROM exampletbl
WHERE arr1='value1' AND arr2='value2' AND arr3='value3';

The full documentation for the SelectTag extension can be found at the following address:
http://www.expressprogs.com/products/mwext/selecttag/
The MediaWiki extension page can be found at this address:
https://www.mediawiki.org/wiki/Extension:SelectTag

mediawiki-extensions-selecttag's People

Contributors

aaronschulz avatar cscott avatar floriansw avatar hashar avatar kelmansoury avatar kizule avatar ladsgroup avatar legoktm avatar nikitarana07 avatar raymondde avatar reedy avatar shirayuki avatar siebrand avatar translatewiki avatar umherirrender avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.