رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=contenttranslation
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو جنریٹر کے طور پر استعمال کیا جا سکتا ہے۔
- ماخذ: ContentTranslation
- اجازت نامہ: GPL-2.0-or-later
Query Content Translation database for translations.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- translationid
Translation ID.
- from
The source language code.
- to
The target language code.
- sourcetitle
The title of the source page.
- sourcesectiontitle
The title of the source section (optional).
- limit
The maximum number of translations to fetch.
- طرز: عدد صحیح یا max
- The value must be between 1 and 500.
- طے شدہ: 100
- offset
Offset into result set (optional).
- type
State of the translation.
- ذیل کی قدروں میں سے کوئی ایک: draft، published
- usecase
The usecase for which the translations are being fetched (optional).
- ذیل کی قدروں میں سے کوئی ایک: desktop-editor-draft، translation-corpora-units، unified-dashboard
مثالیں
- Get translations started by the current user.
- api.php?action=query&list=contenttranslation [تختۂ مشق میں کھولیں]
- Get translations draft by ID.
- api.php?action=query&list=contenttranslation&translationid=94 [تختۂ مشق میں کھولیں]
- Find any translation for the given title between given language pair
- api.php?action=query&list=contenttranslation&from=en&to=es&sourcetitle=Hibiscus [تختۂ مشق میں کھولیں]