Template:TranslationMark/page: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
{{back|{{#if:{{{1}}}|{{{1}}}:}}{{{2}}}}} | {{back|{{#if:{{{1}}}|{{{1}}}:}}{{{2}}}}} | ||
This page contains | This page contains {{ParserFunction|switch}} that determines which translations of page [[:{{#if:{{{1}}}|{{{1}}}:}}{{{2}}}]] should add either {{T|Updatetranslation}}, {{T|Finishtranslation}} or {{T|Translate}} and have their flag in {{T|LanguageBar}} highlighted with orange | ||
Pages like this can be generated using substition only template {{T|TranslationMark}}. | Pages like this can be generated using substition only template {{T|TranslationMark}}. | ||
| Line 15: | Line 15: | ||
After you click '''edit''' you can see a #switch that looks something like this | After you click '''edit''' you can see a <code>#switch</code> that looks something like this | ||
<pre> | <pre> | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
Revision as of 23:32, 22 August 2024
This page contains {{#switch}} that determines which translations of page [[:{{{1}}}:{{{2}}}]] should add either {{Updatetranslation}}, {{Finishtranslation}} or {{Translate}} and have their flag in {{LanguageBar}} highlighted with orange
Pages like this can be generated using substition only template {{TranslationMark}}.
This page was generated using {{subst:TranslationMark|namespace={{{1}}}|base={{{2}}}}}
- Following languages are marked as either needing translation update, translation or finishing a translation (the flags are also cache purge links to the respective pages):
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
}}
In this case ru page shows {{Updatetranslation}}, tr and uk page shows {{Finishtranslation}} and fi page shows {{Translate}}