Manual:$wgRawHtml/cs

Podrobnosti
Vložte do souboru LocalSettings.php ve vašem hlavním adresáři MediaWiki a wiki vám umožní vložit nezkontrolované HTML HTML. Svůj html však musíte vložit do značek , aby jej MediaWiki dokázala odlišit.

Od MediaWiki 1.29 nemá nezpracovaný HTML tag žádný vliv na jmenný prostor 8 (MediaWiki): T156184.



Je nutné povolit raw HTML?
Některé HTML tagy jsou ve wikitextu povoleny i s. Viz m:Help:HTML ve wikitextu. Naprostá většina efektního formátování na stránkách Wikimedie je dosažena pomocí těchto omezených značek (např. tabulky se značkami ve stylu CSS). If you can make do with these limitations (leave ), your wiki will be more secure.

Also note that the "limited" wiki syntax is actually a deliberate design feature of wikis. It is a compact simplified markup which is easily understood even by non-technical users, easily visualised in diff displays, and discourages stylistic tinkering in favor of getting on with writing useful/interesting text.

Related Extensions
There are a number of extensions which promise to allow more HTML flexibility, while improving the security situation. Some require setting in conjunction with using the extension, while others offer an alternative.


 * - list of extensions that allow for the inclusion of raw HTML
 * – Allows only sysops and certain user groups to edit pages containing the tag.
 * - allows HTML in specific namespaces.
 * – adds "secret key" protection for html sections.
 * – allows pre-defined HTML snippets with.
 * – allows HTML and Smarty PHP templates, ostensibly in the form of "widgets", but it can do nearly anything else too.

Another way get custom HTML appearing within your wiki articles is to develop your own tag extension. Do not be tempted to develop an extension which allows arbitrary HTML, otherwise the same serious security issues apply as with setting.