API:Alltransclusions
From MediaWiki.org
This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Create and edit pages
- Move pages
- Merge pages
- Rollback
- Delete pages
- Restore deleted revisions
- (Un)protect pages
- (Un)block users
- (Un)watch pages
- Mark revisions of watched pages as visited
- Send email
- Patrol changes
- Import pages
- Change user group membership
- Upload files
- User options
- Tokens
- Page language
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
Alltransclusions | ||
---|---|---|
This module cannot be used as a Generator . |
||
Prefix | at | |
Required rights | none | |
Post only? | No | |
Generated help | Current | |
Version added |
|
List all transclusions (pages embedded using {{x}}
), including non-existing.
This module is part of API:Alllinks.
Added in gerrit:40559.
Parameters[edit]
atcontinue
: When more results are available, use this to continue.atfrom
: The title of the transclusion to start enumerating from.atto
: The title of the transclusion to stop enumerating at.atprefix
: Search for all transclusion titles that begin with this value.atunique
: Only show distinct transclusion titles. Cannot be used withatprop=ids
. When used as a generator, yields target pages instead of source pages.atprop
: What pieces of information to include. (Default:title
)title
: Adds the title of the transclusionids
: Adds the pageid of the transcluding page. (Cannot be used with atunique).
atnamespace
: The namespace number to enumerate. (Default: 10 (theTemplate:
namespace))atlimit
: How many total items to return. (Default: 10)atdir
: The direction in which to list (Default:ascending
)ascending
: List from A to Z.descending
: List from Z to A.
Example[edit]
To count the number of pages which transclude a template, to decide to protect it above a certain number.
List all links to talk pages whose name starts with Talk:API
Result |
---|
<?xml version="1.0"?>
<api>
<query-continue>
<alltransclusions atcontinue="Citation|683" />
</query-continue>
<query>
<alltransclusions>
<t fromid="308" ns="10" title="Template:Citation" />
<t fromid="340" ns="10" title="Template:Citation" />
<t fromid="586" ns="10" title="Template:Citation" />
<t fromid="621" ns="10" title="Template:Citation" />
<t fromid="628" ns="10" title="Template:Citation" />
<t fromid="640" ns="10" title="Template:Citation" />
<t fromid="655" ns="10" title="Template:Citation" />
<t fromid="657" ns="10" title="Template:Citation" />
<t fromid="665" ns="10" title="Template:Citation" />
<t fromid="666" ns="10" title="Template:Citation" />
</alltransclusions>
</query>
</api>
|