From translatewiki.net
Jump to navigation Jump to search
Test Template Info-Icon - Version (2).svg
The documentation of Related/doc this template is included from its /doc subpage (Edit)



This template is meant to function as a primitive manual version of Translation Memory, until such time that an automatic tool exists.

How to use this template

This template uses only one parameter, {{{1}}}. That parameter is the name of a subpage of the template, which contains links to the messages in question. The template is to be used on the documentation page of related messages. For an example of how it used, see MediaWiki:Protectedpagemovewarning/qqq and MediaWiki:Semiprotectedpagewarning/qqq, where it transcludes the page Template:Related/Semiprotectedpagewarning.

Implementation notes

When added with AJAX, call $( '.mw-related-title' ).makeCollapsible(); after it is added to the document to make it work.

In other cases (on the Template:Related/… page and on the MediaWiki:…/qqq page) it works by default when the page is loaded.

See also