Template:Language/archives/Lang2: Difference between revisions
Jump to navigation
Jump to search
(hopefully should work. Currently only support some langauges from Lang template. More MultiPage one would be added later, and lang codes would be sorted A-Z and other stuff fixed later.) |
No edit summary |
||
Line 8: | Line 8: | ||
|{{#switch:{{{select|}}}|#default={{{title|}}}|1=<span style="user-select:all;">{{{title|{{FULLPAGENAME}}}}}</span>}} | |{{#switch:{{{select|}}}|#default={{{title|}}}|1=<span style="user-select:all;">{{{title|{{FULLPAGENAME}}}}}</span>}} | ||
}} | }} | ||
}}<!-- | }}<!-- Change title stuff. | ||
-->}}}} | -->}}}} | ||
<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"><!-- | ||
Line 14: | Line 14: | ||
--><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>|}} <!-- | --><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>|}} <!-- | ||
-->{{ | -->{{Flag|en|link={{{1|{{FULLPAGENAME}}}}}}}</div><!-- TODO: remove this flag and use the drop down instead. | ||
--> | --> | ||
<div style=pointer-events:all> | |||
<center class="mw-customtoggle-content" style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:{{#if:{{{noborder|}}}|1|0}}; border-radius:{{#if:{{{noborder|}}}|3px|3px 3px 0 0}}"><!-- | <center class="mw-customtoggle-content" style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:{{#if:{{{noborder|}}}|1|0}}; border-radius:{{#if:{{{noborder|}}}|3px|3px 3px 0 0}}"><!-- | ||
--><span style="display:flex; justify-content:center; width: | --><span style="display:flex; justify-content:center; width:auto; height:100%" title="Select language"><div style="position: relative; top:-2px;"> [[File:Flag-{{pagelang}}.png|link=|16px]]</div> {{ucfirst:'''{{#language:{{Pagelang}}}}}}''' ▼ </span> | ||
</center> | </center> | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-content" 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:26px; 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-content" 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:26px; top:26px"><div style="overflow-y:auto;max-height:200px;padding:2px 6px;"><span class=plainlinks><!-- | ||
Line 128: | Line 79: | ||
--><div style=pointer-events:all> | --><div style=pointer-events:all> | ||
<center class="mw-customtoggle-editaction" style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:{{#if:{{{noborder|}}}|1|0}}; border-radius:{{#if:{{{noborder|}}}|3px|3px 3px 0 0}}"><!-- | <center class="mw-customtoggle-editaction" style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:{{#if:{{{noborder|}}}|1|0}}; border-radius:{{#if:{{{noborder|}}}|3px|3px 3px 0 0}}"><!-- | ||
--><span class=plainlinks style="display:flex; justify-content:center; width: | --><span class=plainlinks style="display:flex; justify-content:center; width:24px; height:100%; font-size:12px" 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 20px 30px 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 20px 30px 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>[[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> |
Revision as of 10:34, 3 July 2024
The above documentation is transcluded from Template:Language/archives/Lang2/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.