Difference between revisions of "Template:API"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "{{#translation:}}" to "")
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
 
<languages />
+
 
</noinclude>{{#switch:<translate></translate>
+
{{#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 = <translate><!--T:1--> This page is part of the [[<tvar|main>Special:MyLanguage/API:Main_page</>|MediaWiki Action API]] documentation.</translate>
+
Special:MyLanguage/API:Main_page|MediaWiki Action API]] documentation.
 
}}
 
}}
 
{{Sidebar
 
{{Sidebar
Line 14: Line 14:
 
| above =
 
| above =
  
| title = {{ll|API:Main page|<translate><!--T:38--> MediaWiki Action API</translate>}}
+
| 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 =
;<translate><!--T:43--> Basics</translate>:
+
; Basics:
* {{ll|API:Query|<translate><!--T:11--> All Query modules</translate>}}
+
* {{ll|API:Query| All Query modules}}
* {{ll|API:Properties|<translate><!--T:44--> Get properties of pages</translate>}}
+
* {{ll|API:Properties| Get properties of pages}}
* {{ll|API:Lists|<translate><!--T:45--> List pages matching a criterion</translate>}}
+
* {{ll|API:Lists| List pages matching a criterion}}
* {{ll|API:Parameter information|<translate><!--T:46--> Get module parameters information</translate>}}
+
* {{ll|API:Parameter information| Get module parameters information}}
* {{ll|API:Meta|<translate><!--T:47--> Get meta information about the wiki and user</translate>}}
+
* {{ll|API:Meta| Get meta information about the wiki and user}}
  
;<translate><!--T:10--> Authentication</translate>:
+
; Authentication:
* {{ll|API:Tokens|<translate><!--T:48--> Get tokens for data modifying operations</translate>}}
+
* {{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}}
  
;<translate><!--T:49--> Accounts and Users</translate>:
+
; Accounts and Users:
* {{ll|API:Account creation|<translate><!--T:50--> Create an account</translate>}}
+
* {{ll|API:Account creation| Create an account}}
* {{ll|API:Block|<translate><!--T:21--> Block or unblock a user</translate>}}
+
* {{ll|API:Block| Block or unblock a user}}
* {{ll|API:Userinfo| <translate><!--T:74--> Get info about the current user</translate>}}
+
* {{ll|API:Userinfo| Get info about the current user}}
* {{ll|API:Watchlist feed|<translate><!--T:51--> Get the current user's watchlist as a feed</translate>}}
+
* {{ll|API:Watchlist feed| Get the current user's watchlist as a feed}}
* {{ll|API:Options|<translate><!--T:29--> Change user options</translate>}}
+
* {{ll|API:Options| Change user options}}
* {{ll|API:User group membership|<translate><!--T:27--> Change user group membership</translate>}}
+
* {{ll|API:User group membership| Change user group membership}}
* {{ll|API:Emailuser|<translate><!--T:24--> Send an email</translate>}}
+
* {{ll|API:Emailuser| Send an email}}
  
;<translate><!--T:52--> Page Operations</translate>:
+
; Page Operations:
* {{ll|API:Parsing wikitext|<translate><!--T:14--> Parse content of a page</translate>}}
+
* {{ll|API:Parsing wikitext| Parse content of a page}}
* {{ll|API:Edit|<translate><!--T:16--> Create and edit a page</translate>}}
+
* {{ll|API:Edit| Create and edit a page}}
* {{ll|API:Upload|<translate><!--T:28--> Upload a file</translate>}}
+
* {{ll|API:Upload| Upload a file}}
* {{ll|API:Import|<translate><!--T:26--> Import a page</translate>}}
+
* {{ll|API:Import| Import a page}}
* {{ll|API:Delete|<translate><!--T:18--> Delete a page</translate>}}
+
* {{ll|API:Delete| Delete a page}}
* {{ll|API:Watch|<translate><!--T:22--> Watch or unwatch a page</translate>}}
+
* {{ll|API:Watch| Watch or unwatch a page}}
* {{ll|API:Purge|<translate><!--T:15--> Purge cache for page(s)</translate>}}
+
* {{ll|API:Purge| Purge cache for page(s)}}
* {{ll|API:Rollback|<translate><!--T:53--> Rollback a page</translate>}}
+
* {{ll|API:Rollback| Rollback a page}}
* {{ll|API:Move|<translate><!--T:17--> Move a page</translate>}}
+
* {{ll|API:Move| Move a page}}
* {{ll|API:Patrol|<translate><!--T:25--> Patrol a page or revision</translate>}}
+
* {{ll|API:Patrol| Patrol a page or revision}}
* {{ll|API:Undelete|<translate><!--T:19--> Restore revisions of a deleted page</translate>}}
+
* {{ll|API:Undelete| Restore revisions of a deleted page}}
* {{ll|API:Protect|<translate><!--T:20--> Change a page's protection level</translate>}}
+
* {{ll|API:Protect| Change a page's protection level}}
* {{ll|API:SetPageLanguage|<translate><!--T:30--> Change a page's language</translate>}}
+
* {{ll|API:SetPageLanguage| Change a page's language}}
* {{ll|API:Changing wiki content|<translate><!--T:41--> More...</translate>}}
+
* {{ll|API:Changing wiki content| More...}}
  
;<translate><!--T:54--> Search</translate>:
+
; Search:
* {{ll|API:Search|<translate><!--T:55--> Search for a title or text</translate>}}
+
* {{ll|API:Search| Search for a title or text}}
* {{ll|API:Opensearch|<translate><!--T:56--> Fetch results in an OpenSearch format</translate>}}
+
* {{ll|API:Opensearch| Fetch results in an OpenSearch format}}
* {{ll|API:Geosearch|<translate><!--T:57--> Search for wiki pages near a location</translate>}}
+
* {{ll|API:Geosearch| Search for wiki pages near a location}}
* {{ll|API:Languagesearch|<translate><!--T:58--> Search for a language</translate>}}
+
* {{ll|API:Languagesearch| Search for a language}}
* {{ll|API:Prefixsearch|<translate><!--T:59--> Perform a prefix search for page titles</translate>}}
+
* {{ll|API:Prefixsearch| Perform a prefix search for page titles}}
  
;<translate><!--T:60--> Developer Utilities</translate>:
+
; Developer Utilities:
* {{ll|API:Client code|<translate><!--T:61--> Access libraries</translate>}}
+
* {{ll|API:Client code| Access libraries}}
 
* {{ll|API:Cross-site requests|nsp=0}}
 
* {{ll|API:Cross-site requests|nsp=0}}
* {{ll|API:Extensions|<translate><!--T:63--> Creating an API module in an extension</translate>}}
+
* {{ll|API:Extensions| Creating an API module in an extension}}
* {{ll|API:Calling internally|<translate><!--T:32--> Using the API in MediaWiki and extensions</translate>}}
+
* {{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}}
  
; <translate><!--T:69--> Tutorials</translate>:
+
; Tutorials:
* {{ll|API:Tutorial|<translate><!--T:70--> Action API Tutorial</translate>}}
+
* {{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=