עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

prop=templates (tl)

(main | query | templates)
  • יחידה זו דורשת הרשאות קריאה.
  • היחידה הזאת יכולה להיות מחולל.

Returns all pages transcluded on the given pages.

פרמטרים:
tlnamespace

Show templates in this namespaces only.

ערכים (מופרדים באמצעות "|"): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
tllimit

How many templates to return.

המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
ברירת מחדל: 10
tlcontinue

כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.

tltemplates

Only list these templates. Useful for checking whether a certain page uses a certain template.

הפרדה בין ערכים נעשית באמצעות | מספר הערכים המרבי הוא 50 (עבור בוטים – 500).
tldir

The direction in which to list.

ערך אחד: ascending, descending
ברירת מחדל: ascending
דוגמאות:
Get the templates used on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page
Get information about the template pages used on Main Page.
api.php?action=query&generator=templates&titles=Main%20Page&prop=info
Get pages in the עורכ/ת and תבנית namespaces that are transcluded on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10