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

Consider discussing changes on the talk page before implementing them.
No edit summary |
(I looked everywhere for that opening span, it probably doesn't have the opening span.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 64: | 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 136: | 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 181: | 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.