Template:TranslationMark/page: Difference between revisions
| No edit summary | No edit summary | ||
| (27 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| <includeonly>{{#if:{{LanguageBar/foreach|TranslationMark/anycheck|separator=}}||{{delete|Nothing marked as needing update}}}}</includeonly> | |||
| {{ | {{back|{{#if:{{{1}}}|{{{1}}}:}}{{{2}}}}} | ||
| This page contains {{ParserFunction|switch}} that determines which translations of page [[:{{#if:{{{1}}}|{{{1}}}:}}{{{2}}}]] should add either {{T|Updatetranslation}}, {{T|Finishtranslation}}, {{T|Translate}} or {{T|Machinetranslation}} and have their flag in {{T|LanguageBar}} highlighted with orange | |||
| This page was generated using <code><nowiki>{{subst: | |||
| * Following languages are marked as either needing translation update, translation, finishing a translation or is a machine translation (the flags are also cache purge links to the respective pages):  | |||
| marked with {{T|updatetranslation}}: | |||
|  {{LanguageBar/foreach|TranslationMark/flagline|U| }} | |||
| marked with {{T|finishtranslation}}: | |||
|  {{LanguageBar/foreach|TranslationMark/flagline|F| }} | |||
| marked with {{T|translate}}: | |||
|  {{LanguageBar/foreach|TranslationMark/flagline|T| }} | |||
| marked with {{T|machinetranslation}}: | |||
|  {{LanguageBar/foreach|TranslationMark/flagline|M| }} | |||
| After you click '''edit''' you can see a <code>#switch</code> that looks something like this | |||
| <pre> | |||
| {{#switch: {{{1}}} | |||
| | ru | tr | uk = U | |||
| }} | |||
| </pre> | |||
| Switch like that means that ru, tr and uk translated pages will show {{T|Updatetranslation}} at the top. | |||
| There are more options. Example: | |||
| <pre> | |||
| {{#switch: {{{1}}} | |||
| | ru = U | |||
| | tr | uk = F | |||
| | fi = T | |||
| | zh = M | |||
| }} | |||
| </pre> | |||
| In this case {{code|ru}} page shows {{T|Updatetranslation}}, {{code|tr}} and {{code|uk}} page shows {{T|Finishtranslation}}, {{code|fi}} page shows {{T|Translate}} and {{code|zh}} page shows {{T|Machinetranslation}} | |||
| Pages like this can be quickly created using {{T|LanguageBar}}'s TranslationMark button {{flag|TranslationMark}} which is shown after clicking {{Flag|Translate}} (on the top right of a page). | |||
| This page was generated using <code><nowiki>{{subst:TranslationMark|namespace=</nowiki>{{{1}}}<nowiki>|base=</nowiki>{{{2}}}<nowiki>}}</nowiki></code> | |||
| [[Category:LanguageBar translation mark settings]] | |||
| <noinclude> | |||
| [[Category:Template LanguageBar/foreach use source]] | |||
| </noinclude> | |||
Latest revision as of 12:02, 7 April 2025
This page contains {{#switch}} that determines which translations of page [[:{{{1}}}:{{{2}}}]] should add either {{Updatetranslation}}, {{Finishtranslation}}, {{Translate}} or {{Machinetranslation}} and have their flag in {{LanguageBar}} highlighted with orange
- Following languages are marked as either needing translation update, translation, finishing a translation or is a machine translation (the flags are also cache purge links to the respective pages):
marked with {{updatetranslation}}:
marked with {{finishtranslation}}:
marked with {{translate}}:
marked with {{machinetranslation}}:
After you click edit you can see a #switch that looks something like this
{{#switch: {{{1}}}
| ru | tr | uk = U
}}
Switch like that means that ru, tr and uk translated pages will show {{Updatetranslation}} at the top.
There are more options. Example:
{{#switch: {{{1}}}
| ru = U
| tr | uk = F
| fi = T
| zh = M
}}
In this case ru page shows {{Updatetranslation}}, tr and uk page shows {{Finishtranslation}}, fi page shows {{Translate}} and zh page shows {{Machinetranslation}}
Pages like this can be quickly created using {{LanguageBar}}'s TranslationMark button  which is shown after clicking
 which is shown after clicking  (on the top right of a page).
 (on the top right of a page).
This page was generated using {{subst:TranslationMark|namespace={{{1}}}|base={{{2}}}}}