Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
prop=links (pl)
- За овој модул се потребни права на читање.
- Овој модул може да се користи како создавач.
- Извор: MediaWiki
- Лиценца: GPL-2.0+
Returns all links from the given pages.
Параметри:
- plnamespace
Show links in these namespaces only.
- Вредности (одделете ги со |): -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- To specify all values, use *.
- pllimit
How many links to return.
- Не се допушта повеќе од 500 (5.000 за ботови).
- Тип: цел број или max
- По основно: 10
- plcontinue
Употребете го ова за да продолжите кога има повеќе расположиви ставки.
- pltitles
Only list links to these titles. Useful for checking whether a certain page links to a certain title.
- Одделувајте ги вредностите со |. Највеќе допуштени вредности: 50 (500 за ботови).
- pldir
The direction in which to list.
- Една вредност: ascending, descending
- По основно: ascending
Примери:
- Get links from the page Main Page
- api.php?action=query&prop=links&titles=Main%20Page [open in sandbox]
- Get information about the link pages in the page Main Page.
- api.php?action=query&generator=links&titles=Main%20Page&prop=info [open in sandbox]
- Get links from the page Main Page in the Корисник and Шаблон namespaces.
- api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10 [open in sandbox]