මාධ්යවිකි API උදවු
මෙය ස්වයං-ජනිත මාධ්යවිකි API ප්රලේඛන පිටුවකි.
ප්රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API
prop=templates (tl)
- මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්ය වේ.
- මෙම ආකෘතිය උත්පාදකයක් ලෙස භාවිතා කල හැක.
- Source: MediaWiki
- License: GPL-2.0-or-later
Returns all pages transcluded on the given pages.
පරාමිතීන්:
Other general parameters are available.
- 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
- To specify all values, use *.
- tllimit
How many templates to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 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.
- වටිනාකම් "|" සමග වෙන් කරන්න.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- tldir
The direction in which to list.
- එක් වටිනාකමක්: ascending, descending
- Default: ascending
උදාහරණ:
- Get the templates used on the page මුල් පිටුව.
- api.php?action=query&prop=templates&titles=%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A%20%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80 [open in sandbox]
- Get information about the template pages used on the page මුල් පිටුව.
- api.php?action=query&generator=templates&titles=%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A%20%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80&prop=info [open in sandbox]
- Get pages in the පරිශීලක and සැකිල්ල namespaces that are transcluded on the page මුල් පිටුව.
- api.php?action=query&prop=templates&titles=%E0%B6%B8%E0%B7%94%E0%B6%BD%E0%B7%8A%20%E0%B6%B4%E0%B7%92%E0%B6%A7%E0%B7%94%E0%B7%80&tlnamespace=2|10 [open in sandbox]