Manual:Extension/BlueSpiceCountThings: Difference between revisions

No edit summary
No edit summary
Line 25: Line 25:
<bs:countcharacters mode="Words">ARTICLENAME</bs:countcharacters>
<bs:countcharacters mode="Words">ARTICLENAME</bs:countcharacters>
</pre>
</pre>
For the "countcharacters" tag, replace ARTICLENAME with the page name for which you want to get the count values. Also, "mode" can be adjusted as needed. For details, visit the reference page.


{{Translation}}
{{Translation}}
[[Category:Editing]]
[[Category:Editing]]

Revision as of 14:24, 15 May 2026


CountThings introduces a set of tags for counting various metadata in the wiki. Available tags are: countarticles, countusers, countfiles, and countcharacters.

Usage

The tags are added as Content Droplets in visual edit mode.

Content Droplets menu filtered for "Number of"
Inserting counted information via Content Droplets


Configuring the countcharacters tag

While other tags have no configuration options, and just adding them to the page is sufficient, the tag Number of characters (countcharacters) must be configured.

After inserting this tag or clicking on an existing tag already on the page, a dialog opens.

Count characters dialog box
Count characters dialog box
Redlink page
Redlink page

Enter the name of the page for which to count characters. This name should include the namespace if the page is not in the main namespace. Next, select the mode from the dropdown menu.

While selecting the mode and page, a preview of the output is displayed above the dialog box. If the page title in the table heading shows the page name in red ("redlink"), you have misspelled the page name and the page does not exist.

Inserting tags in wikitext

If you add the tags in source code edit mode, use the following syntax.

<bs:countarticles />
<bs:countusers />
<bs:countfiles />
<bs:countcharacters mode="Words">ARTICLENAME</bs:countcharacters>



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end