Laajennus:WikiCategoryTagCloud
![]() Julkaisustatus: vakaa |
|
---|---|
Toteutus | Tägi , Ulkoasu |
Kuvaus | Allows to add tag clouds based on categories to a page via the <tagcloud> tag |
Tekijä(t) | |
Viimeisin versio | 1.3.3 (2017-09-19) |
Yhteensopivuuskäytäntö | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.39+ |
PHP | 5.5+ |
Tietokantamuutokset | Ei |
Lisenssi | GNU General Public License 2.0 tai myöhempi |
Lataa | |
<tagcloud> |
|
Quarterly downloads | 35 (Ranked 141st) |
Public wikis using | 1,274 (Ranked 216th) |
Voit kääntää WikiCategoryTagCloud-laajennuksen mikäli se on saatavilla translatewiki.netissä | |
Ongelmat | Avoimet tehtävät · Raportoi ongelmasta |
The WikiCategoryTagCloud extension allows to add tag clouds based on categories to a page.
Käyttö
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>
Asennus=
- Download and place the file(s) in a directory called
WikiCategoryTagCloud
in yourextensions/
folder. - Add the following code at the bottom of your
LocalSettings.php
:wfLoadExtension( 'WikiCategoryTagCloud' );
- Optional: Add the pages to invalidate the cache for to
MediaWiki:Tagcloudpages
(one title per line). Tehty – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.26 or earlier:
The instructions above describe the new way of installing this extension using wfLoadExtension()
.
If you need to install this extension on these earlier versions (MediaWiki 1.26 and earlier), instead of wfLoadExtension( 'WikiCategoryTagCloud' );
, you need to use:
require_once "$IP/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php";
![]() | This extension was migrated from Daniel Friesen's Wiki-Tools.com and checked into Wikimedia's software repository. |
![]() | This extension is included in the following packages and/or wiki farms: 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/fi
- Tag extensions/fi
- Skin extensions/fi
- GPL licensed extensions/fi
- Extensions in Wikimedia version control/fi
- ParserFirstCallInit extensions/fi
- PageContentSave extensions/fi
- All extensions/fi
- Extensions migrated from Wiki-Tools/fi
- Extensions included in Miraheze/fi
- Extensions included in WikiForge/fi
- Category extensions/fi
- Page content extensions/fi
- Tag cloud extensions/fi