BlueSpiceCountThings
-
- Last edited 6 years ago by Lsireta
-
-
- This page is a draft but has an approved version
Contents
What is CountThings?
CountThings 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.
Where to find CountThings?
You only see the function when you or another author integrated the special tag into an article. Everybody with writing permissions can use the tag, everyone with reading permissions can see the infobox as a result.
"Edit" and "Insert magic word or tag":
You can choose what you want count on your Page / Article:
countusers - shows number of users currently logged in the wiki.
countarticles - shows number of pages currently existing on the wiki.
countcharacters - shows information on the particular article. It can show different information depending on the mode:
- Chars – number of characters on the page.
- Words – number of words on the page.
- Pages – number of pages this article would have if printed/exported.
- All – default mode – shows all the information above.
For Example we will count characters:
You will get wiki code: "<bs:countcharacters>ARTICLENAME</bs:countcharacters>"
Instead ARTICLENAME you must type Name of your Article.
In this case name of my Article is: TestPage.
So, wiki code will look like this: "<bs:countcharacters>TestPage</bs:countcharacters>"
Save and you should get:
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" Atribute:
<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.