Extension:UrlGetParameters/pl

Category:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
UrlGetParameters
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Funkcja parsera Category:Parser function extensions/pl
Opis Provides a parser function {{#urlget:...}} which allows access to the URL parameters in your page.
Autor(zy) S.O.E. Ansems
Ostatnia wersja 1.6.0 (2021-04-16)
MediaWiki 1.35+Category:Extensions with manual MediaWiki version/pl
Zmiany w bazie danych Nie
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie Category:Extensions in Wikimedia version control/pl
  • $wgUrlGetParametersSeparator
Przetłumacz rozszerzenie UrlGetParameters jeżeli jest dostępne na translatewiki.net
Rola Vagrant urlgetparameters
Category:All extensions/pl

The UrlGetParameters extension enables you to use and/or display the "GET" parameters of the URL, i.e. the query string, on the wiki page.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie UrlGetParameters w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/UrlGetParameters
    
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'UrlGetParameters' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Użycie

Caching for the page you use this extension on should be disabled.

To display the value of a URL get parameter in your page, you might do this:

{{#urlget:parameter-name}}

Where parameter-name is the name of the parameter whose value you want. If the parameter is not found, the extension will result in nothing. Alternatively, you can also specify a default value as follows:

{{#urlget:parameter-name|default-value}}

When the parameter parameter-name is not available, then the value default-value is returned.

If the URL contains parameters of the form "A[B]=C", you can display the value "C" in a similar way, by calling:

{{#urlget:A[B]}}

Authors

This extension was written by S.O.E. Ansems. Important contributions were made by Ankit Garg and some anonymous editors.

Category:All extensions/pl Category:Extensions in Wikimedia version control/pl Category:Extensions included in BlueSpice/pl Category:Extensions included in Canasta/pl Category:Extensions included in Miraheze/pl Category:Extensions included in Open CSP/pl Category:Extensions included in WikiForge/pl Category:Extensions included in semantic::core/pl Category:Extensions with manual MediaWiki version/pl Category:GPL licensed extensions/pl Category:ParserFirstCallInit extensions/pl Category:Parser function extensions/pl Category:Stable extensions/pl