Template:TranslationMark/page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
}}
}}
</pre>
</pre>
In this case ru page shows {{T|Updatetranslation}}, tr and uk page shows {{T|Finishtranslation}} and fi page shows {{T|Translate}}
In this case {{code|ru}} page shows {{T|Updatetranslation}}, {{code|tr}} and {{code|uk}} page shows {{T|Finishtranslation}} and {{code|fi}} page shows {{T|Translate}}




Pages like this can be generated using substition only template {{T|TranslationMark}}.
Pages like this can be quickly created using {{T|LanguageBar}}'s white flag button (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>
This page was generated using <code><nowiki>{{subst:TranslationMark|namespace=</nowiki>{{{1}}}<nowiki>|base=</nowiki>{{{2}}}<nowiki>}}</nowiki></code>

Revision as of 10:42, 7 September 2024

[[:{{{1}}}:{{{2}}} | ← {{{1}}}:{{{2}}} ]]

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


  • 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}}


Pages like this can be quickly created using {{LanguageBar}}'s white flag button (on the top right of a page).

This page was generated using {{subst:TranslationMark|namespace={{{1}}}|base={{{2}}}}}