Extension:NamespaceHTML/pl
Ostrzeżenie: The code or configuration described here poses a major security risk. Site administrators: You are advised against using it until this security issue is resolved. Problem: Namespace detection code can be tricked allowing raw html to be unsafely executed. This is possible even for attackers who do not have any edit rights. Bawolff (talk) 04:17, 13 February 2023 (UTC) Rozwiązanie: Use a different extension like extension:Widgets Bawolff (talk) 04:17, 13 February 2023 (UTC) |
A request to archive this extension has been made on Phabricator. See zadanie T360235 for the archival request and the rationale for the request, and to leave comments about the request. |
To rozszerzenie nie jest aktualnie aktywnie rozwijane! Pomimo, że może nadal działać, jakiekolwiek zgłoszenia błędów lub propozycji funkcji będą najprawdopodobniej ignorowane. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Szablon:Rozszerzenie }} infobox. |
NamespaceHTML Status wydania: niewspierane |
|
---|---|
Realizacja | Znaczniki |
Opis | Allows raw HTML in specified namespaces |
Autor(zy) | Ike Hecht (tosfosdyskusja) |
Ostatnia wersja | 0.4 () |
Polityka zgodności | For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension. |
MediaWiki | 1.35, 1.39 |
Zmiany w bazie danych | Nie |
Licencja | GNU General Public License 2.0 lub późniejsza |
Pobieranie | |
$wgRawHtmlNamespaces |
|
<html> |
|
Quarterly downloads | 2 (Ranked 136th) |
Przetłumacz rozszerzenie NamespaceHTML jeżeli jest dostępne na translatewiki.net | |
Problemy | Otwarte zadania · Zgłoś błąd |
The NamespaceHTML extension allows raw HTML in specified namespaces. It is intended to work just like the $wgRawHtml setting. The difference is that this extension allows specifying which namespace(s) should be able to contain raw HTML, which allows administrators to restrict raw HTML to namespaces with sufficient edit protections.
This extension was created for WikiWorks.
Usage
Embed raw html within <html>...</html>
tags.
See Podręcznik:$wgRawHtml for more information.
As a template
The extension allows inclusion from namespaces where HTML is allowed to namespaces where HTML is not. You can create a custom script namespace and allow HTML in that namespace. Then you can create pages in the script namespace that contain safe scripts which can be transcluded into any page.
Technically, you can use the #tag parser function to pass parameters to the template. See here for an example. However, it is a better idea to use the Widgets extension for that.
Widget examples
- To add a Pinterest feed: Extension:NamespaceHTML/Pinterest Widget
Installation
- Pobierz i umieść plik(i) w katalogu o nazwie
NamespaceHTML
w folderzeextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NamespaceHTML - Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
wfLoadExtension( 'NamespaceHTML' );
- Configure as required.
- Uwaga:
$wgRawHtmlNamespaces = [];
must be configured, see below. - Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Configuration
- $wgRawHtmlNamespaces
- List of the namespaces where raw HTML should be enabled. See this page for more information about namespace constants. For example:
# allow raw HTML but only in the Project: & User: namespaces $wgRawHtmlNamespaces = [ NS_PROJECT, NS_USER ];
Zobacz też
- HTML_restriction - list of extensions that allow for the inclusion of raw HTML
- Extension:Secure HTML - adds "secret key" protection for html sections
- Extension:SaferHTMLTag - allows only sysops and certain user groups to edit pages containing the
<html>
tag - Extension:HTMLets - Serves HTML from server files