Template:Lang: Difference between revisions
Jump to navigation
Jump to search
Warning:If you are moving the page, you MUST move the respective language page and edit the template on main page and put the new title on it aswell in order to prevent issues.
(Redirected page to Template:LanguageBar) Tag: New redirect |
(Removed redirect to Template:LanguageBar) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
{{Tdeprecated|notes= | {{Tdeprecated|notes= | ||
Template pages should use {{T|Autolang}} or a [[Valve Developer Community:Alternative Languages#Templates|Strings subpage]] on template pages, and to preview translations use {{T|Uselangflags}} surrounded by <nowiki><noinclude></nowiki>. Documentation on how to use it can be found in that template and on the [[Valve Developer Community:Alternative Languages]]. Many new languages (such as {{Flag|el}} Greek and {{Flag|vi}} Vietnamese) are only supported in {{T|MultiPage}}.<br>While {{T|MultiPage}} has been made to replace {{T|Lang}} (this template), there was some downsides from using this templates, such as requring users to purge so the newly edited (or translated) text will show up on the main page, so we recommend existing pages keep using this templates, until there is a proper replacement (see Todo below).<br><br><!-- You can help us converting {{T|Lang}} to {{T|MultiPage}} by checking old pages using Lang template at [[:Category:Pages using Lang|Pages using Lang category]] and in the [https://developer.valvesoftware.com/w/index.php?title=Special%3AWhatLinksHere&hideredirs=1&hidelinks=1&target=Template%3ALang&namespace=0 Pages that link to "Template:Lang"].--></big> | Template pages should use {{T|Autolang}} or a [[Valve Developer Community:Alternative Languages#Templates|Strings subpage]] on template pages, and to preview translations use {{T|Uselangflags}} surrounded by <nowiki><noinclude></nowiki>. Documentation on how to use it can be found in that template and on the [[Valve Developer Community:Alternative Languages]]. Many new languages (such as {{Flag|el}} Greek and {{Flag|vi}} Vietnamese) are only supported in {{T|MultiPage}}.<br>While {{T|MultiPage}} has been made to replace {{T|Lang}} (this template), there was some downsides from using this templates, such as requring users to purge so the newly edited (or translated) text will show up on the main page, so we recommend existing pages keep using this templates, until there is a proper replacement (see Todo below).<br><br><!-- You can help us converting {{T|Lang}} to {{T|MultiPage}} by checking old pages using Lang template at [[:Category:Pages using Lang|Pages using Lang category]] and in the [https://developer.valvesoftware.com/w/index.php?title=Special%3AWhatLinksHere&hideredirs=1&hidelinks=1&target=Template%3ALang&namespace=0 Pages that link to "Template:Lang"].--></big> | ||
Line 8: | Line 6: | ||
{{Warning|If you are moving the page, you '''MUST''' move the respective language page and edit the template on main page and put the new title on it aswell in order to prevent issues.}} | {{Warning|If you are moving the page, you '''MUST''' move the respective language page and edit the template on main page and put the new title on it aswell in order to prevent issues.}} | ||
{{Doc}}<onlyinclude><includeonly | {{Doc}}<onlyinclude><includeonly>{{LanguageBar|{{#if:{{{title|}}}| title}} = {{{title}}}}}</includeonly></onlyinclude> | ||
<includeonly><onlyinclude>[[Category:Pages using Lang]]</onlyinclude></includeonly> | <includeonly><onlyinclude>[[Category:Pages using Lang]]</onlyinclude></includeonly> |
Revision as of 08:23, 12 July 2024

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Template pages should use {{Autolang}} or a Strings subpage on template pages, and to preview translations use {{Uselangflags}} surrounded by <noinclude>. Documentation on how to use it can be found in that template and on the Valve Developer Community:Alternative Languages. Many new languages (such as
Greek and
Vietnamese) are only supported in {{MultiPage}}.
While {{MultiPage}} has been made to replace {{Lang}} (this template), there was some downsides from using this templates, such as requring users to purge so the newly edited (or translated) text will show up on the main page, so we recommend existing pages keep using this templates, until there is a proper replacement (see Todo below).

You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Template pages should use {{Autolang}} or a Strings subpage on template pages, and to preview translations use {{Uselangflags}} surrounded by <noinclude>. Documentation on how to use it can be found in that template and on the Valve Developer Community:Alternative Languages. Many new languages (such as


While {{MultiPage}} has been made to replace {{Lang}} (this template), there was some downsides from using this templates, such as requring users to purge so the newly edited (or translated) text will show up on the main page, so we recommend existing pages keep using this templates, until there is a proper replacement (see Todo below).
Todo: See Template_talk:Lang#Un-Deprecating Lang. Undeprecating Lang and add some features which was used in {{MultiPage}}, such as more languages (including changing zh-cn to zh), pages using /lang instead of :lang which makes it easier to find language subpages on "Page information", aswell as adding new languages, all without requiring users to purge the page. A work in progress replacement for both {{Lang}} and {{MultiPage}} called {{Lang2}} is in development.

The above documentation is transcluded from Template:Lang/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.