Difference between revisions of "Template:API"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "</translate>" to "")
m (Text replacement - "{{#translation:}}" to "")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
 
<languages />
+
 
</noinclude>{{#switch:
+
{{#switch:
 
| =
 
| =
 
{{Mbox
 
{{Mbox
Line 7: Line 7:
 
|image = [[File:API - The Noun Project.svg|30px|link=|alt=]]
 
|image = [[File:API - The Noun Project.svg|30px|link=|alt=]]
 
|style = display: block; color:#222; border:solid 1px #A8A8A8; padding: .5em 1em; margin:0.5em 0em;
 
|style = display: block; color:#222; border:solid 1px #A8A8A8; padding: .5em 1em; margin:0.5em 0em;
| text = <!--T:1--> This page is part of the [[<tvar|main>Special:MyLanguage/API:Main_page</>|MediaWiki Action API]] documentation.
+
Special:MyLanguage/API:Main_page|MediaWiki Action API]] documentation.
 
}}
 
}}
 
{{Sidebar
 
{{Sidebar
Line 14: Line 14:
 
| above =
 
| above =
  
| title = {{ll|API:Main page|<!--T:38--> MediaWiki Action API}}
+
| title = {{ll|API:Main page| MediaWiki Action API}}
 
| image =
 
| image =
 
| headingstyle = font-size: 130%; padding: .5em;
 
| headingstyle = font-size: 130%; padding: .5em;
Line 21: Line 21:
  
 
| content1 =
 
| content1 =
;<!--T:43--> Basics:
+
; Basics:
* {{ll|API:Query|<!--T:11--> All Query modules}}
+
* {{ll|API:Query| All Query modules}}
* {{ll|API:Properties|<!--T:44--> Get properties of pages}}
+
* {{ll|API:Properties| Get properties of pages}}
* {{ll|API:Lists|<!--T:45--> List pages matching a criterion}}
+
* {{ll|API:Lists| List pages matching a criterion}}
* {{ll|API:Parameter information|<!--T:46--> Get module parameters information}}
+
* {{ll|API:Parameter information| Get module parameters information}}
* {{ll|API:Meta|<!--T:47--> Get meta information about the wiki and user}}
+
* {{ll|API:Meta| Get meta information about the wiki and user}}
  
;<!--T:10--> Authentication:
+
; Authentication:
* {{ll|API:Tokens|<!--T:48--> Get tokens for data modifying operations}}
+
* {{ll|API:Tokens| Get tokens for data modifying operations}}
 
* {{ll|API:Login|nsp=0}}
 
* {{ll|API:Login|nsp=0}}
 
* {{ll|API:Logout|nsp=0}}
 
* {{ll|API:Logout|nsp=0}}
  
;<!--T:49--> Accounts and Users:
+
; Accounts and Users:
* {{ll|API:Account creation|<!--T:50--> Create an account}}
+
* {{ll|API:Account creation| Create an account}}
* {{ll|API:Block|<!--T:21--> Block or unblock a user}}
+
* {{ll|API:Block| Block or unblock a user}}
* {{ll|API:Userinfo| <!--T:74--> Get info about the current user}}
+
* {{ll|API:Userinfo| Get info about the current user}}
* {{ll|API:Watchlist feed|<!--T:51--> Get the current user's watchlist as a feed}}
+
* {{ll|API:Watchlist feed| Get the current user's watchlist as a feed}}
* {{ll|API:Options|<!--T:29--> Change user options}}
+
* {{ll|API:Options| Change user options}}
* {{ll|API:User group membership|<!--T:27--> Change user group membership}}
+
* {{ll|API:User group membership| Change user group membership}}
* {{ll|API:Emailuser|<!--T:24--> Send an email}}
+
* {{ll|API:Emailuser| Send an email}}
  
;<!--T:52--> Page Operations:
+
; Page Operations:
* {{ll|API:Parsing wikitext|<!--T:14--> Parse content of a page}}
+
* {{ll|API:Parsing wikitext| Parse content of a page}}
* {{ll|API:Edit|<!--T:16--> Create and edit a page}}
+
* {{ll|API:Edit| Create and edit a page}}
* {{ll|API:Upload|<!--T:28--> Upload a file}}
+
* {{ll|API:Upload| Upload a file}}
* {{ll|API:Import|<!--T:26--> Import a page}}
+
* {{ll|API:Import| Import a page}}
* {{ll|API:Delete|<!--T:18--> Delete a page}}
+
* {{ll|API:Delete| Delete a page}}
* {{ll|API:Watch|<!--T:22--> Watch or unwatch a page}}
+
* {{ll|API:Watch| Watch or unwatch a page}}
* {{ll|API:Purge|<!--T:15--> Purge cache for page(s)}}
+
* {{ll|API:Purge| Purge cache for page(s)}}
* {{ll|API:Rollback|<!--T:53--> Rollback a page}}
+
* {{ll|API:Rollback| Rollback a page}}
* {{ll|API:Move|<!--T:17--> Move a page}}
+
* {{ll|API:Move| Move a page}}
* {{ll|API:Patrol|<!--T:25--> Patrol a page or revision}}
+
* {{ll|API:Patrol| Patrol a page or revision}}
* {{ll|API:Undelete|<!--T:19--> Restore revisions of a deleted page}}
+
* {{ll|API:Undelete| Restore revisions of a deleted page}}
* {{ll|API:Protect|<!--T:20--> Change a page's protection level}}
+
* {{ll|API:Protect| Change a page's protection level}}
* {{ll|API:SetPageLanguage|<!--T:30--> Change a page's language}}
+
* {{ll|API:SetPageLanguage| Change a page's language}}
* {{ll|API:Changing wiki content|<!--T:41--> More...}}
+
* {{ll|API:Changing wiki content| More...}}
  
;<!--T:54--> Search:
+
; Search:
* {{ll|API:Search|<!--T:55--> Search for a title or text}}
+
* {{ll|API:Search| Search for a title or text}}
* {{ll|API:Opensearch|<!--T:56--> Fetch results in an OpenSearch format}}
+
* {{ll|API:Opensearch| Fetch results in an OpenSearch format}}
* {{ll|API:Geosearch|<!--T:57--> Search for wiki pages near a location}}
+
* {{ll|API:Geosearch| Search for wiki pages near a location}}
* {{ll|API:Languagesearch|<!--T:58--> Search for a language}}
+
* {{ll|API:Languagesearch| Search for a language}}
* {{ll|API:Prefixsearch|<!--T:59--> Perform a prefix search for page titles}}
+
* {{ll|API:Prefixsearch| Perform a prefix search for page titles}}
  
;<!--T:60--> Developer Utilities:
+
; Developer Utilities:
* {{ll|API:Client code|<!--T:61--> Access libraries}}
+
* {{ll|API:Client code| Access libraries}}
 
* {{ll|API:Cross-site requests|nsp=0}}
 
* {{ll|API:Cross-site requests|nsp=0}}
* {{ll|API:Extensions|<!--T:63--> Creating an API module in an extension}}
+
* {{ll|API:Extensions| Creating an API module in an extension}}
* {{ll|API:Calling internally|<!--T:32--> Using the API in MediaWiki and extensions}}
+
* {{ll|API:Calling internally| Using the API in MediaWiki and extensions}}
 
* {{ll|API:Restricting API usage|nsp=0}}
 
* {{ll|API:Restricting API usage|nsp=0}}
 
* {{ll|API:Localisation|nsp=0}}
 
* {{ll|API:Localisation|nsp=0}}
 
* {{ll|API:Implementation Strategy|nsp=0}}
 
* {{ll|API:Implementation Strategy|nsp=0}}
  
; <!--T:69--> Tutorials:
+
; Tutorials:
* {{ll|API:Tutorial|<!--T:70--> Action API Tutorial}}
+
* {{ll|API:Tutorial| Action API Tutorial}}
 
* {{ll|API:Article ideas generator|nsp=0}}
 
* {{ll|API:Article ideas generator|nsp=0}}
 
* {{ll|API:Nearby places viewer|nsp=0}}
 
* {{ll|API:Nearby places viewer|nsp=0}}
Line 81: Line 81:
 
* {{ll|API:Holidays viewer|nsp=0}}
 
* {{ll|API:Holidays viewer|nsp=0}}
  
}}<includeonly>{{#if:{{{nocat|}}}||[[Category:MediaWiki action API{{#translation:}}]]}}</includeonly>
+
 
 
| #default=
 
| #default=
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:API|noshift=1}}
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:API|noshift=1}}
}}<noinclude>
+
 
[[Category:Navigation templates{{#translation:}}]]
+
[[Category:Navigation templates]]
[[Category:API templates{{#translation:}}|API Intro]]
+
[[Category:API templates|API Intro]]
[[Category:Exclude in print{{#translation:}}]]
+
[[Category:Exclude in print]]
[[Category:Categorizing templates{{#translation:}}]]
+
[[Category:Categorizing templates]]
</noinclude>
 

Latest revision as of 16:00, 21 December 2019


{{#switch: | =

{{Sidebar | style = background: white; padding:10px; padding-right:13px; margin:5px 0 5px 12px; width: 350px; | name = API | above =

| title = MediaWiki Action API | image = | headingstyle = font-size: 130%; padding: .5em; | contentstyle = text-align: left; font-size: 14px; padding: .5em; line-height: 1.5; | abovestyle = text-align: left;

| content1 =

Basics
Authentication
Accounts and Users
Page Operations
Search
Developer Utilities
Tutorials


| #default=