Difference between revisions of "Reference:BlueSpiceCountThings"
(Tag: 2017 source edit) |
Contents
Extension: BlueSpiceCountThings
Overview | |||
---|---|---|---|
Description: | Provides content based statistics | ||
State: | stable | Dependency: | BlueSpice |
Developer: | HalloWelt | License: |
GPL-3.0-onlyProperty "BSExtensionInfoLicense" (as page type) with input value "</br>GPL-3.0-only" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. |
Type: | BlueSpice | Category: | Infrastructure |
Edition: | BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud | ||
Features
CountThings provides a set of tags for counting various metadata in the wiki.
This information
is displayed on the page as text or in
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 ca see the infobox as a result.
Usage / Features[edit | edit source]Introduces three tags:a configurable table, depending on the chosen mode.
Tags made available by this extensions are:
- countarticles: displays the total number of articles on the wiki
- countusers: displays the total number of users registered on the wiki
- countfiles: displays the total number of files uploaded to the wiki
-
countcharacters - available in multiple modes:
- Chars: number of characters on the current page (based on the wiki code, including spaces)
- Words: number of words on the current page
- Pages: number of pages the current article would have if printed/exported
-
- All: default mode – shows all the information above
-
- in a table
Technical Information[edit
These metadata can be counted:
Number of all pages in a system[edit | edit source]
This number is based on the database table page
. Attention, this number is different to the one you will get with Special:Statistics
because there additional criteria are used.
<bs:countarticles />
Number of characters, words and pages (2000 characters = 1 Seite) of an article[edit | edit source]
If you want to show all information (characters, words and pages) of an article, please use this code:
<bs:countcharacters>ARTIKELNAME</bs:countcharacters>
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 information.
The mode is defined with "mode":
<bs:countcharacters mode="chars">Name of the article</bs:countcharacters>===Number of users in a system (users who are signed-in)===
<bs:countusers />
The code has to be integrated directly into the article.
Example: text metadata for this article[edit | edit source]
The tag <bs:countcharacters mode="all">Count_Things</bs:countcharacters>
gives you the following output:
Count Things | |
---|---|
Characters | 0 |
Words | 1 |
Pages | 0 |
<bs:countcharacters mode="all">BlueSpice_free_Extensions</bs:countcharacters>
BlueSpice free Extensions | |
---|---|
Characters | 0 |
Words | 1 |
Pages | 0 |
This information applies to BlueSpice 3 . Technical details for BlueSpice cloud can differ in some cases.
__TOC__ '''CountThings''' introduces{{BSExtensionInfo |desc=Provides content based statistics. |status=stable |developer=HalloWelt |type=BlueSpice |edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |compatible=BlueSpice |category=Infrastructure |license=GPL v3 only |features='''CountThings''' provides a set of tags that allow for counting various metadata in the wiki. TheseThis information will be is displayed on page in the configurable table. ==Where do I 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 ca see the infobox as a result. ==Usage / Features== * Introduces three tags: ** <nowiki><bs:countusers /></nowiki> - shows number of users currently logged in the wiki. **<nowiki> <bs:countarticles /> </nowiki>- shows number of pages currently existing on the wiki. ** <nowiki><bs:countcharacters>ARTICLENAME</bs:countcharacters></nowiki> - shows information on the particular article. It can show different information depending on the mode: *** chars – number of characters on the page *** words – page as text or in a configurable table, depending on the chosen mode. Tags made available by this extensions are: *countarticles: displays the total number of articles on the wiki *countusers: displays the total number of users registered on the wiki *countfiles: displays the total number of files uploaded to the wiki *countcharacters - available in multiple modes: **Chars: number of characters on the current page (based on the wiki code, including spaces) **Words: number of words on the current page *** pages – Pages: number of pages this the current article would have if printed/exported *** all – All: default mode – shows all the information above. ==Functions of CountThings== These metadata can be counted: ===Number of all pages in a system=== This number is based on the database table <code>page</code>. Attention, this number is different to the one you will get with <code>Special:Statistics</code> because there additional criteria are used. <nowiki><bs:countarticles /></nowiki> ===Number of characters, words and pages (2000 characters = 1 Seite) of an article=== If you want to show all information (characters, words and pages) of an article, please use this code: <nowiki><bs:countcharacters>ARTIKELNAME</bs:countcharacters></nowiki> If you just want to show part of the information, please choose between these different modes: :* <tt>chars</tt>: Only number of characters. :* <tt>words</tt>: Only number of words. :* <tt>pages</tt>: Only number of pages. :* <tt>all</tt> (Standard): All information. The mode is defined with "mode": <nowiki><bs:countcharacters mode="chars">Name of the article</bs:countcharacters></nowiki>===Number of users in a system (users who are signed-in)=== <nowiki><bs:countusers /></nowiki> The code has to be integrated directly into the article. ===Example: text metadata for this article=== The tag <code><nowiki><bs:countcharacters mode="all">Count_Things</bs:countcharacters></nowiki></code> gives you the following output:<br/> <bs:countcharacters mode="all">Count_Things</bs:countcharacters> If you want to display the content meta data of the article "BlueSpice_free_Extensions", use this tag:<br/> <code><nowiki><bs:countcharacters mode="all">BlueSpice_free_Extensions</bs:countcharacters></nowiki></code> <bs:countcharacters mode="all">BlueSpice_free_Extensions</bs:countcharacters> {{Box_Links-en | Thema1 =[[SmartList|Display information about the Wiki with SmartList]] | Thema2 =[[MagicWords|Magic Words]] | Thema3 =[[WhoIsOnline|Show all logged-in users]]}} [[en:{{FULLPAGENAME}}]][[de:Count Things]] in a table }}
(61 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{BSExtensionInfo | |
+ | |desc=Provides content based statistics. | ||
+ | |status=stable | ||
+ | |developer=HalloWelt | ||
+ | |type=BlueSpice | ||
+ | |edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud | ||
+ | |compatible=BlueSpice | ||
+ | |category=Infrastructure | ||
+ | |license=GPL v3 only | ||
+ | |features='''CountThings''' provides a set of tags for counting various metadata in the wiki. This information is displayed on the page as text or in a configurable table, depending on the chosen mode. | ||
+ | Tags made available by this extensions are: | ||
− | + | *countarticles: displays the total number of articles on the wiki | |
− | + | *countusers: displays the total number of users registered on the wiki | |
− | + | *countfiles: displays the total number of files uploaded to the wiki | |
− | + | *countcharacters - available in multiple modes: | |
− | + | **Chars: number of characters on the current page (based on the wiki code, including spaces) | |
− | + | **Words: number of words on the current page | |
− | + | **Pages: number of pages the current article would have if printed/exported | |
− | + | **All: default mode – shows all the information above in a table | |
− | * | + | }} |
− | |||
− | * | ||
− | * | ||
− | ** | ||
− | ** | ||
− | ** | ||
− | ** | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |