Extension:ContainerFilter/ja
Appearance
リリースの状態: 安定 |
|
|---|---|
| 説明 | Allows to filter content elements within a page |
| 作者 | Hallo Welt! GmbH |
| 最新バージョン | 3.0.0-alpha |
| 互換性の方針 | 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。 |
| MediaWiki | 1.39+ |
| ライセンス | GNU 一般公衆利用許諾書 3.0 のみ |
| ダウンロード | |
| translatewiki.net で翻訳を利用できる場合は、ContainerFilter 拡張機能の翻訳にご協力ください | |
The ContainerFilter extension allows filtering content elements within a page.
You can now mark sections of a page for filtering and display a filter just for the content located within these sections of the page.
-
Example: MediaWiki table filter
-
Example: MediaWiki table filter output
-
Example: List filter and output List filter
インストール
- ダウンロードして、ファイルを
extensions/フォルダー内のContainerFilterという名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContainerFilter
- 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'ContainerFilter' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
使用法
General
For use with a table, you must use class=wikitable.
Other class definitions are possible:
<containerfilter />
{| class="wikitable sortable"
! Item !! Type
|-
| Apple || Fruit
|-
| Potato || Vegetable
|-
| Pear || Fruit
|-
| Pumpkin || Vegetable
|-
| Raspberry || Fruit
|-
| Spinach || Vegetable
|}
With Semantic MediaWiki
When using Semantic MediaWiki, you can use ContainerFilter with the following syntax:
{{#ask:
[[Category:Cities]]
|format=ul
|class=filterexample
|intro=<containerfilter selector=".filterexample li">
|outro=</containerfilter>
}}
外部リンク
- Extension reference: ContainerFilter
| この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの拡張機能を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |
