MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wblinktitles
- このモジュールは読み取りの権限を必要とします。
- このモジュールは書き込みの権限を必要とします。
- このモジュールは POST リクエストのみを受け付けます。
- ソース: WikibaseClient
- ライセンス: GPL-2.0-or-later
Associates two pages on two different wikis with a Wikibase item.
- returnto
ページ名。編集内容の保存時に仮アカウントが作成された場合、API はクライアントがログインを完了するためにアクセスすべき URL を返すことがあります。このパラメーターが指定されている場合、その URL は編集されたページではなく、指定されたページにリダイレクトされます。
- タイプ : ページタイトル
- 存在しないページでも可。
- returntoquery
URL クエリパラメーター (先頭に ? を付けて指定)。編集の保存時に仮アカウントが作成された場合、API はクライアントがログインを完了するためにアクセスすべき URL を返すことがあります。このパラメーターが指定されていると、その URL は指定されたクエリパラメーター付きのページへリダイレクトされます。
- 既定値: (空)
- 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.
- 既定値: (空)
- tosite
An identifier for the site on which the page resides. Use together with totitle to make a complete sitelink.
- この変数は必須です。
- 値 (次の値のいずれか1つ):
- totitle
Title of the page to associate. Use together with tosite to make a complete sitelink.
- この変数は必須です。
- fromsite
An identifier for the site on which the page resides. Use together with fromtitle to make a complete sitelink.
- この変数は必須です。
- 値 (次の値のいずれか1つ):
- fromtitle
Title of the page to associate. Use together with fromsite to make a complete sitelink.
- この変数は必須です。
- token
action=query&meta=tokens から取得した「csrf」トークン
- この変数は必須です。
- bot
Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".
- 型: 真偽値 (詳細)
- 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 [サンドボックスで開く]