Extension:HTML5Tags
Appearance
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
HTML5Tags Release status: unmaintained |
|
---|---|
Implementation | Tag |
Description | Allows some extra HTML5 tags in wiki code |
Author(s) | Leonard Wallentin (Rotseetalk) |
Latest version | 0.3 (2021-02-11) |
MediaWiki | 1.18.+ |
PHP | 7+ |
Database changes | No |
License | BSD 2-clause "Simplified" License |
Download | Download snapshot Note: README |
The HTML5Tags extension allows a couple of HTML5 tags such as e.g. figure/figcaption in wiki code.
This extension remains useful as long as bug T25932 is not resolved.
- Allowed tags
- article
- figure
- figcaption
- hgroup
- mark
- nav
- section
- time
- footer
- header
Installation
[edit]- Download and place the file(s) in a directory called
HTML5Tags
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/HTML5Tags/HTML5Tags.php";
- Done â Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
If you want HTML5 tags to work properly in older versions of Internet Explorer, you will have to add a HTML5 Shiv script to your skin, e. g.:
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
There is no known way to make these tags fully behave in earlier versions of Internet Explorer for users with JavaScript turned off. That is the reason they are not allowed in wiki code in the first place.