Giter Club home page Giter Club logo

mediawiki-extensions-htmltags's Introduction

HTML Tags extension for MediaWiki.

This extension defines a tag function, <htmltag>, 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 ==

<htmltag> 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 <a> 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 <a> tag on the wiki, with those attributes, with
text like the following:

<htmltag tagname="a" href="http://example.com" class="link">See here</htmltag>

Calling <htmltag> 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.

mediawiki-extensions-htmltags's People

Contributors

hashar avatar kghbln avatar kizule avatar ladsgroup avatar legoktm avatar nikerabbit avatar paladox avatar reedy avatar siebrand avatar thiemowmde avatar translatewiki avatar umherirrender avatar yaronkoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lurchmath

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.