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)
- Host: GitHub
- URL: https://github.com/wikimedia/mediawiki-extensions-htmltags
- Owner: wikimedia
- License: gpl-2.0
- Created: 2012-11-01T19:12:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-11-28T06:36:59.000Z (7 months ago)
- Last Synced: 2025-01-30T13:01:37.698Z (5 months ago)
- Language: PHP
- Homepage: https://gerrit.wikimedia.org
- Size: 1.39 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
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.