Расширение:MyVariables
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
![]() Статус релиза: стабильно |
|
---|---|
Реализация | Переменная |
Описание | Добавляет новые встроенные переменные |
Автор(ы) | |
Поддерживающий(ие) | WikiTeq team |
Последняя версия | 4.3 (2021-09-23) |
Политика совместимости | В расширении есть соответствуюшая ветвь для каждого релиза MediaWiki, который является релизом долгосрочной поддержки (Long Term Support release). |
MediaWiki | 1.31-1.35, 1.39 |
Изменения в БД | Нет |
Лицензия | GNU General Public License 2.0 или позднее |
Скачать | |
Ежеквартальные загрузки | 42 (Ranked 118th) |
Переведите расширение MyVariables, если оно доступно на translatewiki.net | |
Проблемы | Открытые задачи · Сообщить об ошибке |
Расширение MyVariables добавляет новые встроенные переменные:
Переменная | Описание | Пример |
---|---|---|
{{CURRENTUSER}}
|
Имя текущего пользователя или IP-адрес для анонимных пользователей | "Pastakhov" or "x.x.x.x" |
{{CURRENTLOGGEDUSER}}
|
Имя текущего пользователя или пустая строка для анонимных пользователей | "Pastakhov" or "" |
{{CURRENTUSERREALNAME}}
|
Настоящее имя текущего пользователя | "Pavel Astakhov" |
{{HITCOUNTER}}
|
Number of visits (hits) to the current page according to Расширение:HitCounters or empty if the extension isn't installed. | "123" or "" |
{{LOGO}}
|
Путь к логотипу вики | "/w/skins/common/images/wiki.png" |
{{UUID}}
|
Случайный (v4) UUID | "65ba1a51-c723-4b9d-b1f3-13148d628322" |
{{USERLANGUAGECODE}}
|
Язык, который пользователь указал в настройках | "en", "en-ca", "ru", и др. |
{{USERREGISTRATION}}
|
Timestamp of the date at which the user registered or empty if the page isn't a user page. | "20100809003006" or "" |
{{FIRSTREVISIONID}}
|
ID of the first revision of the current page or empty if page isn't yet created. | "1" or "" |
{{FIRSTREVISIONTIMESTAMP}}
|
Timestamp of the first revision of the current page or empty if page isn't yet created. | "20100809003006" or "" |
{{FIRSTREVISIONUSER}}
|
The user name (without the User prefix) or IP address associated to the first revision of the current page or empty if page isn't yet created. | "Pastakhov", "x.x.x.x" or "" |
{{PAGEIMAGE}}
|
The main image of the current page as determined by Расширение:PageImages . If the extension is not installed or no main image was determined then {{PAGEIMAGE}} will output nothing. | "Logo.png" or "" |
{{REALNAME}}
|
When used in a user page, will output the real name of the user. However, if used like this {{REALNAME:Jimbo}} it will output the real name of the user Jimbo. This dual behavior is similar to core variables like {{PAGENAME}}. | "Pastakhov" or "" |
{{REDIRECTS}}
|
Comma-separated list of redirects to the current page or empty if there're no redirects. | "Foo, Bar, Baz" or "" |
{{SUBPAGES}}
|
The subpages of the current page, in plain text, comma-separated and in alphabetic order. If there are no any subpages, it will output nothing. | "Pastakhov/Subpage1, Pastakhov/Subpage2" or "" |
{{WHATLINKSHERE}}
|
The titles of the pages that link to the current page, comma-separated and in alphabetic order. It will be empty if there are no linked pages. | "Bar, Baz, Foo" or "" |
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
MyVariables
в вашей папкеextensions/
. - Добавьте следующий код в конце вашего файла LocalSettings.php :
wfLoadExtension( 'MyVariables' );
Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Примечание
- Это расширение не следует путать с расширением Расширение:Variables , которое позволяет использовать переменные как в программировании.
Смотрите также
- Extension:Semantic Extra Special Properties - Semantic properties for page authors, subpages and more
- Extension:IDProvider
- Extension:UserFunctions
- Extension:UserMagic
- Extension:UILangCode
- Extension:LanguageCode
![]() | Это расширение включено в следующие вики-фермы/хостинги и/или пакеты: Это не исчерпывающий список. Некоторые вики-фермы/хостинги и/или пакеты могут содержать это расширение, даже если они не перечислены здесь. Всегда сверяйтесь со своими вики-фермами/хостингами или комплектами/бандлами для подтверждения. |
Categories:
- Extensions by WikiTeq/ru
- Stable extensions/ru
- Variable extensions/ru
- GPL licensed extensions/ru
- Extensions in Wikimedia version control/ru
- GetMagicVariableIDs extensions/ru
- ParserFirstCallInit extensions/ru
- ParserGetVariableValueSwitch extensions/ru
- ParserOptionsRegister extensions/ru
- All extensions/ru
- Extensions included in Canasta/ru
- Extensions included in Miraheze/ru
- Extensions included in MyWikis/ru
- Extensions included in Open CSP/ru
- Extensions included in ProWiki/ru
- Extensions included in wiki.gg/ru
- Extensions included in WikiForge/ru
- Extensions included in WikiTide/ru