Template:Info/MT/doc
Template Description
This template is used to mark pages or content containing machine translations. For use only by administrators, bureaucrats, and site owners.
It adds an informational message box and automatically categorizes the page into Category:Pages containing machine-translated content. When this template is added and saved, the contributor's signature is automatically appended.
Please use this template in conjunction with {{MachineTranslation}}.
Parameter Description
Parameter Name | Type | Description |
---|---|---|
tag | Optional |
|
site / source language | Required | The source language site of the machine-translated content (zh/ja) |
pagename / source entry | Required | The page name of the machine-translated content in its source site |
oldid / source version | Required | The page timestamp of the machine-translated content on its source site at the time of adding this template. |
rank / position | Optional | Defaults to "Administrator". The contributor should fill in their role based on their user group. |
How to Retrieve Timestamp
- Click the "History" button on the page.
- Select the latest history version.
- Copy the number after "oldid=" from the URL (e.g., oldid=12345).
Usage Examples
{{Info/MT | source language = zh | source entry = 首页 | source version = 12345 }}
Effect:

This section content has been by Administrator MediaWiki default[More] using machine translation for the purpose of content synchronization from the Chinese site. The content has been imported from the 首页 page's 12345 version.
The machine-translated content has been marked with special colors and templates. Editors with the ability to improve the translation are encouraged to revise or retranslate the content and remove this template after completion.
Full-Width Mode
{{Info/MT | tag = fullpage | source language = zh | source entry = 首页 | source version = 12345 }}
Effect:

This page content has been by Administrator MediaWiki default[More] using machine translation for the purpose of content synchronization from the Chinese site. The content has been imported from the 首页 page's 12345 version.
The machine-translated content has been marked with special colors and templates. Editors with the ability to improve the translation are encouraged to revise or retranslate the content and remove this template after completion.
Technical Details
- User Record: Automatically retrieves the editor's username via the
{{SaveUserName}}
magic word. - Link Generation: Dynamically constructs cross-site links using the
[{{fullurl:{{{1}}}|{{{2}}}}} {{{1}}}]
parser function. - Conditional Checks: Detects parameter presence using
{{#ifeq}}
.
Notes
- Dependent Extension: NeuroWiki custom SaveRevisionID extension.
- Timestamp Retrieval: Requires accessing the page history of the corresponding language site to obtain the specific revision ID (timestamp).
- Click the "History" button on the page.
- Select the latest history version of the target language site.
- Copy the number after "oldid=" from the URL (e.g., oldid=12345).
- Icon File: Pre-uploaded to the shared repository:

Style Control
Style Class | Target Element |
---|---|
metadata | Entire info box container |
mw-file-element | Left-side icon |
mw-parser-output | Text content area |