Pomoc API MediaWiki
To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.
Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wblinktitles
- Ten moduł wymaga praw odczytu.
- Ten moduł wymaga praw zapisu.
- Ten moduł akceptuje tylko żądania POST.
- Źródło: WikibaseClient
- Licencja: GPL-2.0-or-later
Associates two pages on two different wikis with a Wikibase item.
- returnto
Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.
- Typ: nazwa strony
- Akceptuje nieistniejące strony.
- returntoquery
URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.
- Domyślnie: (puste)
- returntoanchor
URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.
- Domyślnie: (puste)
- tosite
An identifier for the site on which the page resides. Use together with totitle to make a complete sitelink.
- Ten parametr jest wymagany.
- Jedna z następujących wartości:
- totitle
Title of the page to associate. Use together with tosite to make a complete sitelink.
- Ten parametr jest wymagany.
- fromsite
An identifier for the site on which the page resides. Use together with fromtitle to make a complete sitelink.
- Ten parametr jest wymagany.
- Jedna z następujących wartości:
- fromtitle
Title of the page to associate. Use together with fromsite to make a complete sitelink.
- Ten parametr jest wymagany.
- token
Token „csrf” pobrany z action=query&meta=tokens
- Ten parametr jest wymagany.
- bot
Oznacz tę zmianę jako wykonaną przez bota. Ten znacznik adresu URL będzie brany pod uwagę tylko, jeśli użytkownik należy do grupy „bot”.
- Typ: wartość boolowska (szczegóły)
- Add a link "Hydrogen" from the English page to "Wasserstoff" at the German page
- api.php?action=wblinktitles&fromsite=enwiki&fromtitle=Hydrogen&tosite=dewiki&totitle=Wasserstoff [otwórz w brudnopisie]