Template:Language/archives/MultiPage: Difference between revisions
Jump to navigation
Jump to search
Warning:Do not use this template on template pages! We are working towards having universal templates for all languages, meaning that we no longer need "<template name>:<lang code>", and we can just use an automatically translated template. Using this translation method would undermine all the work we have been putting in for months now. Instead, use {{Autolang}} for translations, and for previewing languages on template pages, uses "{{Uselangflags}}" with noinclude. This will allow for automatically changing the language used in the template while not creating 8 different pages for one template.
Bug:Causes some pages, such as List of Team Fortress 2 console commands and variables to not render because of too many templates included.
Workaround:Copy/Paste the following instead of [todo tested in ?]
No edit summary |
1416006136 (talk | contribs) m (added unique id for the collapsible contents) |
||
Line 58: | Line 58: | ||
--><div style=pointer-events:all> | --><div style=pointer-events:all> | ||
<center class="mw-customtoggle- | <center class="mw-customtoggle-LanguageFlags-of-multipage" 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- | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-LanguageFlags-of-multipage" 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><!-- RECOMMENDED: PLEASE SORT THE LANGUAGE CODE FROM A-Z (except ENGLISH). --> | ||
<div>{{Flag|en}} {{#if:{{{no-en-subpage|}}}|{{#ifeq:{{uselang}}|en|'''{{#language:en}}'''|[{{fullurl:{{FULLPAGENAME}}|uselang=en}} {{#language: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}} {{#if:{{{no-en-subpage|}}}|{{#ifeq:{{uselang}}|en|'''{{#language:en}}'''|[{{fullurl:{{FULLPAGENAME}}|uselang=en}} {{#language: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 99: | Line 99: | ||
-->{{#if:{{{altEditButton|}}}||<div style="pointer-events:all; {{#if:{{{margin-right|}}}|margin-right:{{{margin-right}}}}}"> | -->{{#if:{{{altEditButton|}}}||<div style="pointer-events:all; {{#if:{{{margin-right|}}}|margin-right:{{{margin-right}}}}}"> | ||
<center class="mw-customtoggle-editbutton" 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%"><div style="position: relative; top:-1px;">[[File:Icon-edit.png|link={{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}|14px|{{int:edit}}|{{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}}}|14px|{{int:edit}}]]</div></span></center> | <center class="mw-customtoggle-editbutton-of-multipage" 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%"><div style="position: relative; top:-1px;">[[File:Icon-edit.png|link={{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}|14px|{{int:edit}}|{{#ifexist:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit}}|{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}|action=edit&preload={{urlencode:{{#ifexist:{{FULLPAGENAME}}/en|{{FULLPAGENAME}}/en|Template:MultiPage/preload}}}}}}}}}}|14px|{{int:edit}}]]</div></span></center> | ||
</div>}}<!-- | </div>}}<!-- | ||
Line 105: | Line 105: | ||
--><div style="pointer-events:all; {{#if:{{{margin-right|}}}|margin-right:{{{margin-right}}}}}"> | --><div style="pointer-events:all; {{#if:{{{margin-right|}}}|margin-right:{{{margin-right}}}}}"> | ||
<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-of-multipage" 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: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; {{text-dir|ltr=right|rtl=left}}:calc(0px + {{{margin-right|0px}}}); top:26px"> | <div class="mw-collapsible mw-collapsed plainlinks" id="mw-customcollapsible-editaction-of-multipage" 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|pref=/|default-none={{{no-en-subpage|}}}}}|{{int:view}}]] [{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}}} <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|pref=/|default-none={{{no-en-subpage|}}}}}|{{int:view}}]] [{{fullurl:{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}}} <span style="color: white;">{{ucfirst:{{int:view}}}}</span>]</div> |
Revision as of 16:52, 12 February 2024



{{MultiPage}}
on the affected pages:
This will allow the page to display properly and give the illusion of visual parity with other MultiPage pages. Make sure to visit {{Uselangflags}} for documentation about this template.
This SHOULD NOT be used unless absolutely necessary! This is only a temporary fix until we find a way to fix this issue!Todo: remove forced line break before page contents when text comes before this template.
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.