Welcome to Square Enix Wiki! Be sure to check out our To-Do List to see what work we need done!

Difference between revisions of "Template:SEIWA Stats"

From Square Enix Wiki, the Fan-wiki for all things Square Enix
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!--Taking this out, since the extension isn't installed.
{{#get_web_data:
{{#get_web_data:
|url=http://www.chronowiki.org/w/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics
|url=http://www.chronowiki.org/w/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics
Line 26: Line 27:
dqwiki_jobs=jobs
dqwiki_jobs=jobs
}}{{#get_web_data:
}}{{#get_web_data:
|url=http://www.khwiki.net/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics
|url=http://www.khwiki.com/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics
|format=XML
|format=XML
|data=
|data=
Line 65: Line 66:
strategywiki_admins=admins,
strategywiki_admins=admins,
strategywiki_jobs=jobs
strategywiki_jobs=jobs
}}<noinclude>
}}
--><noinclude>
TEST:
TEST:
*chronowiki: '''{{#external_value:chronowiki_users}}'''
*chronowiki: '''{{#external_value:chronowiki_users}}'''

Latest revision as of 21:32, 22 September 2019

TEST:

  • chronowiki: {{#external_value:chronowiki_users}}
  • dqwiki: {{#external_value:dqwiki_users}}
  • khwiki: {{#external_value:khwiki_users}}
  • sew: {{#external_value:sew_users}}
  • strategywiki: {{#external_value:strategywiki_users}}


Usage

Include this template in the page using {{SEIWA Statistics}}
Call data using {{#external_value:wikiname_data}}

For example: {{#external_value:sew_articles}} returns the following number: {{#external_value:sew_articles}} (which is the article count at SE-Wiki)

wikiname

  • khwiki
  • chronowiki
  • dqwiki
  • sew
  • strategywiki

data

  • pages (Pages)
  • articles (Content pages)
  • views (Views total)
  • edits (Page edits)
  • images (Uploaded files)
  • users (Registered users)
  • activeusers (Active users)
  • admins (Administrators)
  • jobs (Job queue length)

(See http://www.mediawiki.org/wiki/API:Query_-_Meta#Parameters for more info)