رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=templates (tl)
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو جنریٹر کے طور پر استعمال کیا جا سکتا ہے۔
- ماخذ: MediaWiki
- اجازت نامہ: GPL-2.0-or-later
Returns all pages transcluded on the given pages.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- tlnamespace
Show templates in these namespaces only.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل): -1، -2، 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 106، 107
- To specify all values, use *.
- tllimit
How many templates to return.
- طرز: عدد صحیح یا max
- The value must be between 1 and 500.
- طے شدہ: 10
- tlcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- tltemplates
Only list these templates. Useful for checking whether a certain page uses a certain template.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- tldir
The direction in which to list.
- ذیل کی قدروں میں سے کوئی ایک: ascending، descending
- طے شدہ: ascending
مثالیں
- Get the templates used on the page صفحۂ اول.
- api.php?action=query&prop=templates&titles=%D8%B5%D9%81%D8%AD%DB%82%20%D8%A7%D9%88%D9%84 [تختۂ مشق میں کھولیں]
- Get information about the template pages used on the page صفحۂ اول.
- api.php?action=query&generator=templates&titles=%D8%B5%D9%81%D8%AD%DB%82%20%D8%A7%D9%88%D9%84&prop=info [تختۂ مشق میں کھولیں]
- Get pages in the صارف and سانچہ namespaces that are transcluded on the page صفحۂ اول.
- api.php?action=query&prop=templates&titles=%D8%B5%D9%81%D8%AD%DB%82%20%D8%A7%D9%88%D9%84&tlnamespace=2|10 [تختۂ مشق میں کھولیں]