NeuroWiki hereby wishes Evil Neuro happy 2nd birthday on March 25, 2025!

Template:Need to synchronize from

From NeuroWiki
Jump to navigation Jump to search
[ View | Edit | History | Purge ]Documentation page

Template Documentation

This template is used to mark pages that need to be synchronized from other language sites (e.g., Chinese site) to this site. If you want to mark a section or page that requires synchronization to other language sites, please use {{Need_to_synchronize}}.

It adds a notification box and automatically categorizes the page into Category:Pages requiring edits to be synchronized from other language sites. When parameters are provided, it can display specific versions of the source language site that need to be synchronized.

Parameters

Parameter Name Type Description
site Required The language code of the source site where the required synchronization page resides (e.g., zh/ja).
pagename Required The page name on the source site that requires synchronization.
oldid Optional The revision ID (timestamp) of the page on the source site that requires synchronization.

How to Obtain the Revision ID

  1. Click the "History" button on the article page.
  2. Select the latest revision on the target site.
  3. Copy the number following "oldid=" in the URL (e.g., oldid=12345).

Usage Examples

{{Need_to_synchronize_from
| site = zh
| pagename = 首页
| oldid = 2468
}}

This page has been updated on another language site, but the changes have not yet been synchronized to the English site.

Editors capable of synchronizing content are kindly requested to assist. Once synchronization is complete, please remove this template.
This template was added and updated by MediaWiki default[More]Talk pageContributionsUpload historyBlockDeleted contributionsMove logPatrol logUser rights

Technical Details

  • Revision Tracking: Automatically retrieves the revision ID before the edit using the {{SaveRevisionID}} magic word.
  • User Tracking: Automatically retrieves the editor's username using the {{SaveUserName}} magic word.
  • Link Generation: Dynamically constructs cross-site links using the [{{fullurl:{{{1}}}|{{{2}}}}} {{{1}}}] parser function.
  • Conditional Logic: Uses {{#ifeq}} to check for the existence of parameters.

Notes

  1. Extension Dependency: Requires the NeuroWiki custom SaveRevisionID extension.
  2. Synchronization Workflow:
  3. * Synchronization should first be completed on this site.
  4. * Remove the template after synchronization is complete.
  5. Obtaining the Timestamp: Go to the page history of the source language site to get the specific revision ID (timestamp):
    1. Click the "History" button on the article page.
    2. Select the latest revision on the source site.
    3. Copy the number following "oldid=" in the URL (e.g., oldid=12345).
  6. Icon File: Pre-uploaded to the shared repository:
  

Style Classes

Style Class Target Element
metadata The entire notification box container.
mw-file-element The left-side icon.
mw-parser-output The text content area.

Redirects

  • Abbreviation: {{NTSF}}

See Also

  • A similar template for marking pages that need synchronization to other language sites: {{Need_to_synchronize}}
[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Need to synchronize from/doc.