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

Template:SEIWA Stats

From Square Enix Wiki, the Fan-wiki for all things Square Enix
Revision as of 00:23, 30 June 2012 by Tacopill (talk | contribs)
Jump to navigationJump to search

{{#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://seiwanetwork.org/wiki/api.php?action=query&format=xml&meta=siteinfo&siprop=statistics |format=XML |data= sew_pages=pages, sew_articles=articles, sew_views=views, sew_edits=edits, sew_images=images, sew_users=users, sew_activeusers=activeusers, sew_admins=admins, sew_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}}
  • 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)