Extension:MyVariables
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases. |
![]() リリースの状態: 安定 |
|
---|---|
実装 | 変数 |
説明 | Adds new built-in variables |
作者 | |
メンテナー | WikiTeq team |
最新バージョン | 4.3 (2021-09-23) |
互換性の方針 | 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。 |
MediaWiki | 1.31-1.35, 1.39 |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
Quarterly downloads | 51 (Ranked 125th) |
Public wikis using | 244 (Ranked 386th) |
translatewiki.net で翻訳を利用できる場合は、MyVariables 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
The MyVariables extension adds new built-in variables:
変数 | 説明 | サンプル |
---|---|---|
{{CURRENTUSER}}
|
現在の利用者ログイン名または匿名利用者の IP アドレス | "Pastakhov" または "x.x.x.x" |
{{CURRENTLOGGEDUSER}}
|
現在の利用者のログイン名、または匿名利用者の場合は空の文字列 | "Pastakhov" または "" |
{{CURRENTUSERREALNAME}}
|
Real name of current user. | "Pavel Astakhov" |
{{HITCOUNTER}}
|
Number of visits (hits) to the current page according to Extension:HitCounters or empty if the extension isn't installed. | "123" または "" |
{{LOGO}}
|
ウィキ ロゴのパス | "/w/skins/common/images/wiki.png" |
{{UUID}}
|
Random (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" または "" |
{{FIRSTREVISIONID}}
|
ID of the first revision of the current page or empty if page isn't yet created. | "1" または "" |
{{FIRSTREVISIONTIMESTAMP}}
|
Timestamp of the first revision of the current page or empty if page isn't yet created. | "20100809003006" または "" |
{{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" または "" |
{{PAGEIMAGE}}
|
The main image of the current page as determined by Extension:PageImages . If the extension is not installed or no main image was determined then {{PAGEIMAGE}} will output nothing. | "Logo.png" または "" |
{{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" または "" |
{{REDIRECTS}}
|
Comma-separated list of redirects to the current page or empty if there're no redirects. | "Foo, Bar, Baz" または "" |
{{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 any linked pages. | "Bar, Baz, Foo" または "" |
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のMyVariables
という名前のディレクトリ内に配置します。 - 以下のコードを
LocalSettings.php
の末尾に追加します:wfLoadExtension( 'MyVariables' );
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
注記
- This extension should not be confused with the Variables extension, which allows the use of variables in the computer programming sense.
関連項目
- Extension:Semantic Extra Special Properties - Semantic properties for page authors, subpages and more
- Extension:IDProvider
- Extension:UserFunctions
- Extension:UserMagic
- Extension:UILangCode
- Extension:LanguageCode
この拡張機能は、WikiTeq チームによって専門的に保守されています。
この拡張機能は以下のパッケージ/ウィキファームに含まれています: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |