Extension:UrlGetParameters
![]() リリースの状態: 安定 |
|
---|---|
実装 | パーサー関数 |
説明 | Provides a parser function {{#urlget:...}} which allows access to the URL parameters in your page. |
作者 | S.O.E. Ansems |
最新バージョン | 1.6.0 (2021-04-16) |
MediaWiki | 1.35+ |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
|
|
Quarterly downloads | 24 (Ranked 149th) |
translatewiki.net で翻訳を利用できる場合は、UrlGetParameters 拡張機能の翻訳にご協力ください | |
Vagrant role | urlgetparameters |
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.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のUrlGetParameters
という名前のディレクトリ内に配置します。 - 以下のコードを
LocalSettings.php
の末尾に追加します:wfLoadExtension( 'UrlGetParameters' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
使用法
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]}}
作者
This extension was written by S.O.E. Ansems. Important contributions were made by Ankit Garg and some anonymous editors.
![]() | この拡張機能は以下のパッケージ/ウィキファームに含まれています: 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. |
- Stable extensions/ja
- Parser function extensions/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- ParserFirstCallInit extensions/ja
- All extensions/ja
- Extensions included in BlueSpice/ja
- Extensions included in Canasta/ja
- Extensions included in Miraheze/ja
- Extensions included in Open CSP/ja
- Extensions included in semantic::core/ja