Jump to content
Wikimedia Meta-Wiki

Template:SALT

From Meta, a Wikimedia project coordination wiki
Template documentation


This template employs intricate features of the template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the local /sandbox or your user space before changing anything here.
Please remember that it is necessary to substitute this template by using {{subst:SALT}}.

Usage

[edit ]

SALT (Same As Last Time) helps with the translation of recurring segments in Tech/News. When you enter {{subst:SALT}} as text when translating Tech/News the template will attempt to find a previous translation of the same section. 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!

Suggestion for use while translating Tech News

[edit ]

If you are using a keyboard, put {{subst:SALT}} in your clipboard and press ctrl+V ctrl+enter for recurring sections and ctrl+enter for non-recurring sections. When you reach the end, go back up and translate the non-recurring sections like you normally would.

What SALT returns

[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:

If some or all of the links are red in your language, try using the preload link. If the suggested translation looks fine, publish it. If the text field is empty or the translation insufficient, insert a proper translation before publishing.

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 when looking up a section with identical translation unit number in previous issues, the primary lookup method no longer relies on this though.
  • Your translation edit summaries won't be overly helpful. On the other hand, free advertising for this template!
The above documentation is transcluded from Template:SALT/doc. (edit | history)
Editors can experiment in this template’s sandbox (edit | diff) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /