Extension:HTML5Tags
![]() | This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintainedCategory:Unmaintained extensions |
|
---|---|
Implementation | TagCategory:Tag extensions |
Description | Allows some extra HTML5 tags in wiki code |
Author(s) | Leonard Wallentin (Rotseetalk) |
Latest version | 0.3 (2021-02-11) |
MediaWiki | 1.18.+Category:Extensions with manual MediaWiki version |
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.
- Allowed tags
- article
- figure
- figcaption
- hgroup
- mark
- nav
- section
- time
- footer
- header
Installation
- 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.Category:Extensions not using extension registration
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.