Template:TranslationMark: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Subst only}} <includeonly> <onlyinclude>{{#switch: {{subst:(((}}1{{subst:)))}} {{subst:LanguageBar/foreach|UpdateTranslationMark/line|separator=}} = U }}</onlyinclude> </...")
 
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Subst only}}
{{Subst only}}
{{doc}}
<includeonly>


<includeonly>
<onlyinclude>{{TranslationMark/page|{{{namespace}}}|{{{base}}}}}
 
<<noinclude />!-- The #switch below determines which translations should be marked as needing update -->
 
<onlyinclude<noinclude />>{{#switch: {{subst:(((}}1{{subst:)))}}
 
{{subst:LanguageBar/foreach|TranslationMark/line|{{{namespace}}}/{{{base}}}|separator=}} = {{{type|U}}}


<onlyinclude>{{#switch: {{subst:(((}}1{{subst:)))}}
}}</onlyinclude<noinclude />>
{{subst:LanguageBar/foreach|UpdateTranslationMark/line|separator=}} = U
</onlyinclude>
}}</onlyinclude>


</includeonly>
</includeonly>

Latest revision as of 06:14, 22 March 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Substitution only template for easily marking all non-English versions of a page that uses {{LanguageBar}} with {{updatetranslation}}, {{finishtranslation}}, {{translate}} or {{Machinetranslation}} notices and giving the flags in LanguageBar orange background.

Icon-Important.pngImportant:It shouldn't be used manually but instead by clicking the Translate (Translate) button in the LanguageBar and then clicking the TranslationMark icon Translationmark (TranslationMark) and following further instructions there.

The way it works is {{LanguageBar}} checks for existence of Template:TranslationMark/<page_name> and if it exists gets the needed info from it.

See also