Πρότυπο:NUMBEROF/τεκμηρίωση: Διαφορά μεταξύ των αναθεωρήσεων

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
Χωρίς σύνοψη επεξεργασίας
GreenC (συζήτηση | συνεισφορές)
Χωρίς σύνοψη επεξεργασίας
Γραμμή 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
{{lua|Module:NUMBEROF}}
Full Documentation at [[:en:Template:NUMBEROF]].
 
First parameter: <code><nowiki>articles</nowiki></code>, <code><nowiki>pages</nowiki></code>, <code><nowiki>edits</nowiki></code>, <code><nowiki>users</nowiki></code>, <code><nowiki>activeusers</nowiki></code>, <code><nowiki>admins</nowiki></code> or <code><nowiki>files</nowiki></code>
Template used to show the variables NUMBEROFARTICLES, NUMBEROFPAGES, NUMBEROFEDITS, NUMBEROFUSERS, NUMBEROFACTIVEUSERS, NUMBEROFADMINS and NUMBEROFFILES of other Wikipedias.
 
=== UsageExamples ===
Example, toTo show the number of articles of the [[French Wikipedia]] in format ''raw'':
It is used by 3 parameters, the third one is optional .
* <code><nowiki>{{NUMBEROF|ARTICLESarticles|fr}}</nowiki></code> → {{NUMBEROF|ARTICLESarticles|fr}}
* '''First parameter (variable):''' ARTICLES, PAGES, EDITS, USERS, ACTIVEUSERS, ADMINS or FILES.
To show the number of pages on be-tarask in format raw:
* '''Second parameter (lang):''' es, en, de, fr...
* <code><nowiki>{{NUMBEROF|pages|be-tarask}}</nowiki></code> → {{NUMBEROF|pages|be-tarask}}
* Third parameter (format): using N, it prints the number grouped in three numbers, without it it is shown in ''raw format'', it permits to make mathematical operations with parserFunctions.
To show the number of pages on be-tarask:
* <code><nowiki>{{NUMBEROF|pages|be-tarask|N}}</nowiki></code> → {{NUMBEROF|pages|be-tarask|N}}
 
Example, to show the number of articles of the [[French Wikipedia]] in format ''raw'':
<code><nowiki>{{NUMBEROF|ARTICLES|fr}}</nowiki></code> → {{NUMBEROF|ARTICLES|fr}}
 
Also, the template includes the parameter "total", it shows the total of the given value: <code><nowiki>{{NUMBEROF|ADMINS|total|N}}</nowiki></code> → {{NUMBEROF|ADMINS|total|N}}
 
The template is updated by a pywikipedia bot using this [[w:es:Usuario:Bigsus-bot/Variables.py|script]].
 
<includeonly>