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
  • When set to "fullpage":
    • Modifies the prompt text to "The content of this page has been updated"
    • Removes width restrictions (displays full-width)
    • Used for cases where the entire page has been extensively modified. If only a section has been modified, do not use this parameter.
    • When enabled, it must be placed at the top of the page, not within the modified section.
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

  1. Click the "History" button on the page.
  2. Select the latest history version.
  3. 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]Talk pageContributionsUpload historyBlockDeleted contributionsMove logPatrol logUser rights 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]Talk pageContributionsUpload historyBlockDeleted contributionsMove logPatrol logUser rights 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

  1. Dependent Extension: NeuroWiki custom SaveRevisionID extension.
  2. Timestamp Retrieval: Requires accessing the page history of the corresponding language site to obtain the specific revision ID (timestamp).
    1. Click the "History" button on the page.
    2. Select the latest history version of the target language site.
    3. Copy the number after "oldid=" from the URL (e.g., oldid=12345).
  3. 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