MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=redirects (rd)
- Ta modul zahteva pravice branja.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
Returns all redirects to the given pages.
Parameters:
- rdprop
Katere lastnosti naj se pridobijo:
- pageid
- ID strani vsake preusmeritve.
- title
- Naslov vsake preusmeritve.
- fragment
- Fragment of each redirect, if any.
- Values (separate with | or alternative): fragment, pageid, title
- Privzeto: pageid|title
- rdnamespace
Vključi samo strani v teh imenskih prostorih.
- Values (separate with | or alternative): 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.
- Values (separate with | or alternative): !fragment, fragment
- rdlimit
How many redirects to return.
- Type: integer or max
- Vrednost mora biti med 1 in 500.
- Privzeto: 10
- rdcontinue
When more results are available, use this to continue.
Zgleda:
- Pridobitev seznama preusmeritev na Main Page.
- api.php?action=query&prop=redirects&titles=Main%20Page [open in sandbox]
- Pridobitev vseh preusmeritev na Main Page.
- api.php?action=query&generator=redirects&titles=Main%20Page&prop=info [open in sandbox]