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"
(imported and extensively modified from http://niwanetwork.org/wiki/index.php?title=Template:NIWA_Statistics&oldid=14095) |
(→Usage) |
||
Line 70: | Line 70: | ||
* chronowiki | * chronowiki | ||
* dqwiki | * dqwiki | ||
* strategywiki | |||
'''data''' | '''data''' |
Revision as of 00:30, 8 April 2012
{{#get_web_data: |url=http://www.chronowiki.org/w/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics |format=XML |data= chronowiki_pages=pages, chronowiki_articles=articles, chronowiki_views=views, chronowiki_edits=edits, chronowiki_images=images, chronowiki_users=users, chronowiki_activeusers=activeusers, chronowiki_admins=admins, chronowiki_jobs=jobs }}{{#get_web_data: |url=http://dragon-quest.org/w/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics |format=XML |data= dqwiki_pages=pages, dqwiki_articles=articles, dqwiki_views=views, dqwiki_edits=edits, dqwiki_images=images, dqwiki_users=users, dqwiki_activeusers=activeusers, dqwiki_admins=admins, dqwiki_jobs=jobs }}{{#get_web_data: |url=http://www.khwiki.net/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics |format=XML |data= khwiki_pages=pages, khwiki_articles=articles, khwiki_views=views, khwiki_edits=edits, khwiki_images=images, khwiki_users=users, khwiki_activeusers=activeusers, khwiki_admins=admins, khwiki_jobs=jobs }}{{#get_web_data: |url=http://strategywiki.org/w/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics |format=XML |data= strategywiki_pages=pages, strategywiki_articles=articles, strategywiki_views=views, strategywiki_edits=edits, strategywiki_images=images, strategywiki_users=users, strategywiki_activeusers=activeusers, strategywiki_admins=admins, strategywiki_jobs=jobs }} TEST:
- chronowiki: {{#external_value:chronowiki_users}}
- dqwiki: {{#external_value:dqwiki_users}}
- khwiki: {{#external_value:khwiki_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:sewiki_articles}} returns the following number: {{#external_value:sewiki_articles}} (which is the article count at SE-Wiki)
wikiname
- khwiki
- chronowiki
- dqwiki
- 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)