An open API service indexing awesome lists of open source software.

https://github.com/wikimedia/mediawiki-extensions-htmltags

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

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

HTML Tags extension for MediaWiki.

This extension defines a tag function, , that allows users to place
HTML tags on the page that may not be otherwise allowed by the MediaWiki
parser.

For more information, see the extension homepage at:
https://www.mediawiki.org/wiki/Extension:HTML_Tags

== Overview ==

can only display tags and attributes that are allowed for that wiki.
Tags and attributes are allowed through the use of the global variable
$wgHTMLTagsAttributes in LocalSetting.php. To allow the use of the tag,
for instance, with the attributes 'href' and 'class', you would add the
following to LocalSettings.php:

$wgHTMLTagsAttributes['a'] = array( 'href', 'class' );

A user could then display an tag on the wiki, with those attributes, with
text like the following:

See here

Calling with a tag name that is not allowed will result in an error
message; calling it with an attribute that is not allowed will simply lead to
the attribute being ignored.

== License ==

HTML Tags is available under the GNU Public License.

== Authors ==

HTML Tags was written by Yaron Koren.