Template:Lang: Difference between revisions
Jump to navigation
Jump to search
Notice
(Maybe gonna kept this combined for now. Gonna try Important.) |
m (Tl -> Tl2 / Tlc) |
||
Line 2: | Line 2: | ||
| rgb = 255, 22, 61 | | rgb = 255, 22, 61 | ||
| id = [[File:Warning_icon.png|36px|link=]] <br>'''Notice''' | | id = [[File:Warning_icon.png|36px|link=]] <br>'''Notice''' | ||
| text = <big>'''This translation template is slowly being deprecated, it's highly recommended that newer pages and categories should be created with {{ | | text = <big>'''This translation template is slowly being deprecated, it's highly recommended that newer pages and categories should be created with {{tl2|MultiPage}} instead of {{tlc|Lang}}, and templates should use {{tl2|Autolang}}. Documentation on how to use it can be found in that template. Many new languages (such as {{Flag|el}} Greek and {{Flag|vi}} Vietnamese) are only supported in {{tlc|MultiPage}}.'''<br><br>You can help us converting {{tlc|Lang}} to {{tlc|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 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 {{tl2|otherlang2}} is used. Please use {{tlc|MultiPage}} instead.|vi=Cái bản mẫu cũ {{tl2|otherlang2}} đang được sử dụng. Xin vui lòng hãy sử dụng {{tlc|MultiPage}}.|zh=已弃用模板 {{tl2|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, 9 September 2023

Notice
This translation template is slowly being deprecated, it's highly recommended that newer pages and categories should be created with {{MultiPage}} instead of
Greek and
Vietnamese) are only supported in
You can help us converting
{{Lang}}
, and templates should use {{Autolang}}. Documentation on how to use it can be found in that template. Many new languages (such as 

{{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".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.