Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/API
prop=linkshere (lh)
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul lze využívat jako generátor.
- Zdroj: MediaWiki
- Licence: GPL-2.0-or-later
Find all pages that link to the given pages.
Parametry:
- lhprop
- Which properties to get: - pageid
- Page ID of each page.
- title
- Title of each page.
- redirect
- Flag if the page is a redirect.
 
- Hodnoty (oddělené | nebo alternativou.): pageid, redirect, title
- Default: pageid|title|redirect
- lhnamespace
- Only include pages in these namespaces. 
- Hodnoty (oddělené | nebo alternativou.): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1198, 1199
- To specify all values, use *.
- lhshow
- Show only items that meet these criteria: - redirect
- Only show redirects.
- !redirect
- Only show non-redirects.
 
- Hodnoty (oddělené | nebo alternativou.): !redirect, redirect
- lhlimit
- How many to return. 
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- lhcontinue
- When more results are available, use this to continue. 
Příklady:
- Get a list of pages linking to the Main Page.
- api.php?action=query&prop=linkshere&titles=Main%20Page [otevřít v pískovišti]
- Získat informace o stránkách, které odkazují na Hlavní stránku.
- api.php?action=query&generator=linkshere&titles=Main%20Page&prop=info [otevřít v pískovišti]