Extension:WikiCategoryTagCloud
![]() リリースの状態: 安定 |
|
---|---|
実装 | タグ , 外装 |
説明 | カテゴリに基づいたタグクラウドを<tagcloud> タグでページに追加できるようにした。 |
作者 | |
最新バージョン | 1.3.3 (2017-09-19) |
互換性の方針 | MediaWikiとともにリリースされるスナップショット。 master には後方互換性がありません。 |
MediaWiki | 1.39+ |
PHP | 5.5+ |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
<tagcloud> |
|
Quarterly downloads | 56 (Ranked 125th) |
Public wikis using | 1,410 (Ranked 218th) |
translatewiki.net で翻訳を利用できる場合は、WikiCategoryTagCloud 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
The WikiCategoryTagCloud extension allows to add tag clouds based on categories to a page.
使用法
これらのテキストパラメータは、元の拡張機能からのものですが、同じように動作します。
- min_count
- Only display a tag for a category, if the category contains at least min_count articles. Default value : 0.
- min_size
- Defines the minimum text size. (Default: 77).
- increase_factor
- Defines the factor to increase the text size by the number of articles. Default value : 100.
- exclude
- Defined the categories you do not want to be displayed. Use underscore instead of spaces in category names, use comma to separate the categories, like this:
<tagcloud>exclude=television,television_series,celebrities,food,yoga</tagcloud>
makes "television", "television series", "celebrities", "food" and "yoga" categories not to show up in the categories cloud.
The coloring in text parameters do not work anymore, instead we have XML parameters:
- class
- Adds CSS classes to the tag cloud itself (The tagcloud class is always included).
- style
- Adds CSS styles to the style parameter of the tag cloud.
- linkclass
- Adds CSS classes to the links.
- linkstyle
- Adds CSS styles to the links' style parameters.
in text parameters are place in between the two tags, and XML parameters are done inside the opening tag. Here's an example use showing where things are placed.
<tagcloud style="background: black;">
min_size=55
exclude=browse
</tagcloud>
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のWikiCategoryTagCloud
という名前のディレクトリ内に配置します。 - 以下のコードを
LocalSettings.php
の末尾に追加します:wfLoadExtension( 'WikiCategoryTagCloud' );
- Optional: Add the pages to invalidate the cache for to
MediaWiki:Tagcloudpages
(one title per line). 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
MediaWiki 1.26以前を稼働させている利用者へ:
上記の手順では、wfLoadExtension()
を使用してこの拡張機能をインストールする新しい方法を記載しています。
この拡張機能をこれらの過去のバージョン (MediaWiki 1.26以前) にインストールする必要がある場合は、wfLoadExtension( 'WikiCategoryTagCloud' );
の代わりに以下を使用する必要があります:
require_once "$IP/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php";
![]() | この拡張機能は、Daniel Friesen の Wiki-Tools.com から移行され、ウィキメディアのソフトウェア リポジトリにチェックインされました。 |
![]() | この拡張機能は以下のパッケージ/ウィキファームに含まれています: 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. |
Categories:
- Stable extensions/ja
- Tag extensions/ja
- Skin extensions/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- ParserFirstCallInit extensions/ja
- PageContentSave extensions/ja
- All extensions/ja
- Extensions migrated from Wiki-Tools/ja
- Extensions included in Miraheze/ja
- Category extensions/ja
- Page content extensions/ja
- Tag cloud extensions/ja