Difference between revisions of "Template:FA number/doc"

From blackwiki
Jump to navigation Jump to search
imported>MerlIwBot
m (Robot: Removing ca:Plantilla:QUALITATARTICLES (strong connection between (2) en:Template:FA number and ca:Plantilla:NAD))
imported>WOSlinker
m (change source to syntaxhighlight)
 
(3 intermediate revisions by 3 users not shown)
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 due to chronic server issues it is in general more accurate than <tt><nowiki>{{PAGESINCATEGORY: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 <code><nowiki>{{PAGESINCATEGORY:Featured articles}}</nowiki></code>.
  
 
=== Usage ===
 
=== Usage ===
* <tt><nowiki>{{FA number}}</nowiki></tt> = {{FA number}}
+
* <code><nowiki>{{FA number}}</nowiki></code> = {{FA number}}
  
 
=== Method for verifying accuracy ===
 
=== 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
 
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>
+
<syntaxhighlight lang="JavaScript">javascript:alert(document.getElementsByTagName("cm").length)</syntaxhighlight>
  
 
into your browser's [[address bar]], and press enter.
 
into your browser's [[address bar]], and press enter.
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia featured content templates]]
+
[[Category:Wikipedia featured content templates|Article]]
 
+
}}</includeonly>
[[ar:قالب:عدد المقالات المختارة]]
 
[[de:Vorlage:EA-Anzahl]]
 
[[es:Plantilla:DESTACADOS]]
 
[[eo:Ŝablono:Nombro da elstaraj artikoloj]]
 
[[fr:Modèle:Nombre d'articles de qualité]]
 
[[it:Template:Numero voci in Vetrina]]
 
[[pt:Predefinição:Número de artigos destacados]]
 
[[ru:Шаблон:Счётчик ИС]]
 
[[sv:Mall:Antal utmärkta artiklar]]
 
[[uk:Шаблон:FA number]]
 
[[vi:Bản mẫu:FA number]]
 
</includeonly>
 

Latest revision as of 12:58, 7 July 2020

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 {{PAGESINCATEGORY:Featured articles}}.

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.