Template:Pages to translate

Template documentation

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

edit

Pages related to w:Climate change that need translation to Spanish:

Markup Renders as
{{Pages to translate
| seed = Climate change
| source = en
| target = es
| limit = 5
}}
Loading...

Installation

edit

To install this template in your wiki:

  1. 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>
    
  2. 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' );
    
  3. 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

edit

Use this template to produce a list of Wikipedia articles that need translation out of a given seed page

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Seedseed

Seed page from where to get the translation recommendations

Example
Climate change
Page nameoptional
Limitlimit

Max number of pages to list

Default
10
Example
100
Numberoptional

See also

edit