API:Transcludedin
| Transcludedin | ||
|---|---|---|
| Find all pages that transclude the given pages. This module can be used as a Generator. |
||
| Prefix | ti | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
Find all pages that transclude the given pages. This module can be used as a generator.
Parameters[edit]
tiprop: Which properties to get. (Default:pageid|title|redirect)pageid: Get the page id of each page.title: Get the title of each page.redirect: Flag whether the page is a redirect.
tinamespace: Only include pages in these namespaces.tishow: Show only items that meet these criteria.redirect: Only show redirects.!redirect: Only show non-redirects.
tilimit: The number of results to return. No more than 500 (5000 for bots) allowed. (Default: 10)ticontinue: When more results are available, use this to continue.
Example[edit]
Get a list of pages which transclude the Main Page.
| Result |
|---|
{
"query": {
"pages": {
"15580374": {
"pageid": 15580374,
"ns": 0,
"title": "Main Page",
"transcludedin": [
{
"pageid": 1923146,
"ns": 2,
"title": "User:Eloquence/Tour 01"
},
{
"pageid": 5069777,
"ns": 2,
"title": "User:The Captain Returns"
},
{
"pageid": 7023260,
"ns": 2,
"title": "User:Sal's Wrecking Company"
},
{
"pageid": 7764336,
"ns": 2,
"title": "User:Leon2323/Main Page alternative (proper version)"
},
{
"pageid": 10613830,
"ns": 2,
"title": "User:LoserTalent"
},
{
"pageid": 11225077,
"ns": 3,
"title": "User talk:Minesweeper.007/%s"
},
{
"pageid": 14872172,
"ns": 2,
"title": "User:Holiday-873"
},
{
"pageid": 15199344,
"ns": 2,
"title": "User:Kieran Rice"
},
{
"pageid": 16492085,
"ns": 2,
"title": "User:Pruneau/Main Page"
},
{
"pageid": 20080013,
"ns": 2,
"title": "User:Beeshakhwand"
}
]
}
}
}
}
|
Possible errors[edit]
| Code | Info |
|---|---|
| tishow | Incorrect parameter - mutually exclusive values may not be supplied |
| The following documentation is the output of Special:ApiHelp/query+transcludedin, automatically generated by the pre-release version of MediaWiki that is running on this site (MediaWiki.org). |
prop=transcludedin (ti)
- This module requires read rights.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0+
Find all pages that transclude the given pages.
Parameters:
- tiprop
Which properties to get:
- pageid
- Page ID of each page.
- title
- Title of each page.
- redirect
- Flag if the page is a redirect.
- Values (separate with | or alternative): pageid, title, redirect
- Default: pageid|title|redirect
- tinamespace
Only include pages in these namespaces.
- Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 90, 91, 92, 93, 100, 101, 102, 103, 104, 105, 106, 107, 486, 487, 828, 829, 1198, 1199, 2300, 2301, 2302, 2303, 2600, 5500, 5501
- To specify all values, use *.
- tishow
Show only items that meet these criteria:
- redirect
- Only show redirects.
- !redirect
- Only show non-redirects.
- Values (separate with | or alternative): redirect, !redirect
- tilimit
How many to return.
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- Default: 10
- ticontinue
When more results are available, use this to continue.
Examples:
- Get a list of pages transcluding Main Page.
- api.php?action=query&prop=transcludedin&titles=Main%20Page [open in sandbox]
- Get information about pages transcluding Main Page.
- api.php?action=query&generator=transcludedin&titles=Main%20Page&prop=info [open in sandbox]