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.
m (I was talking about one of the languages, which is Simplified Chinese through, not sure if this should be zh-cn or zh since MediaWiki supports both.) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Tdeprecated|MultiPage|notes= | ||
Template pages should use {{ | 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><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> | ||
}} | }} | ||
{{Todo|See [[Template_talk:Lang#Un-Deprecating Lang]]. Undeprecating Lang and add some features which was used in {{T|MultiPage}}, such as more languages (including changing {{ | {{Todo|See [[Template_talk:Lang#Un-Deprecating Lang]]. Undeprecating Lang and add some features which was used in {{T|MultiPage}}, such as more languages (including changing {{Code|zh-cn}} to {{Code|zh}}), pages using {{Code|/lang}} instead of {{Code|<nowiki>:lang</nowiki>}} which makes it easier to find language subpages on "Page information", aswell as adding new languages, all without requiring users to purge the page.}} | ||
{{ | {{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><!-- | ||
-->{{#if:{{{notitle|}}}{{{title|}}}{{{$title|}}}{{{select|}}}|{{DISPLAYTITLE:{{#if:{{{notitle|}}} | -->{{#if:{{{notitle|}}}{{{title|}}}{{{$title|}}}{{{select|}}}|{{DISPLAYTITLE:{{#if:{{{notitle|}}} | ||
Line 18: | Line 18: | ||
<div style="display:flex; gap:4px; width:calc(100% + 4px);{{#if:{{{notitle|}}}|background-color:#262626;|}}user-select:none; pointer-events: none; position:absolute; z-index:100; top:calc({{#if:{{{otherlang2_mainpage|}}}|0px|-17px}} - {{{up|{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|1}}|{{#titleparts:{{FULLPAGENAME}}|1|-1}}|0|9}}}}}px); left:-4px"><!-- | <div style="display:flex; gap:4px; width:calc(100% + 4px);{{#if:{{{notitle|}}}|background-color:#262626;|}}user-select:none; pointer-events: none; position:absolute; z-index:100; top:calc({{#if:{{{otherlang2_mainpage|}}}|0px|-17px}} - {{{up|{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|1}}|{{#titleparts:{{FULLPAGENAME}}|1|-1}}|0|9}}}}}px); left:-4px"><!-- | ||
--><div style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:0;{{#if:{{{noborder|}}}|border-color:transparent;}}border-radius:3px 3px 0 0; pointer-events: all; margin-left: auto">{{#if:{{{otherlang2|}}}|<span style="height: 100%; pointer-events:all; cursor:help; position:absolute; padding:0 4px; right:-16px">{{tooltip|{{autolang|The deprecated {{ | --><div style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:0;{{#if:{{{noborder|}}}|border-color:transparent;}}border-radius:3px 3px 0 0; pointer-events: all; margin-left: auto">{{#if:{{{otherlang2|}}}|<span style="height: 100%; pointer-events:all; cursor:help; position:absolute; padding:0 4px; right:-16px">{{tooltip|{{autolang|The deprecated {{T||Otherlang2}} is used. Please use {{tlc|MultiPage}} instead.|vi=Cái bản mẫu cũ {{T||Otherlang2}} đang được sử dụng. Xin vui lòng hãy sử dụng {{tlc|MultiPage}}.|zh=已弃用模板 {{T||Otherlang2}} 已使用。请使用 {{tlc|MultiPage}} 代替。}}|!}}</span>|}}<!-- | ||
-->{{New flag icon|2|link1={{{1|{{FULLPAGENAME}}}}}|link2={{{2|}}}|link3={{{3|}}}|link4={{{4|}}}|link5={{{5|}}}|link6={{{6|}}}|link7={{{7|}}}|link8={{{8|}}}|c=English|uselang=en}}<!-- | -->{{New flag icon|2|link1={{{1|{{FULLPAGENAME}}}}}|link2={{{2|}}}|link3={{{3|}}}|link4={{{4|}}}|link5={{{5|}}}|link6={{{6|}}}|link7={{{7|}}}|link8={{{8|}}}|c=English|uselang=en}}<!-- |
Revision as of 03:14, 27 June 2024

This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{MultiPage}} instead.
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}}.
You can help us converting {{Lang}} to {{MultiPage}} by checking old pages using Lang template at Pages using Lang category and in the Pages that link to "Template:Lang".

Please use {{MultiPage}} instead.
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


You can help us converting {{Lang}} to {{MultiPage}} by checking old pages using Lang template at Pages using Lang category and in the Pages that link to "Template:Lang".
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.

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.