Difference between revisions of "Template:ALL-WP-COUNT"

From the Wikimedia Foundation
Jump to: navigation, search
(as requested by m:User:Deryck Chan)
(+)
Line 1: Line 1:
 
{{#if:{{{crore|}}}|2.0|20{{#if:{{{million|}}}||{{{1|{{#if:{{{man|}}}||,}}}}}00{{#if:{{{man|}}}||0{{{1|,}}}000}}}}}}<noinclude>
 
{{#if:{{{crore|}}}|2.0|20{{#if:{{{million|}}}||{{{1|{{#if:{{{man|}}}||,}}}}}00{{#if:{{{man|}}}||0{{{1|,}}}000}}}}}}<noinclude>
   
The purpose of this template is to have an easily-reusable count of all Wikipedia articles. See this template's category for similar templates. Pass a parameter to define the thousands separator, the default is a ",".
+
The purpose of this template is to have an easily-reusable count of all Wikipedia articles. See this template's category for similar templates.
   
If you use it with the "million=true" parameter, only the number of articles in millions will be returned (e.g. "17" for 17 million articles)
+
Parameters:
  +
* First parameter: thousands separator, the default is a <code>,</code> (depending on the language of a translated page using this template, you may need to pass <code>&amp;nbsp;</code> or <code>.</code>).
  +
* Optional parameter <code>million=true</code> will divide and round down the returned value by one million.
  +
* Optional parameter <code>crore=true</code> will divide and round down the returned value by one crore.
  +
* Optional parameter <code>man=true</code> will divide and round down the returned value by one man / wan (10000).
   
 
To update this page, use [[m:List of Wikipedias#Grand Total]] or [http://s23.org/wikistats/wikipedias_wiki.php] – these contain fairly up-to-date numbers. Please be careful not to break the template ([[Special:WhatLinksHere/Template:ALL-WP-COUNT|check uses]] and revert if anything breaks).
 
To update this page, use [[m:List of Wikipedias#Grand Total]] or [http://s23.org/wikistats/wikipedias_wiki.php] – these contain fairly up-to-date numbers. Please be careful not to break the template ([[Special:WhatLinksHere/Template:ALL-WP-COUNT|check uses]] and revert if anything breaks).

Revision as of 13:30, 16 February 2012

20,000,000

The purpose of this template is to have an easily-reusable count of all Wikipedia articles. See this template's category for similar templates.

Parameters:

  • First parameter: thousands separator, the default is a , (depending on the language of a translated page using this template, you may need to pass &nbsp; or .).
  • Optional parameter million=true will divide and round down the returned value by one million.
  • Optional parameter crore=true will divide and round down the returned value by one crore.
  • Optional parameter man=true will divide and round down the returned value by one man / wan (10000).

To update this page, use m:List of Wikipedias#Grand Total or [1] – these contain fairly up-to-date numbers. Please be careful not to break the template (check uses and revert if anything breaks).