[10:56:29] Hi, is there a way to add custom HTML codes to wiki pages? I tired to set $wgRawHtml = true; but nothing works. [10:56:55] When I add code within ... it's not working. [11:04:34] Any suggestion is appreciated. Looking forward! [11:04:35] {{#tag:html| your html here }} is how we use it.. [11:04:49] Thank you sir. [11:04:52] I will try this. [11:07:12] There is also a mediawiki setting to allow this: https://m.mediawiki.org/wiki/Manual:$wgRawHtml [11:07:51] Not working I added html code as {{#tag:html| [11:07:52] [11:07:52] [11:07:53]
foo
bar
}} [11:08:08] but its showing the result as
foo
bar
[11:08:38] Did you check the link I posted? [11:08:52] I tried activating wgRawHtml by following the instruction on the page you shared above but its not working. [11:10:07] Then i don't have a quick answer. Except that it doesn't work in the Mediawiki namespace. As mentioned on that page [11:11:51] I tired in the main and user namespace but not working. [11:28:42] If you have $wgRawHtml turned on and you notice some HTML being stripped out, you may need to turn off $wgUseTidy. [11:28:42] MediaWiki version: [11:28:43] ≥ 1.29 [11:29:05] Is also mentioned. [11:29:05] Another way if using html are widgets [11:29:26] https://www.mediawiki.org/wiki/Extension:Widgets [11:29:57] Then you can turn the unsafe rawhtml off [11:33:50] No luck by turning off $wgUseTidy still see the same issue. [11:54:42] Perhaps someone else has a suggestion. Or go with the widgets. [11:56:43] Guest3776: Is there a possibility that you're not adding that setting to the correct file? It should be put in LocalSettings.php. Also, be sure you're editing the *right* LocalSettings.php file in case you have multiple installations, backup files, etc [11:59:15] A quick & dirty way to check if you're editing the correct file, is to intentionally introduce a PHP syntax error. For example, adding a dash at the end of the file should cause an error when visiting any page on your wiki. Once you're tested that, simply undo that change [12:06:11] Vulpix no I'm adding that code to the right LocalSettings.php and no dash or anything but its not accepting it. [12:13:41] there also might be cases where PHP uses opcache and you have to touch index.php or reload php-fpm etc. for the changes to be picked up [12:14:40] Guest3776: the suggestion was to test if your LocalSettings.php changes are at all applied [12:14:52] by introducing an error in the file