Difference between revisions of "Template:FA number/doc"
Jump to navigation
Jump to search
imported>Remember the dot (←Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template returns the number of featured articles as recorde…') |
imported>Remember the dot m (clarify that server problems are at fault for the discrepancy, and added instructions for using the API for verification) |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| − | This template returns the number of featured articles as recorded at [[Wikipedia:Featured articles]]. The count at [[Wikipedia:Featured articles]] is scrupulously updated and is in general more accurate than <tt><nowiki>{{PAGESINCAT:Featured articles}}</nowiki></tt>. | + | This template returns the number of featured articles as recorded at [[Wikipedia:Featured articles]]. The count at [[Wikipedia:Featured articles]] is scrupulously updated and due to chronic server issues it is in general more accurate than <tt><nowiki>{{PAGESINCAT:Featured articles}}</nowiki></tt>. Furthermore, the number is periodically |
=== Usage === | === Usage === | ||
* <tt><nowiki>{{FA number}}</nowiki></tt> = {{FA number}} | * <tt><nowiki>{{FA number}}</nowiki></tt> = {{FA number}} | ||
| + | |||
| + | === Method for verifying accuracy === | ||
| + | Logged-in users can use the [[mw:API|MediaWiki API]] to verify the featured article count. Go to [{{SERVER}}{{SCRIPTPATH}}/api.php?action=query&format=xml&list=categorymembers&cmtitle=Category:Featured_articles&cmlimit=5000], type | ||
| + | |||
| + | <source lang="JavaScript">javascript:alert(document.getElementsByTagName("cm").length)</source> | ||
| + | |||
| + | into your browser's [[address bar]], and press enter. | ||
<includeonly> | <includeonly> | ||
Revision as of 22:43, 23 March 2009
| This is a documentation subpage for Template:FA number. It contains usage information, categories and other content that is not part of the original template page. |
This template returns the number of featured articles as recorded at Wikipedia:Featured articles. The count at Wikipedia:Featured articles is scrupulously updated and due to chronic server issues it is in general more accurate than {{PAGESINCAT:Featured articles}}. Furthermore, the number is periodically
Usage
- {{FA number}} = {{Wikipedia:Featured articles}}
Method for verifying accuracy
Logged-in users can use the MediaWiki API to verify the featured article count. Go to [1], type
javascript:alert(document.getElementsByTagName("cm").length)
into your browser's address bar, and press enter.