Template:Lang: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ModernBug|Creating language pages for categories using a special block is broken, since there is no colon before the link, which is why the link to create a language page turns into a category. So far, this block is disabled for this namespace. | {{ModernBug|Creating language pages for categories using a special block is broken, since there is no colon before the link, which is why the link to create a language page turns into a category. So far, this block is disabled for this namespace.}}{{doc}}<onlyinclude><includeonly><!-- | ||
-->{{DISPLAYTITLE:{{#if:{{{notitle|}}} | -->{{DISPLAYTITLE:{{#if:{{{notitle|}}} | ||
|<span style=display:none>{{{notitle}}}</span> | |<span style=display:none>{{{notitle}}}</span> | ||
Line 8: | Line 8: | ||
}}<!-- | }}<!-- | ||
-->}} | -->}} | ||
<div style="display:flex; gap:4px; width:calc(100% + 4px);{{#if:{{{notitle|}}}|background-color:#262626;|}}user-select:none; pointer-events: none; position:absolute; 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|<nowiki>The deprecated {{otherlang2}} is used. Please use {{lang}} instead.</nowiki>|!}}</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|<nowiki>The deprecated {{otherlang2}} is used. Please use {{lang}} instead.</nowiki>|!}}</span>|}}<!-- |
Revision as of 00:19, 13 February 2023
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.