Topic on Project:Support desk

How to tweak MediaWiki to support <a> tags?

6
Summary by Kghbln

Either use $wgRawHtml or a specialized extension. Doing both is not really recommended. On a publicly editable wiki this is a no-go.

49.230.1.137 (talkcontribs)

When I create MediaWiki webpages in my MediaWiki 1.34.0 website, I usually use the Wiki syntax and some raw data.

Sometimes I further use some HTML as well.

But,

I have noticed that if I use <a> tags MediaWiki parses them as preformetted text (as raw data) and not as links.


How to solve this problem by eliminating this behavior of MediaWIki so any <a> tags would be parsed normally (as in any other CMS I have used) which is just as a regular link?

How to tweak MediaWiki to (do indeed) support <a> tags?

49.230.1.137 (talkcontribs)
Kghbln (talkcontribs)

Try using the HTML Tags extension or extensions providing similar features.

49.230.1.137 (talkcontribs)

And is there a focal (LocalSettings.php?) solution just for <a> tags, without installing an extension?

Kghbln (talkcontribs)

None that I know of.

MarkAHershberger (talkcontribs)

See $wgRawHtml which may help you. But heed the warnings.