Template:Pages to translate
This template is a template gadget. It requires the PagesToTranslate gadget to work, which is loaded automatically when this template is used. |
Use this template to produce a list of Wikipedia articles that need translation out of a given seed article. This template was originally meant to be useful in wikiprojects to produce a list of pages that need translation related to that wikiproject.
See the installation instructions to get it working in your wiki.
Usage
editPages related to w:Climate change that need translation to Spanish:
Markup | Renders as |
---|---|
|
Loading...
|
Installation
editTo install this template in your wiki:
- Create a template with the following markup. You can choose the template name, parameter names and defaults to suit your wiki.
<includeonly><div class="PagesToTranslate" data-seed="{{{seed|{{{1|{{FULLPAGENAME}}}}}}}}" data-source="{{{source|}}}" data-target="{{{target|{{CONTENTLANGUAGE}}}}}" data-limit="{{{limit|10}}}" >Loading...</div>[[Category:Gadget:PagesToTranslate]]</includeonly>
- Create MediaWiki:Gadget-PagesToTranslate.js with the following code:
/** * PagesToTranslate produces a list of pages that need translation out of a given seed page * Documentation: https://www.mediawiki.org/wiki/PagesToTranslate * Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-PagesToTranslate.js */ mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-PagesToTranslate' );
- Add the following gadget to MediaWiki:Gadgets-definition:
* PagesToTranslate[ResourceLoader|hidden|default|categories=Gadget:PagesToTranslate]|PagesToTranslate.js
Done! Add your template to any page to verify that the installation was successful.
Template data
editUse this template to produce a list of Wikipedia articles that need translation out of a given seed page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Seed | seed | Seed page from where to get the translation recommendations
| Page name | optional |
Limit | limit | Max number of pages to list
| Number | optional |
See also
edit- es:Plantilla:Páginas para traducir - Spanish localization of this template
- User:Sophivorus - Main author of this template