Extension:WikiCategoryTagCloud
From Linux Web Expert
WikiCategoryTagCloud Release status: stable |
|
---|---|
Implementation | Tag , Skin |
Description | Allows users to add tag clouds based on categories to a page via the <tagcloud> tag |
Author(s) | |
Latest version | 1.3.3 (2017-09-19) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.39+ |
PHP | 5.5+ |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
<tagcloud> |
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the WikiCategoryTagCloud extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The WikiCategoryTagCloud extension allows users to add tag clouds based on categories to a page.
Usage
These in text parameters from the original extension still work the same:
- 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>
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/WikiCategoryTagCloud</tvar>|Download]] and move the extracted <tvar name=name>
WikiCategoryTagCloud
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiCategoryTagCloud - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'WikiCategoryTagCloud' );
- Optional: Add the pages to invalidate the cache for to
MediaWiki:Tagcloudpages
(one title per line). - File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
File:Wiki-Tools.svg | <translate> This extension was migrated from Daniel Friesen's Wiki-Tools.com and checked into Wikimedia's software repository.</translate> |
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Extensions without an image
- Tag extensions
- Skin extensions
- Extensions with release branches compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- PageContentSave extensions
- All extensions
- Extensions migrated from Wiki-Tools
- Category extensions
- Page content extensions
- Tag cloud extensions