Template:Identical
MediaWiki – Core
- Apisandbox-examples [plural] (“
Examples
”)
MediaWiki – Extensions/Skins
- Api-help-examples [plural, capitalized with colon] (“
{{PLURAL:$1|Example|Examples}}:
”) - Bs-insertmagic-label-examples [plural] (“
Examples
”) - Fileimporter-exampleprefix [capitalized] (“
Example
”) - Templatedata-modal-table-param-example [capitalized with parameter in round brackets] (“
Example ($1)
”) - Wikieditor-toolbar-tool-file-example [with .jpg extension] (“
Example.jpg
”) - Wikieditor-toolbar-tool-table-example [text in a table cell] (“
Example
”)
Intuition
- Wikiviewstats-sample [capitalized] (“
Example
”)
Wikimedia
- Cejs-example [full caps] (“
EXAMPLE
”) - Wdqs-app-button-examples [capitalized plural] (“
Examples
”)
Documentation
With all of the extensions that MediaWiki has, there has bound to be some overlaps in the messages, e.g. messages that are identical to each other. To help with this, there is a “documentation” field above the edit window for messages. If one or more messages are identical to the message you are translating, this window will show a list of these messages with links.
Remember that while it is often safe to assume that these messages will be the same when they are translated, there may be some circumstances where they have to be different from each other when translated, even though the English versions are the same. So you should check the context of the message to see if it is different from the others.
This template is meant to function as a primitive manual version of a translation memory system, until such time that an automatic tool exists.
How to use this template
This template is to be used on the documentation subpage (/qqq) of messages that have an identical counterpart, which is rendered on the right pane of the translate UI or at top of page when editing them with the wikicode editor).
This template uses only one parameter, {{{1}}}
. That parameter is the name of a subpage of this template, which contains links to the messages in question.
For an example of how it used, see MediaWiki:About/qqq, where it transcludes the page Template:Identical/About.
The individual messages are listed in the "Identical/*" template, as list items using formatting templates (listed in Category:Message link templates and based on {{Msg-meta}}
), one for each translation project supported on translatewiki.net, with just a single parameter for the message identifier, they should be grouped by translation project and sorted by message identifier (to avoid duplicates references to the same message and simplify their use and maintenance).
The subtemplates referenced by this template should be listed in its attached Category:Identical message templates. For the full list of subtemplates (including redirects for aliases and known synonyms), see Special:PrefixIndex/Template:Identical/.
Implementation notes
When added with AJAX, call $( '.mw-identical-title' ).makeCollapsible();
after it is added to the document to make it work.
In other cases (on the Template:Identical/… page and on the MediaWiki:…/qqq page) it works by default when the page is loaded.
Uses TemplateStyles page at Template:Identical/styles.css.