Extension:MyVariables/pl
Jump to navigation
Jump to search
MyVariables Status wydania: stabilne |
|
---|---|
Realizacja | Zmienna |
Opis | Adds new built-in variables |
Autor(zy) | |
Ostatnia wersja | 3.5.1 (2019-05-04) |
MediaWiki | 1.29+ |
PHP | 5.6+ |
Zmiany w bazie danych | Nie |
Licencja | GNU General Public License 2.0 or later |
Pobieranie | |
Przetłumacz rozszerzenie MyVariables jeżeli jest dostępne na translatewiki.net | |
The MyVariables extension adds new built-in variables:
Variable | Opis | Sample |
---|---|---|
{{CURRENTUSER}} | Login of current user or the IP for anonymous users | "Pastakhov" or "x.x.x.x" |
{{CURRENTLOGGEDUSER}} | Login of current user or empty for anonymous users | "Pastakhov" lub "" |
{{CURRENTUSERREALNAME}} | Real name of current user | "Pavel Astakhov" |
{{LOGO}} | Path to wiki logo | "/w/skins/common/images/wiki.png" |
{{UUID}} | Random (v4) UUID | "65ba1a51-c723-4b9d-b1f3-13148d628322" |
{{USERLANGUAGECODE}} | Language that the user specified in the preferences | "en", "en-ca", "ru" itd. |
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
MyVariables
w swoim kataloguextensions/
. - Dodaj poniższy kod na dole swojego pliku LocalSettings.php:
wfLoadExtension( 'MyVariables' );
Zrobione – Przejdź do Special:Version na swojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Do użytkowników mających wersję MediaWiki 1.31 lub wcześniejszą:
Powyższe instrukcje opisują nowy sposób instalowania tego rozszerzenia, poprzez wfLoadExtension()
.
Jeżeli chcesz zainstalować to rozszerzenie we wcześniejszych wersjach (MediaWiki 1.31 i wcześniejsze), zamiast wfLoadExtension( 'MyVariables' );
użyj:
require_once "$IP/extensions/MyVariables/MyVariables.php";
Note
- This extension should not be confused with the Variables extension, which allows the use of variables in the computer programming sense.