Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
prop=redirects (rd)
- За овој модул се потребни права на читање.
- Овој модул може да се користи како создавач.
- Извор: MediaWiki
- Лиценца: GPL-2.0+
Returns all redirects to the given pages.
Параметри:
- rdprop
Which properties to get:
- pageid
- Page ID of each redirect.
- title
- Title of each redirect.
- fragment
- Fragment of each redirect, if any.
- Вредности (одделете ги со |): pageid, title, fragment
- По основно: pageid|title
- rdnamespace
Only include pages in these namespaces.
- Вредности (одделете ги со |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- To specify all values, use *.
- rdshow
Show only items that meet these criteria:
- fragment
- Only show redirects with a fragment.
- !fragment
- Only show redirects without a fragment.
- Вредности (одделете ги со |): fragment, !fragment
- rdlimit
How many redirects to return.
- Не се допушта повеќе од 500 (5.000 за ботови).
- Тип: цел број или max
- По основно: 10
- rdcontinue
Употребете го ова за да продолжите кога има повеќе расположиви ставки.
Примери:
- Get a list of redirects to the Main Page.
- api.php?action=query&prop=redirects&titles=Main%20Page [open in sandbox]
- Get information about all redirects to the Main Page.
- api.php?action=query&generator=redirects&titles=Main%20Page&prop=info [open in sandbox]