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.
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
{{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}}< | {{Doc}} | ||
<includeonly> | |||
<onlyinclude>{{LanguageBar|{{#if:{{{title|}}}| title}} = {{{title}}}}}{{#ifeq: {{NAMESPACE}} | Template | |||
| [[Category:TODO remove lang]] | |||
| [[Category:TODO rewrite lang to LanguageBar]] | |||
}}</onlyinclude> | |||
</includeonly> |
Revision as of 08:05, 26 August 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.
As of 2024, both templates are being superseded by {{LanguageBar}}, which use "prefix" instead of "suffix" for language codes.
As of 2024, both templates are being superseded by {{LanguageBar}}, which use "prefix" instead of "suffix" for language codes.

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.