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.
Bug:Causes some pages, such as List of Team Fortress 2 console commands and variables to not render because of too many templates included. [todo tested in ?]
(testing if reordering fixes a forced line break before page contents) |
(Undo revision 345781 by Pee (talk) that specifically didnt work, might be worth trying something similar. undoing to improve readability) Tag: Undo |
||
Line 4: | Line 4: | ||
{{Doc}} | {{Doc}} | ||
</noinclude><!-- Workaround to prevent ({{#if: ) showing on the page. --> | </noinclude><!-- Workaround to prevent ({{#if: ) showing on the page. --> | ||
<includeonly><onlyinclude | <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 - | ||
Line 113: | Line 101: | ||
</div> | </div> | ||
</div> | </div> | ||
</div></onlyinclude></includeonly> | </div><!-- | ||
- Language subpage not found - | |||
-->{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}{{uselang|pref=/|default-none={{{no-en-subpage|}}}}}}}||{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/en}} | |||
|<div style="display:flex; background-color:rgb(255 167 38 / 5%); border:1px solid rgba(255 167 38 / 30%); border-left:4px solid #FFA726; border-radius:3px; padding:10px; margin-bottom:6px">{{MultiPage/strings|OtherLangSubpageNotFound}}</div> | |||
|<div style="display:flex; background-color:rgb(255 167 38 / 5%); border:1px solid rgba(255 167 38 / 30%); border-left:4px solid #FFA726; border-radius:3px; padding:10px; margin-bottom:6px">{{MultiPage/strings|{{#if:{{{no-en-subpage|}}}|Other}}LangSubpageNotFound}}<br>{{MultiPage/strings|LangSubpageNotPurged}}</div> | |||
}}<!-- | |||
-->}} | |||
{{#if:{{{no-en-subpage|}}}|{{#switch:{{uselang}}|#default={{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/{{uselang}}}}|{{{page|{{ {{UselangSubpage}} }} }}} | |||
<div style="display: none"> | |||
|}}|en=}}| {{{page|{{ {{UselangSubpage}} }} }}} }}</onlyinclude></includeonly> |
Revision as of 16:32, 8 September 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.