API talk:Meta

Latest comment: 7 years ago by Xoristzatziki in topic babel

Stupid example

edit

Example of userinfo query is stupid, because it doesn't show the output, for example, of information about block status, if you aren't blocked -_-. KPu3uC B Poccuu 14:43, 8 January 2012 (UTC)Reply

I don't see the problem here. The example for the example for the userinfo meta query doesn't request the blockinfo property so it obviously is never shown. Also note that even if you request uiprop=blockinfo, the response will only contain such property if the user in question actually is blocked. Krinkle 22:44, 19 January 2012 (UTC)Reply
What I asked is just put here examples of all possible options for users which haven't access to sysop tools to figure it out themselves. KPu3uC B Poccuu (talk) 12:15, 21 February 2012 (UTC)Reply
Block status is not private information. It's openly visibly to anyone, not just to users who have access to sysop tools. For example commons:User:Shake Away is blocked. and this information can be seen in many places:
Special:Contributions/(username),
Special:Log/block?page=User:(username),
api.php list=users&ususers=(username).
And, if you're logged in as a blocked user, also on api.php?action=query&meta=userinfo&uiprop=blockinfo. Krinkle (talk) 12:35, 21 February 2012 (UTC)Reply

Function hooks and magic words

edit

I don't understand the results of siprop=functionhooks|magicwords at all. Why is ifeq e.g. both a functionhook and a magicword? And why is stuff with different syntax lumped together in both categories? How am I supposed to know from the list that it's {{#sub:...}} - with a hashmark and a colon - but {{namespace}} - without either? Etc. etc. These lists seem so arbitrary and pointless! Or are there some unmentioned rules behind all of this randomness?

I'm writing a syntaxhighlighter for wikitext in JavaScript and I was hoping I could use these two lists to identify functionhooks and magicwords as such... maybe even highlight syntax errors... -- Pecoes (talk) 09:29, 25 January 2013 (UTC)Reply

I agree. These lists are next to useless (functionhooks as well). — Keφr 10:27, 24 December 2014 (UTC)Reply

babel

edit

You're confusing MediaWiki and Wikimedia. Babel is an extension, which has nothing to do with this page which documents the MediaWiki Meta API. See https://phabricator.wikimedia.org/T160580 and https://phabricator.wikimedia.org/T160580 for WMF related deployment for the Babel API .13:49, 15 July 2017 (UTC)

Return to "Meta" page.