MediaWiki/Mes Extensions/HTML Tags


MediaWiki/Mes Extensions/HTML Tags
Nom HTML Tags
Lien Extension:HTML_Tags

Description

Utilisation de tags html dans une page

  MediaWiki/Mes_Extensions


Configuration

Modification du fchier  LocalSettings.php
On indique les tags autorisés et les attributs associés autorisés

#htmltags
wfLoadExtension( "HTMLTags" );
$wgHTMLTagsAttributes['a'] = array( 'href', 'class' , 'data-bs-toggle','aria-expanded', 'aria-controls');
$wgHTMLTagsAttributes['img'] = array( 'src', 'style', 'width' );
$wgHTMLTagsAttributes['i'] = array( 'class' );
$wgHTMLTagsAttributes['div'] = array( 'class' );
$wgHTMLTagsAttributes['option'] = array( 'onClick' );
$wgHTMLTagsAttributes['select'] = array( 'width','style' );
$wgHTMLTagsAttributes['embed'] = array( 'type','src','width','height','flashvars','pluginspage');
$wgHTMLTagsAttributes['iframe'] = array( 'frameborder','allowtransparency','scrolling','height', 'width','src');


Example

<htmltag tagname="a" href="http://en.wikipedia.org/wiki/Antarctica" class="my-links">Read about Antarctica</htmltag>


Résultat

<a href="http://en.wikipedia.org/wiki/Antarctica" class="my-links">Read about Antarctica</a>