No categories assigned

BlueSpiceCountThings

< Manual:Extension
Revision as of 19:59, 11 December 2018 by Lsireta (talk | contribs)

What is BlueSpiceCountThings?

BlueSpiceCountThings introduces a set of tags that allow for counting various metadata in the wiki. These information will be displayed on page in the configurable table.

Using BlueSpiceCountThings

Tags made available by this extensions are:

  • countarticles - Displays total number of articles on the wiki
  • countusers - Displays total number of users registered on the wiki
  • countfiles - Displays total number of files uploaded to the wiki
  • countcharacters - This tag can be set up in several modes:
    • Chars – number of characters on current page (based on the wiki code, including spaces)
    • Words – number of words on current page
    • Pages – number of pages current article would have if printed/exported
    • All – default mode – shows all the information above in a table

Inserting tags

In order for information from this extension to be displayed on page, an editor must add desired tags on the page.

Tags are added through InsertMagic dialog, which can be accessed by clicking on "Insert" in VisualEditor toolbar and then on "Magic word". In the resulting dialog, choose one of the four previously mentioned types of tags and click "Done".

Configuring countcharacters tag

While other tags have no configuration options, and just adding them to the page is sufficient, "countcharacters" tag must first be configured.

After inserting this tag, or clicking on existing tag already on the page, a dialog for configuration (inspector) will open. In this dialog, in the main text input field, the name of the page for which to count characters must be inserted. This name should include the namespace in case the page is not in the main namespace. Below the text input field, there is a dropdown box to select the mode (see above).

CntTngs5.jpg

Save and you should get:

CntTngs6.jpg

Number of articles on the wiki

This number is based on the database table page

<bs:countarticles />

Number of characters, words and pages (2000 characters = 1 Page) of an article

If you want to show all information (characters, words and pages) of an article, please use this code:

<bs:countcharacters>ARTICLENAME</bs:countcharacters>

ARTICLENAME  is:  Name of your page.

If you just want to show part of the information, please choose between these different modes:

  • chars: Only number of characters.
  • words: Only number of words.
  • pages: Only number of pages.
  • all (Standard): All informations.


The mode is defined with "mode" Attribute:

<bs:countcharacters mode="chars">Name of the article</bs:countcharacters><br>

Number of users in a system (users who are signed-in)

<bs:countusers />

The code has to be integrated directly into the article.

See also

Our reference page.

Attachments

Discussions