API:Embeddedin/pt: Difference between revisions
Appearance
Content deleted Content added
Created page with "Não listar redirecionamentos" |
No edit summary |
||
| Line 15: | Line 15: | ||
*{{ApiParam|eifilterredir|How to filter redirects|default=<code>all</code>}} |
*{{ApiParam|eifilterredir|How to filter redirects|default=<code>all</code>}} |
||
**{{ApiParam|all|List all pages regardless of their redirect flag}} |
**{{ApiParam|all|List all pages regardless of their redirect flag}} |
||
**{{ApiParam|redirects|Listar apenas |
**{{ApiParam|redirects|Listar apenas redirecionamentos}} |
||
**{{ApiParam|nonredirects|Não listar redirecionamentos}} |
**{{ApiParam|nonredirects|Não listar redirecionamentos}} |
||
*{{ApiParam|eilimit|Maximum amount of pages to list.|default=10|maxallowed=500}} |
*{{ApiParam|eilimit|Maximum amount of pages to list.|default=10|maxallowed=500}} |
||
Revision as of 11:06, 10 August 2018
| Esta página faz parte da documentação da API de Ação do MediaWiki. |
| Embeddedin | ||
|---|---|---|
Este módulo pode ser utilizado como um gerador. | ||
| Prefixo | ei | |
| Permissões requeridas | nenhuma | |
| Só publicação? | Não | |
| Ajuda gerada | Atual | |
| Versão adicionada |
| |
List pages that transclude a certain page.
Parâmetros
eititle: List pages including this title. The title need not existeinamespace: Only list pages in these namespaceseifilterredir: How to filter redirects (Default:all)all: List all pages regardless of their redirect flagredirects: Listar apenas redirecionamentosnonredirects: Não listar redirecionamentos
eilimit: Maximum amount of pages to list. No more than 500 (5000 for bots) allowed. (Default: 10)eicontinue: Used to continue a previous request
Exemplo
Find all pages that embed w:Template:Stub.
api.php? action=query& list=embeddedin& eititle=Template:Stub& eilimit=5 [teste na 'Área de Testes' da API (Sandbox)]
| Resultado |
|---|
<?xml version="1.0" encoding="utf-8"?>
<api>
<query-continue>
<embeddedin eicontinue="10|Stub|16324457" />
</query-continue>
<query>
<embeddedin>
<ei pageid="7997510" ns="0" title="Maike Evers" />
<ei pageid="10357370" ns="0" title="ConnectU" />
<ei pageid="11347592" ns="0" title="Oliver B. Greene" />
<ei pageid="11886644" ns="0" title="Godfrey Burley Group" />
<ei pageid="14882500" ns="0" title="Contra principia negantem disputari non potest" />
</embeddedin>
</query>
</api>
|
Error Codes
| Código | Info |
|---|---|
| eibadcontinue | Parâmetro de continuação inválido. Deve passar o valor original devolvido pela consulta anterior. |
| A documentação a seguir é a saída de Special: |
list=embeddedin (ei)
- This module requires read rights.
- This module can be used as a generator.
- Source: MediaWiki
- License: GPL-2.0-or-later
Find all pages that embed (transclude) the given title.
Specific parameters:
Other general parameters are available.
- eititle
Title to search. Cannot be used together with eipageid.
- eipageid
Page ID to search. Cannot be used together with eititle.
- Type: integer
- eicontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- einamespace
The namespace to enumerate.
- 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, 710, 711, 828, 829, 1198, 1199, 1728, 1729, 2600, 5500, 5501
- To specify all values, use *.
- eidir
The direction in which to list.
- One of the following values: ascending, descending
- Default: ascending
- eifilterredir
How to filter for redirects.
- One of the following values: all, nonredirects, redirects
- Default: all
- eilimit
How many total pages to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
Examples:
- Show pages transcluding Template:Stub.
- api.php?action=query&list=embeddedin&eititle=Template:Stub [open in sandbox]
- Get information about pages transcluding Template:Stub.
- api.php?action=query&generator=embeddedin&geititle=Template:Stub&prop=info [open in sandbox]