Template:LanguageBar/sandbox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{High-use}} {{Documentation}} <includeonly> <onlyinclude>{{#if:{{{title|}}}|{{DISPLAYTITLE:{{{title}}}|noerror}}|{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{SUBPAGE...") |
mNo edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><!-- | |||
< | |||
-->{{#if:{{{title|}}} | |||
| | | {{DISPLAYTITLE:{{{title}}}|noerror}} | ||
| {{#ifeq:{{NAMESPACE}}|Category||{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{SUBPAGENAME}}|noreplace}}}} | |||
}}<!-- | |||
--><div style="direction:{{text-dir|rtl=rtl}}; display:flex; gap:4px; width:calc(100% + 4px); user-select:none; pointer-events:none; position:absolute; z-index:100; top:calc(-17px - {{{up|{{#ifeq:{{{BASENAME}}}|{{SUBPAGENAME}}|0|9}}}}}px); left:-4px"><!-- | |||
</includeonly> | - Flags - | ||
--><div style="height:19px; background-color:#262626; border:1px solid #65635F; border-bottom:0;border-radius:3px 3px 0 0; pointer-events:all; margin-{{text-dir|ltr=left|rtl=right}}:auto"><!-- | |||
-->{{LanguageBar/foreach | |||
| 1 = LanguageBar/flagline | |||
| 2 = {{{base|{{#ifeq: {{pagelang}} | en | {{PAGENAME}} | {{#titleparts: {{PAGENAME}} | 25 | 2 }} }}}}} | |||
| separator = | |||
}}<!-- | |||
--></div></div><includeonly>[[Category:{{Language name|{{pagelang}}|en}}|{{{BASENAME}}}]]{{#ifeq:{{pagelang}}|en | |||
| | |||
| {{#if:{{{notranscat|}}}||{{ACategory|Translation}}}} | |||
}}</includeonly><!-- | |||
--></onlyinclude> |