Template:SALT

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation

Usage[edit]

SALT (Same As Last Time) helps with the translation of repeating segments in Tech/News. Enter {{subst:SALT}} as text when translating Tech/News:

  • If the section exists in the previous issue, the contents of that will be substituted
  • If the section exists in the issue before the previous issue, the contents of that will be substituted
  • If the section exists in neither of those but it does exist as a fallback page in the subpages of this template, the contents of that will be entered

This is less trouble than copy-pasting from previous issues because translation memory is permanently broken. Actually you may find it easier than using translation memory even when the translation memory DOES work!

Fallback info[edit]

{{SALT}} will:

  1. Look for a page title in the subpages of the template that matches the first 60 characters (or less) from the English original plus your language code (like Template:SALT/fallback/Recent changes/nl)
  2. Look for a section with identical translation unit number in the previous issue
  3. Look for a section with identical translation unit number in the issue before that
  4. Look for a page title in the subpages of the template that matches the translation unit number plus your language code (like Template:SALT/fallback/2/nl)

In your language[edit]

Here are links to some messages for recurrent sections, hopefully in your language:

Page display title[edit]

For the page display title in your language enter

Tech/News/{{#titleparts: {{PAGENAME}} | 1 | 3 }}/{{#titleparts: {{PAGENAME}} | 1 | 4 }}

Optional: translate only the part that says "Tech/News". Don't touch anything else.

Known issues[edit]

Some gadget or other functionality should be made to insert {{subst:SALT}} with a single button.

Known limitations:

  • Funny things might happen in the first week of a leap year? #care
  • The people who create Tech News have to be consistent in their use of translation unit numbers (like <!--T:4-->) or all hell would break loose.
  • Your translation edit summaries won't be overly helpful. On the other hand, free advertising for this template!