Extension:SemanticHTML

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
SemanticHTML

Release status: beta

Implementation Tag
Description Adds support for HTML4 phrase elements plus the HTML5 time element
Author(s) Ben Ward
MediaWiki 1.13, possibly later versions, too
Database changes no
License No license specified
Download Project page
Download snapshot

Git [Help]
Commit history
Note:
No localisation updates are provided by translatewiki.net.

README
CHANGELOG

Example microformats.org
Tags
<abbr>
<acronym>
<dfn>
<kbd>
<samp>
<time>
<var>
Hooks used
ParserFirstCallInit

Translate the SemanticHTML extension if possible

Check usage and version matrix; code metrics
This placeholder is to ensure that SemanticHTML shows up in the Extension Matrix. The actual homepage is the GitHub project page.

The SemanticHTML extension adds support for HTML4 phrase elements plus the HTML5 time element to MediaWiki since MediaWiki strips out these descriptive elements by default.

This extension adds support for:

  • abbr
  • acronym
  • dfn
  • kbd
  • samp
  • time
  • var
Though this extension's name may suggest otherwise, this is not an extension to Semantic MediaWiki.

Installation[edit | edit source]

  1. Download the files from GitHub as tar.gz or zip.
  2. Create a directory SemanticHTML in your $IP/extensions directory.
  3. Extract the files to this $IP/extensions/SemanticHTML directory.
  4. Add
    require_once( "$IP/extensions/SemanticHTML/SemanticHTML.php" );
    to the bottom of LocalSettings.php.
  5. Installation can now be verified through Special:Version of your wiki.