Template:Lang: Difference between revisions
Jump to navigation
Jump to search
Note:This template is gradually approaching the role of an deprecated template.
Use
Greek and
Vietnamese for example.
Please help us converting from
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
<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 {{tl|otherlang2}} is used. Please use {{tl| | --><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 {{tl|link=otherlang2}} is used. Please use {{tl|MultiPage}} instead.|vi=Cái bản mẫu cũ {{tl|link=otherlang2}} đang được sử dụng. Xin vui lòng hãy sử dụng {{tl|MultiPage}}.|zh=已弃用模板 {{tl|link=otherlang2}} 已使用。请使用 {{tl|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}}<!-- | ||
Line 129: | Line 129: | ||
--><span class=plainlinks style="display:flex; justify-content:center; width:20px; height:100%; font-size:10px" title="{{int:actions}}"><div style="position: relative; top:-3.5px; color:rgb(255,255,255);">'''...'''</div></span></center> | --><span class=plainlinks style="display:flex; justify-content:center; width:20px; height:100%; font-size:10px" title="{{int:actions}}"><div style="position: relative; top:-3.5px; color:rgb(255,255,255);">'''...'''</div></span></center> | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-editaction" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255, 255, 255, 0.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:text; position:absolute; z-index:1001; right:0px; top:26px"><div style="overflow-y:auto;max-height:200px;padding:2px 6px;"><span class=plainlinks> | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-editaction" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255, 255, 255, 0.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:text; position:absolute; z-index:1001; right:0px; top:26px"><div style="overflow-y:auto;max-height:200px;padding:2px 6px;"><span class=plainlinks> | ||
<div>{{Warning|This template will soon be deprecated. Please transition to {{tl|MultiPage}} if possible.}}</div> | |||
<div>[[File:Icon-edit.png|link=|16px]] [{{fullurl:{{FULLPAGENAME}}|action=edit}} {{ucfirst:{{int:edit}}}}]</div> | <div>[[File:Icon-edit.png|link=|16px]] [{{fullurl:{{FULLPAGENAME}}|action=edit}} {{ucfirst:{{int:edit}}}}]</div> | ||
<div>[[File:Icon-history.png|link=|16px]] [{{fullurl:{{FULLPAGENAME}}|action=history}} {{ucfirst:{{int:history}}}}]</div> | <div>[[File:Icon-history.png|link=|16px]] [{{fullurl:{{FULLPAGENAME}}|action=history}} {{ucfirst:{{int:history}}}}]</div> |
Revision as of 09:40, 20 May 2023

{{MultiPage}}
and/or {{Uselangflags}}
+ {{autolang}}
will be used instead.Use
{{lang}}
only if there's any issues when using MultiPage or Autolang, such as Category pages. Most of the new languages are only supported in {{MultiPage}}
, such as 

Please help us converting from
{{lang}}
to {{MultiPage}}
and/or {{Uselangflags}}
by checking the Pages using Lang category and in the Pages that link to "Template:Lang". Always use {{Autolang}}
for category instead. Do not use {{MultiPage}}
on Categories.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.