Template:Doc: Difference between revisions
Jump to navigation
Jump to search

Consider discussing changes on the talk page before implementing them.
No edit summary Tag: Reverted |
(I looked everywhere for that opening span, it probably doesn't have the opening span.) |
||
(6 intermediate revisions by one other user not shown) | |||
Line 7: | Line 7: | ||
<onlyinclude>{{Doc/templateusecategory}}{{#if:{{{content|}}}|[[Category:Documentation using content parameter]]}}{{ulf|all-lang=1}}{{#switch:{{{1|}}} | <onlyinclude>{{Doc/templateusecategory}}{{#if:{{{content|}}}|[[Category:Documentation using content parameter]]}}{{ulf|all-lang=1}}{{#switch:{{{1|}}} | ||
| #default = | | #default = <div style="clear:both; margin-top:1em; border:1px solid #505050; background-color:#323232; border-radius:2px; scrollbar-color: #686868 #424242 !important;"><!-- | ||
<div style="clear:both; margin-top:1em; border:1px solid #505050; background-color:#323232; border-radius:2px; scrollbar-color: #686868 #424242 !important;"><!-- | |||
--><div style="width:100%"><!-- | --><div style="width:100%"><!-- | ||
--><div style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px; flex-direction:{{#switch:{{intlang}}|he=row-reverse| align=right|#default=row}}"><!-- | --><div style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px; flex-direction:{{#switch:{{intlang}}|he=row-reverse| align=right|#default=row}}"><!-- | ||
Line 65: | Line 64: | ||
| #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> | | #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> | ||
|1= | |1= | ||
}}<!-- ##### switch:TOOLS (2) ##### -- | }}<!-- ##### switch:TOOLS (2) ##### --> | ||
|0= | |0= | ||
}}<!-- ##### switch:TOOLS (1) ##### | }}<!-- ##### switch:TOOLS (1) ##### | ||
Line 86: | Line 85: | ||
------------------------------ Languages area ------------------------------ | ------------------------------ Languages area ------------------------------ | ||
--> | --><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}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}} }} }}|126px|68px}}; "><!-- | ||
<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}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|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"><!-- | ||
******************** TODO: Probably do a for each thing for flags ******************** | ******************** TODO: Probably do a for each thing for flags ******************** | ||
Line 138: | Line 136: | ||
--------------- Doc transclusion --------------- | --------------- Doc transclusion --------------- | ||
The "if" should be on a new line, or some tags, like == header == wont appear as a header | The "if" should be on a new line, or some tags, like == header == wont appear as a header | ||
-->{{#if: {{{content{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}|}}} | --> | ||
{{#if: {{{content{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}|}}} | |||
| {{{content{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}}} | | {{{content{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}}} | ||
| {{#if: {{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}} | | {{#if: {{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}} | ||
Line 146: | Line 145: | ||
|DocParam1={{{DocParam1|}}}|DocParam2={{{DocParam2|}}}|DocParam3={{{DocParam3|}}}|DocParam4={{{DocParam4|}}}|DocParam5={{{DocParam5|}}} }} | |DocParam1={{{DocParam1|}}}|DocParam2={{{DocParam2|}}}|DocParam3={{{DocParam3|}}}|DocParam4={{{DocParam4|}}}|DocParam5={{{DocParam5|}}} }} | ||
}}<!-- ##### if:PROTECTIONEXPIRY ##### --> | }}<!-- ##### if:PROTECTIONEXPIRY ##### --> | ||
}}<!-- ##### if:CONTENT ##### --> | }}<!-- ##### if:CONTENT ##### --></div></div><!-- | ||
</div></div><!-- | |||
------------------------------ doc/subpage translations | switch function at first line of the template ------------------------------ | ------------------------------ doc/subpage translations | switch function at first line of the template ------------------------------ | ||
Line 184: | Line 182: | ||
}}<!-- ##### INTLANG ##### --> | }}<!-- ##### INTLANG ##### --> | ||
|action=history}} {{int:History}}])</small><br>''{{Doc/strings|Sandbox}}''</div> | |action=history}} {{int:History}}])</small><br>''{{Doc/strings|Sandbox}}''</div> | ||
| | |}}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude> | ||
}}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude> | |||
</includeonly>__NOTOC__ | </includeonly>__NOTOC__ |
Latest revision as of 11:01, 1 September 2025

This template is used on approximately 1,800 pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.Consider discussing changes on the talk page before implementing them.
Todo: Exclude Sandbox subpage and other from this template. Also do some code cleanup.
Todo: Make this code less shitty.
Todo: Decide what to do with the View button on the right side of the "hat".
The above documentation is transcluded from Template:Doc/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.