Template:Doc: Difference between revisions
Jump to navigation
Jump to search
{{:Template:Doc/docTemplate:Uselang/old}}
(I guess determining language by interface can remain for template doc pages since we want to keep templates themselves universal) |
(hmm) |
||
Line 8: | Line 8: | ||
| #default = | | #default = | ||
<div style="clear:both; margin-top:1em; border:1px solid #505050; background-color:#323232; border-radius:2px"> | <div style="clear:both; margin-top:1em; border:1px solid #505050; background-color:#323232; border-radius:2px"> | ||
<div style="width:100%"><div style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px; flex-direction:{{#switch:{{ | <div style="width:100%"><div style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px; flex-direction:{{#switch:{{uselang/old}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=row-reverse| align=right|#default=row"}}><div style="display:flex; flex-direction:{{#switch:{{uselang/old}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=row-reverse|#default=row}}; align-items:center; font-size:1.2em; color:#D8D8D8;">{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}} | ||
| #default = {{Doc/strings|documentation}} | | #default = {{Doc/strings|documentation}} | ||
| Template = <span style="{{#switch:{{ | | Template = <span style="{{#switch:{{uselang/old}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=padding-left|#default=padding-right}}:6px;pointer-events:none;user-select:none;">[[File:Curly_brackets_white.png|32px|link=]]</span>{{autolang|1=Template Documentation|eo=Ŝablona Prio|es=Documentación de las plantillas|ru=Документация шаблона|zh=模板文档|ka=თარგი დოკუმენტაცია|de=Vorlagendokumentation}} | ||
| File = {{Doc/strings|Summary}} | | File = {{Doc/strings|Summary}} | ||
| User = {{Doc/strings|About}} | | User = {{Doc/strings|About}} | ||
Line 20: | Line 20: | ||
-->{{#switch:{{{tools|}}}|#default= | -->{{#switch:{{{tools|}}}|#default= | ||
{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | {{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }} }} | ||
|<!-- | |<!-- | ||
view button | view button | ||
-->{{#if:{{{content{{ | -->{{#if:{{{content{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}| }}}||<div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px"><div style="position: relative; top: -1.5px; ">[[File:Icon-visibility.png|14px|link={{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}|{{int:view}}]]</div></div><!-- | ||
edit button | edit button | ||
--><div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px"><div style="position: relative; top: -1.5px; ">[[File:Icon-edit.png|14px|link={{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | --><div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px"><div style="position: relative; top: -1.5px; ">[[File:Icon-edit.png|14px|link={{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}|action=edit}}|{{int:edit}}]]</div></div><!-- | ||
history button | history button | ||
--><div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px"><div style="position: relative; top: -1.5px; ">[[File:Icon-history.png|14px|link={{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | --><div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px"><div style="position: relative; top: -1.5px; ">[[File:Icon-history.png|14px|link={{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}|action=history}}|{{int:history}}]]</div></div>}} | ||
|<!-- | |<!-- | ||
create button | create button | ||
-->{{#if:{{{content{{ | -->{{#if:{{{content{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}| }}}||<div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px"><div class="plainlinks" style="position: relative; top: -1.5px; ">[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}|action=edit&preload={{urlencode:{{{docpage|{{#ifexist:{{FULLPAGENAME}}/doc|{{FULLPAGENAME}}/doc|{{#ifexist:Template:Doc/preload{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}|Template:Doc/preload{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }}|Template:Doc/preload}} }} }}} }} }} [[File:Icon-add.png|link=|16px|{{int:create}}]]]</div></div>}} }} | ||
{{#switch:{{{tools|}}}|#default= | {{#switch:{{{tools|}}}|#default= | ||
<div class="mw-customtoggle-doctools" style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px">'''…'''</div> | <div class="mw-customtoggle-doctools" style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px">'''…'''</div> | ||
Line 52: | Line 52: | ||
--></span></div><!-- | --></span></div><!-- | ||
--></div> | --></div> | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-language" 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:1000; right:{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-language" 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:1000; right:{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}} }} }}|126px|68px}}; "><!-- | ||
--><div style="overflow-y:auto;max-height:200px;padding:2px 6px; "><span class=plainlinks><!-- | --><div style="overflow-y:auto;max-height:200px;padding:2px 6px; "><span class=plainlinks><!-- | ||
Line 85: | Line 85: | ||
--></span></div><!-- | --></span></div><!-- | ||
--></div> | --></div> | ||
{{{content{{ | {{{content{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}}}}|{{{content|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}}}}}} | ||
|{{#ifexist: {{FULLPAGENAME}}/strings|{{Strings notice}}|}}{{#ifexist: {{FULLPAGENAME}}/testcases|{{Testcase notice}}|}}{{:{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | |{{#ifexist: {{FULLPAGENAME}}/strings|{{Strings notice}}|}}{{#ifexist: {{FULLPAGENAME}}/testcases|{{Testcase notice}}|}}{{:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}}}}}} | ||
|{{metanotice|id=[[file:Info.png|45px]]|rgb=0, 127, 242|style=padding:7px;margin-top:14px|text={{Doc/strings|PageNotExist}}}} | |{{metanotice|id=[[file:Info.png|45px]]|rgb=0, 127, 242|style=padding:7px;margin-top:14px|text={{Doc/strings|PageNotExist}}}} | ||
{{#ifexist: {{FULLPAGENAME}}/strings|{{Strings notice}}|}}{{:{{{docpage|{{FULLPAGENAME}}/doc}}}}}}}}}}}}} | {{#ifexist: {{FULLPAGENAME}}/strings|{{Strings notice}}|}}{{:{{{docpage|{{FULLPAGENAME}}/doc}}}}}}}}}}}}} | ||
Line 109: | Line 109: | ||
| 4 = {{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]] | | 4 = {{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]] | ||
|text={{Doc/strings|MultiDocsp}}}}[[Category:Template documentation pages]] | |text={{Doc/strings|MultiDocsp}}}}[[Category:Template documentation pages]] | ||
}}{{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | }}{{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}}}}|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:2px; padding:0.4em 1em; margin-top:1em;"> | ||
''{{Doc/strings|transcluded}}'' <small>([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{ | ''{{Doc/strings|transcluded}}'' <small>([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}}}}|action=edit}} {{Autolang|edit|zh=编辑}}] {{!}} [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none={{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uselang/old|pref=/|default-none=1}}|1|0}}}}|action=history}} {{Autolang|history|zh=页面历史}}])</small><br> | ||
''{{Doc/strings|Sandbox}}''<br> | ''{{Doc/strings|Sandbox}}''<br> | ||
''{{Doc/strings|Cat}}'' | ''{{Doc/strings|Cat}}'' |
Revision as of 22:54, 13 July 2024
Todo: Exclude Sandbox subpage and other from this template. Also do some code cleanup.
Todo: Fix the document page does not exist bug after changes to MultiPage.


This template (and its redirect) is
Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Use #switch parser function instead. Example

You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
}}

This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.
This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.
You can test how this page looks with it's different skins and parsers.