මාධ්‍යවිකි API උදවු

මෙය ස්වයං-ජනිත මාධ්‍යවිකි API ප්‍රලේඛන පිටුවකි.

ප්‍රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API

meta=userinfo (ui)

(main | query | userinfo)
  • මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්‍ය වේ.
  • Source: MediaWiki
  • License: GPL-2.0+

Get information about the current user.

පරාමිතීන්:
uiprop

Which pieces of information to include:

blockinfo
Tags if the current user is blocked, by whom, and for what reason.
hasmsg
Adds a tag messages if the current user has pending messages.
groups
Lists all the groups the current user belongs to.
implicitgroups
Lists all the groups the current user is automatically a member of.
rights
Lists all the rights the current user has.
changeablegroups
Lists the groups the current user can add to and remove from.
options
Lists all preferences the current user has set.
preferencestoken
Deprecated. Get a token to change current user's preferences.
editcount
Adds the current user's edit count.
ratelimits
Lists all rate limits applying to the current user.
email
Adds the user's email address and email authentication date.
realname
Adds the user's real name.
acceptlang
Echoes the Accept-Language header sent by the client in a structured format.
registrationdate
Adds the user's registration date.
unreadcount
Adds the count of unread pages on the user's watchlist (maximum 999; returns 1000+ if more).
centralids
Adds the central IDs and attachment status for the user.
වටිනාකම් ("|" සමග වෙන් කරන්න): blockinfo, hasmsg, groups, implicitgroups, rights, changeablegroups, options, preferencestoken, editcount, ratelimits, email, realname, acceptlang, registrationdate, unreadcount, centralids
uiattachedwiki

With uiprop=centralids, indicate whether the user is attached with the wiki identified by this ID.

උදාහරණ:
Get information about the current user.
api.php?action=query&meta=userinfo [open in sandbox]
Get additional information about the current user.
api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg [open in sandbox]
"http://encyclopedia.gov.lk/si_encyclopedia/index.php/විශේෂ:ApiHelp" වෙතින් සම්ප්‍රවේශනය කෙරිණි