Template:Language/archives/MultiPage: Difference between revisions
Jump to navigation
Jump to search
Warning:Do not use this template on template pages![Elaborate?] Instead use {{Autolang}} for translations, and for previewing languages on template pages, uses "{{Uselangflags}}" with noinclude.
mNo edit summary |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
{{Doc}} | {{Doc}} | ||
</noinclude><!-- Workaround to prevent ({{#if: ) showing on the page. --> | </noinclude><!-- Workaround to prevent ({{#if: ) showing on the page. --> | ||
<includeonly><onlyinclude>{{DISPLAYTITLE:{{{title:{{uselang}}|{{{title|{{FULLPAGENAME}}}}}}}}|noreplace}}<div style="direction:{{ | <includeonly><onlyinclude>{{DISPLAYTITLE:{{{title:{{uselang}}|{{{title|{{FULLPAGENAME}}}}}}}}|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({{#ifeq:{{FULLPAGENAME}}|Main Page|-6|-17}}px - {{{up|{{#ifeq:{{ROOTPAGENAME}}|{{SUBPAGENAME}}|0|9}}}}}px); left:-4px"><!-- | ||
- Flags - | - Flags - | ||
--><div style="height:19px; background-color:{{#ifeq:{{FULLPAGENAME}}|Main Page|transparent|#262626}}; border:1px solid #65635F; border-bottom:0;{{#ifeq:{{FULLPAGENAME}}|Main Page|border-color:transparent;|}}border-radius:3px 3px 0 0; pointer-events:all; margin-{{ | --><div style="height:19px; background-color:{{#ifeq:{{FULLPAGENAME}}|Main Page|transparent|#262626}}; border:1px solid #65635F; border-bottom:0;{{#ifeq:{{FULLPAGENAME}}|Main Page|border-color:transparent;|}}border-radius:3px 3px 0 0; pointer-events:all; margin-{{text-dir|ltr=left|rtl=right}}:auto"><!-- Remember to sort the language codes from A to Z. Don't forget to update the "Currently Supported Languages" section once you added new languages here. | ||
-->{{MultiPage/flag}}<!-- English | -->{{MultiPage/flag}}<!-- English | ||
-->{{MultiPage/flag|ca|Catalan}}<!-- | -->{{MultiPage/flag|ca|Catalan}}<!-- | ||
Line 44: | Line 44: | ||
--><div style=pointer-events:all> | --><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}}"><span style="display:flex; justify-content:center; width:20px; height:100%" title="{{int:allmessages-filter-translate}}"><div style="position: relative; top:-2px;">[[File:Icon-translate.png|link=|12px]]</div></span></center> | <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:20px; height:100%" title="{{int:allmessages-filter-translate}}"><div style="position: relative; top:-2px;">[[File:Icon-translate.png|link=|12px]]</div></span></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; {{ | <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; {{text-dir|ltr=right|rtl=left}}:calc({{#if:{{{altEditButton|}}}|26px|52px}} + {{{margin-right|0px}}}); top:26px"><div style="overflow-y:auto;max-height:200px;padding:2px 6px;"><span class=plainlinks> | ||
<div>{{Flag|en}} {{#ifexist:{{FULLPAGENAME}}/en|[[:{{FULLPAGENAME}}/en|{{ucfirst:{{#language:en}}}}]]|[{{fullurl:{{FULLPAGENAME}}/en|action=edit&preload={{urlencode:Template:MultiPage/preload}}}} <span style="color:rgb(214,75,75);">{{ucfirst:{{#language:en}}}}</span>]}}</div> | <div>{{Flag|en}} {{#ifexist:{{FULLPAGENAME}}/en|[[:{{FULLPAGENAME}}/en|{{ucfirst:{{#language:en}}}}]]|[{{fullurl:{{FULLPAGENAME}}/en|action=edit&preload={{urlencode:Template:MultiPage/preload}}}} <span style="color:rgb(214,75,75);">{{ucfirst:{{#language:en}}}}</span>]}}</div> | ||
<div>{{Flag|ca}} {{#ifexist:{{FULLPAGENAME}}/ca|[[:{{FULLPAGENAME}}/ca|{{ucfirst:{{#language:ca}}}}]]|[{{fullurl:{{FULLPAGENAME}}/ca|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}} <span style="color:rgb(214,75,75);">{{ucfirst:{{#language:ca}}}}</span>]}}</div> | <div>{{Flag|ca}} {{#ifexist:{{FULLPAGENAME}}/ca|[[:{{FULLPAGENAME}}/ca|{{ucfirst:{{#language:ca}}}}]]|[{{fullurl:{{FULLPAGENAME}}/ca|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}} <span style="color:rgb(214,75,75);">{{ucfirst:{{#language:ca}}}}</span>]}}</div> | ||
Line 90: | Line 90: | ||
--><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> | --><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> | </center> | ||
<div class="mw-collapsible mw-collapsed plainlinks" id="mw-customcollapsible-editaction" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255,255,255,.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:none; position:absolute; z-index:1001; {{ | <div class="mw-collapsible mw-collapsed plainlinks" id="mw-customcollapsible-editaction" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255,255,255,.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:none; position:absolute; z-index:1001; {{text-dir|ltr=right|rtl=left}}:calc(0px + {{{margin-right|0px}}}); top:26px"> | ||
<div style="overflow-y:auto; max-height:200px; padding:2px 6px"> | <div style="overflow-y:auto; max-height:200px; padding:2px 6px"> | ||
<div style="display:flex; align-items:center; margin-bottom:3px">[[File:Icon-visibility.png|18px|link={{FULLPAGENAME}}/{{uselang}}|{{int:view}}]] [{{fullurl:{{FULLPAGENAME}}/{{uselang}}}} <span style="color: white;">{{ucfirst:{{int:view}}}}</span>]</div> | <div style="display:flex; align-items:center; margin-bottom:3px">[[File:Icon-visibility.png|18px|link={{FULLPAGENAME}}/{{uselang}}|{{int:view}}]] [{{fullurl:{{FULLPAGENAME}}/{{uselang}}}} <span style="color: white;">{{ucfirst:{{int:view}}}}</span>]</div> |
Revision as of 09:39, 18 August 2023

The above documentation is transcluded from Template:Language/archives/MultiPage/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.