Extension:MyVariables/ja
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.
![]() リリースの状態: 安定Category:Stable extensions/ja |
|
---|---|
実装 | 変数Category:Variable extensions/ja |
説明 | Adds new built-in variables |
作者 | |
メンテナー | WikiTeq team |
最新バージョン | 4.3 (2021-09-23) |
互換性の方針 | 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。 |
MediaWiki | 1.31-1.35, 1.39Category:Extensions with manual MediaWiki version |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | Category:Extensions in Wikimedia version control/ja |
四半期ごとのダウンロード数 | 16 (Ranked 85th) |
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 linked pages. | "Bar, Baz, Foo" または "" |
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のMyVariables
という名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/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:Persistent Page Identifiers - Provides stable, unique identifiers for pages
- Extension:IDProvider
- Extension:UserFunctions
- Extension:UILangCode
- Extension:PageMagic
![]() | この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています:
|
Category:All extensions/ja
Category:Extensions by WikiTeq/ja
Category:Extensions in Wikimedia version control/ja
Category:Extensions included in Canasta/ja
Category:Extensions included in Miraheze/ja
Category:Extensions included in MyWikis/ja
Category:Extensions included in Open CSP/ja
Category:Extensions included in ProWiki/ja
Category:Extensions included in WikiForge/ja
Category:Extensions included in wiki.gg/ja
Category:Extensions with manual MediaWiki version
Category:GPL licensed extensions/ja
Category:GetMagicVariableIDs extensions/ja
Category:ParserFirstCallInit extensions/ja
Category:ParserGetVariableValueSwitch extensions/ja
Category:ParserOptionsRegister extensions/ja
Category:Stable extensions/ja
Category:Variable extensions/ja