Template:Doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Dynamic flags; Reduced the gradient; Changed the appearance of additional buttons)
No edit summary
 
(213 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#switch:{{{1|}}}
{{High-use|approx=1,800}}
|#default=<span class="mw-editsection plainlinks" style=float:right><table cellspacing=0 style="width:100%;margin-bottom:-1px;"><tr>
{{todo|Exclude Sandbox subpage and other from this template. Also do some code cleanup.}}
{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}}}
{{todo|Make this code less shitty.}}
|{{#if:{{{content{{uilang|/}}|}}}||<td style="border-left:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%) 1;text-align:center;padding:8px;background:linear-gradient(0,#323232 10%,transparent 100%)">[[{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}|{{int:view}}]]</td>
{{doc}}
<td style="text-align:center;padding:8px;background:linear-gradient(0,#323232 10%,transparent 100%);border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%)">[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}|action=edit}} {{int:edit}}]</td>
<includeonly>
<td style="text-align:center;padding:8px;background:linear-gradient(0,#323232 10%,transparent 100%);border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%) 1">[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}|action=history}} {{int:history}}]</td>}}
<td style="text-align:center;padding:6px;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools>{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{#switch:{{uilang}}|#default=Sandbox|ru=Песочница}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}}} {{#switch:{{uilang}}|#default=Sandbox|ru=Песочница}}]}}</div></td>
<td style="text-align:center;padding:6px;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools>{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}| [[{{FULLPAGENAME}}/testcases|{{#switch:{{uilang}}|#default=Testcase|ru=Тестирование}}]] | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{#switch:{{uilang}}|#default=Testcase|ru=Тестирование}}]}}</div></td>
|{{#if:{{{content{{uilang|/}}|}}}||<td style="text-align:center;padding:8px;background:linear-gradient(0,#323232 10%,transparent 100%);border-left:1px solid;border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%) 1">[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}|action=edit}} {{int:create}}]</td>}}
}}
<td style="text-align:center;padding:6px;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools>[[Special:PrefixIndex/{{FULLPAGENAME}}/|{{#switch:{{uilang}}|#default=Subpages|ru=Под&shy;страницы}}]]</div></td>
<td style="text-align:center;padding:6px;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools>[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{#switch:{{uilang}}|#default=Purge|es=Purga|ru=Очистить кэш|zh-cn=清除缓存(刷新页面)|ka=წმენდს}}]</div></td>
<td class="mw-customtoggle-doctools" style="padding:8px;background:linear-gradient(0,#323232 50%,transparent 100%);border-left:1px solid;border-right:1px solid;border-image:linear-gradient(to top,#AAA,transparent 100%) 1 100%;height:14px">'''…'''</td>
</tr></table></span>
<div style="clear:both;margin-top:1em;border:1px solid #AAA;background:#323232;padding:1em">
<table cellspacing=0 width=100% style="margin:3px 0 10px 0;background:#323232">
<tr><td rowspan=2 style="border-bottom:1px solid #AAA;padding-bottom:3px;font-weight:bold;font-size:125%">{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}
|#default={{#switch:{{uilang}}|#default=Documentation|de=Dokumentation|es=Documentación|ru=Документация|zh-cn=文档}}
|Template=[[File:Curly_brackets_white.png|40px|link=]] {{#switch:{{uilang}}|#default=Template Documentation|es=Documentación de las plantillas|ru=Документация шаблона|zh-cn=模板文档|ka=თარგი დოკუმენტაცია}}
|File={{#switch:{{uilang}}|#default=Summary|es=Resumen|ru=Описание|zh-cn=摘要}}
|User={{#switch:{{uilang}}|#default=About}}
}}</td>{{#if:{{{nolang|}}}|<td></td></tr><tr><td></td></tr>|<td></td></tr>
<tr><td style="width:calc(20px * ({{#ifeq:{{uilang}}||1|{{#if:{{{content|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}}}|1|0}}}}}} + {{#ifeq:{{uilang}}|ca|1|{{#if:{{{content/ca|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ca}}|1|0}}}}}} + {{#ifeq:{{uilang}}|cs|1|{{#if:{{{content/cs|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/cs}}|1|0}}}}}} + {{#ifeq:{{uilang}}|de|1|{{#if:{{{content/de|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/de}}|1|0}}}}}} + {{#ifeq:{{uilang}}|es|1|{{#if:{{{content/es|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/es}}|1|0}}}}}} + {{#ifeq:{{uilang}}|et|1|{{#if:{{{content/et|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/et}}|1|0}}}}}} + {{#ifeq:{{uilang}}|fr|1|{{#if:{{{content/fr|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/fr}}|1|0}}}}}} + {{#ifeq:{{uilang}}|hu|1|{{#if:{{{content/hu|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/hu}}|1|0}}}}}} + {{#ifeq:{{uilang}}|it|1|{{#if:{{{content/it|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/it}}|1|0}}}}}} + {{#ifeq:{{uilang}}|nl|1|{{#if:{{{content/nl|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/nl}}|1|0}}}}}} + {{#ifeq:{{uilang}}|no|1|{{#if:{{{content/no|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/no}}|1|0}}}}}} + {{#ifeq:{{uilang}}|pl|1|{{#if:{{{content/pl|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/pl}}|1|0}}}}}} + {{#ifeq:{{uilang}}|pt|1|{{#if:{{{content/pt|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/pt}}|1|0}}}}}} + {{#ifeq:{{uilang}}|pt-br|1|{{#if:{{{content/pt-br|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/pt-br}}|1|0}}}}}} + {{#ifeq:{{uilang}}|ru|1|{{#if:{{{content/ru|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ru}}|1|0}}}}}} + {{#ifeq:{{uilang}}|uk|1|{{#if:{{{content/uk|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/uk}}|1|0}}}}}} + {{#ifeq:{{uilang}}|sv|1|{{#if:{{{content/sv|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/sv}}|1|0}}}}}} + {{#ifeq:{{uilang}}|tr|1|{{#if:{{{content/tr|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/tr}}|1|0}}}}}} + {{#ifeq:{{uilang}}|ja|1|{{#if:{{{content/ja|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ja}}|1|0}}}}}} + {{#ifeq:{{uilang}}|zh-cn|1|{{#if:{{{content/zh-cn|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/zh-cn}}|1|0}}}}}} + {{#ifeq:{{uilang}}|zh-tw|1|{{#if:{{{content/zh-tw|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/zh-tw}}|1|0}}}}}} + {{#ifeq:{{uilang}}|ko|1|{{#if:{{{content/ko|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ko}}|1|0}}}}}} + {{#ifeq:{{uilang}}|ka|1|{{#if:{{{content/ka|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ka}}|1|0}}}}}} + {{#ifeq:{{uilang}}|he|1|{{#if:{{{content/he|}}}|1|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/he}}|1|0}}}}}}));height:19px;border:1px solid #AAA;border-bottom:0"><!--


-->{{#ifeq:{{uilang}}||<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:En.png|link=|English]]</span></span>[[Category:English]]|{{#if:{{{content|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:En.png|link={{fullurl:{{FULLPAGENAME}}|uselang=en}}|English]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:En.png|link={{fullurl:{{FULLPAGENAME}}|uselang=en}}|English]]</span></span>}}}}}}<!--
<onlyinclude>{{Doc/templateusecategory}}{{#if:{{{content|}}}|[[Category:Documentation using content parameter]]}}{{ulf|all-lang=1}}{{#switch:{{{1|}}}
| #default = <div style="clear:both; margin-top:1em; border:1px solid #4F4F4F; background-color:#323232; border-radius:.3em; scrollbar-color: #686868 #424242 !important;"><!--
--><div style="width:100%"><!--
--><div style="display:flex; gap:8px; background:#4F4F4F; padding:.5em .55em .55em .8em; flex-direction:{{#switch:{{intlang}}|he=row-reverse| align=right|#default=row}}"><!--
--><div style="display:flex; flex-direction:{{#switch:{{intlang}}|he=row-reverse|#default=row}}; align-items:center; font-size:1.2em; color:#D8D8D8;"><!--
-->{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}
| #default = {{Doc/strings|documentation}}
| Template = <span style="{{#switch:{{intlang}}|he=padding-left|#default=padding-right}}:6px;pointer-events:none;user-select:none;">[[File:Curly_brackets_white.png|32px|link=]]</span><!--
-->{{#if:{{AVAILABLEDOCPAGENAME|{{{docpage|}}}}}
| '''{{Doc/strings|TemplateDoc}}'''&nbsp;&#91;[[{{AVAILABLEDOCPAGENAME|{{{docpage|}}}}}|{{lc:{{int:View}}}}]]&#93;
| '''{{Doc/strings|TemplateDoc}}'''&nbsp;&#91;[[{{DOCPAGENAME|{{{docpage|}}}}}|{{lc:{{int:View}}}}]]&#93;
}}&nbsp;<!--
-->{{#if: {{AVAILABLEDOCPAGENAME|translated=1|{{{docpage|}}}}}
| [{{PageCreateLink|create={{DOCPAGENAME|{{{docpage|}}}}}|alt={{lc:{{int:Edit}}}}}}]
| {{#if: {{AVAILABLEDOCPAGENAME|{{{docpage|}}}}}
| [{{PageCreateLink|create={{BASEDOCPAGENAME|{{{docpage|}}}}}|alt={{lc:{{int:Edit}}}}}}]<!--
--> [{{PageCreateLink|create={{DOCPAGENAME|{{{docpage|}}}}}|preload=Doc/preload{{intlang|pref=/}}|alt={{lc:{{int:create}}}}}}&nbsp;{{Flag|{{intlang}}}}]
| [{{PageCreateLink|create={{DOCPAGENAME|{{{docpage|}}}}}|preload=Doc/preload{{intlang|pref=/|default-none=1}}|alt={{lc:{{int:create}}}}}}]
}}
}}
| File = {{Doc/strings|Summary}}
| User = {{Doc/strings|About}}
}}</div><!--
--><div style="display:flex; gap:6px; margin-left:auto"><!--


-->{{#ifeq:{{uilang}}|ca|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Ca.png|link=|Català]]</span></span>[[Category:Catalan]]|{{#if:{{{content/ca|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ca.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ca}}|Català]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ca}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ca.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ca}}|Català]]</span></span>}}}}}}<!--
    ------------------------------ Language button ------------------------------


-->{{#ifeq:{{uilang}}|cs|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Cz.png|link=|Čeština]]</span></span>[[Category:Czech]]|{{#if:{{{content/cs|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Cz.png|link={{fullurl:{{FULLPAGENAME}}|uselang=cs}}|Čeština]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/cs}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Cz.png|link={{fullurl:{{FULLPAGENAME}}|uselang=cs}}|Čeština]]</span></span>}}}}}}<!--
--><div class="mw-customtoggle-language" 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:.3em; user-select:none; padding:0 4px">[[File:Icon-translate.png|link=|14px]]&nbsp;Available doc translations </div><!--


-->{{#ifeq:{{uilang}}|de|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:De.png|link=|Deutsch]]</span></span>[[Category:German]]|{{#if:{{{content/de|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:De.png|link={{fullurl:{{FULLPAGENAME}}|uselang=de}}|Deutsch]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/de}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:De.png|link={{fullurl:{{FULLPAGENAME}}|uselang=de}}|Deutsch]]</span></span>}}}}}}<!--
-->{{#switch:{{{tools|}}}
| #default = {{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}} }} }}
|<!--  


-->{{#ifeq:{{uilang}}|es|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Es.png|link=|Español]]</span></span>[[Category:Spanish]]|{{#if:{{{content/es|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Es.png|link={{fullurl:{{FULLPAGENAME}}|uselang=es}}|Español]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/es}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Es.png|link={{fullurl:{{FULLPAGENAME}}|uselang=es}}|Español]]</span></span>}}}}}}<!--
------------------------------ view button ------------------------------


-->{{#ifeq:{{uilang}}|et|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Et.png|link=|Eesti]]</span></span>[[Category:Estonian]]|{{#if:{{{content/et|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Et.png|link={{fullurl:{{FULLPAGENAME}}|uselang=et}}|Eesti]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/et}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Et.png|link={{fullurl:{{FULLPAGENAME}}|uselang=et}}|Eesti]]</span></span>}}}}}}<!--
-->{{#if:{{{content{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}} }}| }}}
|
|<!--  


-->{{#ifeq:{{uilang}}|fr|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Fr.png|link=|Français]]</span></span>[[Category:French]]|{{#if:{{{content/fr|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Fr.png|link={{fullurl:{{FULLPAGENAME}}|uselang=fr}}|Français]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/fr}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Fr.png|link={{fullurl:{{FULLPAGENAME}}|uselang=fr}}|Français]]</span></span>}}}}}}<!--
------------------------------ history button ------------------------------


-->{{#ifeq:{{uilang}}|hu|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Hu.png|link=|Magyar]]</span></span>[[Category:Hungarian]]|{{#if:{{{content/hu|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Hu.png|link={{fullurl:{{FULLPAGENAME}}|uselang=hu}}|Magyar]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/hu}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Hu.png|link={{fullurl:{{FULLPAGENAME}}|uselang=hu}}|Magyar]]</span></span>}}}}}}<!--
--><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:.3em; user-select:none; padding:0 4px"><!--
--><div style="position: relative; top:-1.5px; "><!--
-->[[File:Icon-history.png|14px|link={{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}} }}|action=history}}|{{int:history}}]]<!--
--></div><!--
--></div><!--
-->}}<!-- ##### if:PROTECTIONEXPIRY #####
-->}}<!-- ##### if:CONTENT #####


-->{{#ifeq:{{uilang}}|it|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:It.png|link=|Italiano]]</span></span>[[Category:Italian]]|{{#if:{{{content/it|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:It.png|link={{fullurl:{{FULLPAGENAME}}|uselang=it}}|Italiano]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/it}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:It.png|link={{fullurl:{{FULLPAGENAME}}|uselang=it}}|Italiano]]</span></span>}}}}}}<!--
------------------------------ more options button (...) ------------------------------


-->{{#ifeq:{{uilang}}|nl|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Nl.png|link=|Nederlands]]</span></span>[[Category:Dutch]]|{{#if:{{{content/nl|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Nl.png|link={{fullurl:{{FULLPAGENAME}}|uselang=nl}}|Nederlands]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/nl}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Nl.png|link={{fullurl:{{FULLPAGENAME}}|uselang=nl}}|Nederlands]]</span></span>}}}}}}<!--
-->{{#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:.3em; user-select:none; padding:0 4px">'''…'''</div>
|1=
}}<!-- ##### switch:TOOLS (2) ##### -->
|0=
}}<!-- ##### switch:TOOLS (1) #####  
--></div><!--
--></div><!--
--></div><!--  


-->{{#ifeq:{{uilang}}|no|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:No.png|link=|Norsk]]</span></span>[[Category:Norwegian]]|{{#if:{{{content/no|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:No.png|link={{fullurl:{{FULLPAGENAME}}|uselang=no}}|Norsk]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/no}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:No.png|link={{fullurl:{{FULLPAGENAME}}|uselang=no}}|Norsk]]</span></span>}}}}}}<!--
------------------------------ dropdown area ------------------------------


-->{{#ifeq:{{uilang}}|pl|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Pl.png|link=|Polski]]</span></span>[[Category:Polish]]|{{#if:{{{content/pl|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Pl.png|link={{fullurl:{{FULLPAGENAME}}|uselang=pl}}|Polski]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/pl}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Pl.png|link={{fullurl:{{FULLPAGENAME}}|uselang=pl}}|Polski]]</span></span>}}}}}}<!--
--><div style="padding:0.4em 1em; overflow:hidden"><!--
--><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-doctools" 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; right:8px; "><!--
--><div style="overflow-y:auto;max-height:200px;padding:2px 6px; "><span class="plainlinks"><!--
--><div>[[File:Icon-visibility.png|16px|link=]] [[Special:PrefixIndex/{{FULLPAGENAME}}/|{{Doc/strings|Subpages}}]]</div><!--
--><div>[[File:Strings icon.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}/strings|{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/strings}}||action=edit&preload={{urlencode:Template:Strings subpage/preload}}}}}} <span style="color:#648cc8;">{{Doc/strings|Strings}}</span>]</div><!--
--><div>{{#switch:{{{tools|}}}|#default=[[File:Icon-sandbox.png|16px|link=]] {{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{Doc/strings|SandboxButton}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}} }} }} {{Doc/strings|SandboxButton}}]}}</div><!--
--><div>{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}| [[{{FULLPAGENAME}}/testcases|{{Doc/strings|Testcase}}]] |[[File:Icon-task alt.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{Doc/strings|Testcase}}]}}|1=}}</div><!--
--></span></div><!--
--></div><!--  


-->{{#ifeq:{{uilang}}|pt|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Pt.png|link=|Português]]</span></span>[[Category:Portuguese]]|{{#if:{{{content/pt|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Pt.png|link={{fullurl:{{FULLPAGENAME}}|uselang=pt}}|Português]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/pt}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Pt.png|link={{fullurl:{{FULLPAGENAME}}|uselang=pt}}|Português]]</span></span>}}}}}}<!--
------------------------------ Languages area ------------------------------


-->{{#ifeq:{{uilang}}|pt-br|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Pt-br.png|link=|Português-Brasileiro]]</span></span>[[Category:Brazilian Portuguese]]|{{#if:{{{content/pt-br|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Pt-br.png|link={{fullurl:{{FULLPAGENAME}}|uselang=pt-br}}|Português-Brasileiro]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/pt-br}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Pt-br.png|link={{fullurl:{{FULLPAGENAME}}|uselang=pt-br}}|Português-Brasileiro]]</span></span>}}}}}}<!--
--><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"><!--
******************** TODO: Probably do a for each thing for flags ********************
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|en|English|content={{{content|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|eo|Esperanto|content={{{content/eo|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|ca|Catalan|content={{{content/ca|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|cs|Czech|content={{{content/cs|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|de|German|content={{{content/de|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|es|Spanish|content={{{content/es|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|et|Estonian|content={{{content/et|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|fr|French|content={{{content/fr|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|hr|Croatian|content={{{content/hr|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|hu|Hungarian|content={{{content/hu|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|it|Italian|content={{{content/it|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|nl|Dutch|content={{{content/nl|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|no|Norwegian|content={{{content/no|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|pl|Polish|content={{{content/pl|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|pt|Portuguese|content={{{content/pt|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|pt-br|Brazilian Portuguese|content={{{content/pt-br|}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|ru|Russian|content={{{content|ru}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|uk|Ukrainian|content={{{content|uk}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|sv|Swedish|content={{{content|sv}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|tr|Turkish|content={{{content|tr}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|ja|Japanese|content={{{content|ja}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|vi|Vietnamese|content={{{content|vi}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|zh|Chinese|content={{{content|zh}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|zh-tw|Taiwanese Mandarin|content={{{content|zh-tw}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|ko|Korean|content={{{content|ko}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|ka|Georgian|content={{{content|ka}}}}}</div><!--
--><div>{{Doc/flag|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}|show-lang-name=1|he|Hebrew|content={{{content|he}}}}}</div><!--


-->{{#ifeq:{{uilang}}|ru|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Ru.png|link=|Русский]]</span></span>[[Category:Russian]]|{{#if:{{{content/ru|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ru.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ru}}|Русский]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ru}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ru.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ru}}|Русский]]</span></span>}}}}}}<!--
--></span></div><!--
--></div><!--
-->{{#if: {{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}}
|
| {{metanotice
|id=[[File:Info.png|45px]]
|rgb=0, 127, 242
|style=padding: 7px; background: rgba(0,127,242,0.1); border-radius: 5px; border: 2px solid rgba(0,127,242,0.3);
|text={{Doc/strings|PageNotExist|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}}}
}}
}}<!--
-->{{#if: {{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/strings}}
| {{Strings notice|TempDoc=1}}{{ {{FULLPAGENAME}}/strings|String info }}
}}<!--
-->{{#if: {{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}
| {{Testcase notice|TempDoc=1}}
}}<!--


-->{{#ifeq:{{uilang}}|uk|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Uk.png|link=|Українська]]</span></span>[[Category:Ukrainian]]|{{#if:{{{content/uk|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Uk.png|link={{fullurl:{{FULLPAGENAME}}|uselang=uk}}|Українська]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/uk}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Uk.png|link={{fullurl:{{FULLPAGENAME}}|uselang=uk}}|Українська]]</span></span>}}}}}}<!--
--------------- Doc transclusion ---------------
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}}}}|}}}
| {{{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}}}}}}
| {{:{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}
|DocParam1={{{DocParam1|}}}|DocParam2={{{DocParam2|}}}|DocParam3={{{DocParam3|}}}|DocParam4={{{DocParam4|}}}|DocParam5={{{DocParam5|}}} }}
| {{:{{{docpage|{{FULLPAGENAME}}/doc}}}
|DocParam1={{{DocParam1|}}}|DocParam2={{{DocParam2|}}}|DocParam3={{{DocParam3|}}}|DocParam4={{{DocParam4|}}}|DocParam5={{{DocParam5|}}} }}
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### if:CONTENT ##### --></div></div><!--  


-->{{#ifeq:{{uilang}}|sv|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Sv.png|link=|Svenska]]</span></span>[[Category:Swedish]]|{{#if:{{{content/sv|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Sv.png|link={{fullurl:{{FULLPAGENAME}}|uselang=sv}}|Svenska]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/sv}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Sv.png|link={{fullurl:{{FULLPAGENAME}}|uselang=sv}}|Svenska]]</span></span>}}}}}}<!--
------------------------------ doc/subpage translations | switch function at first line of the template ------------------------------


-->{{#ifeq:{{uilang}}|tr|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Tr.png|link=|Türkçe]]</span></span>[[Category:Turkish]]|{{#if:{{{content/tr|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Tr.png|link={{fullurl:{{FULLPAGENAME}}|uselang=tr}}|Türkçe]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/tr}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Tr.png|link={{fullurl:{{FULLPAGENAME}}|uselang=tr}}|Türkçe]]</span></span>}}}}}}<!--
-->| 0 = {{doc/subpage/0usecheck}}{{Doc/subpage}}[[Category:Pages using deprecated Doc 0]]
| 4 = {{doc/subpage/4usecheck}}{{Doc/multi-subpage}}[[Category:Pages using deprecated Doc 4]]
<!-- Not being used -->
| 1 = {{doc/subpage/1usecheck}}{{messagebox|borderstyle=|image=[[File:Sandbox.png|40px|link=]]
|text= {{Doc/strings|Sandboxsp}} ([{{fullurl:Special:ComparePages|page1={{NAMESPACEE}}:{{ROOTPAGENAMEE}}&page2={{FULLPAGENAMEE}}}} {{Doc/strings|diff}}])}}[[Category:Sandbox pages]]
| 2 = {{doc/subpage/2usecheck}}{{messagebox|borderstyle=|image=[[File:Sandbox Not.png|40px|link=]]
|text={{Doc/strings|NotSandbox 1}}}}
|small={{Doc/strings|NotSandbox 2}}
| 3 = {{doc/subpage/3usecheck}}{{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
|text={{Doc/strings|Infosp}}}}


-->{{#ifeq:{{uilang}}|ja|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Jp.png|link=|日本語]]</span></span>[[Category:Japanese]]|{{#if:{{{content/ja|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Jp.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ja}}|日本語]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ja}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Jp.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ja}}|日本語]]</span></span>}}}}}}<!--
}}<!-- ##### SWITCH FUNCTION, first line of the template #####  


-->{{#ifeq:{{uilang}}|zh-cn|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Cn.png|link=|简体中文]]</span></span>[[Category:Simplified Chinese]]|{{#if:{{{content/zh-cn|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Cn.png|link={{fullurl:{{FULLPAGENAME}}|uselang=zh-cn}}|简体中文]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/zh-cn}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Cn.png|link={{fullurl:{{FULLPAGENAME}}|uselang=zh-cn}}|简体中文]]</span></span>}}}}}}<!--
-->{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}
|1
|0
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### INTLANG ##### -->
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:.3em; padding:0.4em 1em; margin-top:1em;"><!--
-->''{{Doc/strings|transcluded|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}}}''<!--
-->&nbsp;<small>([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}
|1
|0
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### INTLANG ##### -->
|action=edit}} {{int:edit}}] {{!}} [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}
|1
|0
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### INTLANG ##### -->
|action=history}} {{int:History}}])</small><br>''{{Doc/strings|Sandbox}}''</div>
|}}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude>


-->{{#ifeq:{{uilang}}|zh-tw|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Tw.png|link=|正體中文]]</span></span>[[Category:Taiwanese Mandarin]]|{{#if:{{{content/zh-tw|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Tw.png|link={{fullurl:{{FULLPAGENAME}}|uselang=zh-tw}}|正體中文]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/zh-tw}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Tw.png|link={{fullurl:{{FULLPAGENAME}}|uselang=zh-tw}}|正體中文]]</span></span>}}}}}}<!--
</includeonly>__NOTOC__
 
-->{{#ifeq:{{uilang}}|ko|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Ko.png|link=|한국어]]</span></span>[[Category:Korean]]|{{#if:{{{content/ko|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ko.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ko}}|한국어]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ko}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ko.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ko}}|한국어]]</span></span>}}}}}}<!--
 
-->{{#ifeq:{{uilang}}|ka|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:Ka.png|link=|ქართული ენა]]</span></span>[[Category:Georgian]]|{{#if:{{{content/ka|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ka.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ka}}|ქართული ენა]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/ka}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:Ka.png|link={{fullurl:{{FULLPAGENAME}}|uselang=ka}}|ქართული ენა]]</span></span>}}}}}}<!--
 
-->{{#ifeq:{{uilang}}|he|<span style="margin:1px;border:1px solid #AAA"><span style=position:relative;top:-1px>[[File:He.png|link=|עִברִית]]</span></span>[[Category:Hebrew]]|{{#if:{{{content/he|}}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:He.png|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}|עִברִית]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}/he}}|<span style="margin:1px;border:1px solid #323232"><span style=position:relative;top:-1px>[[File:He.png|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}|עִברִית]]</span></span>}}}}}}</td>}}</tr>
{{#if:{{{examples|}}}|<tr style=float:left><td class="mw-customtoggle-docexamples mw-editsection plainlinks" style="border-left:1px solid;border-right:1px solid;border-bottom:1px solid;padding:3px">{{int:apisandbox-examples}}</td></tr></table>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-docexamples" style="margin-bottom:4px;display:inline-block;border:1px solid;padding:4px"><code style=padding:0>{{{examples}}}</code></div>|</table>}}
{{{content{{uilang|/}}|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}}}
|{{:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}}}
|{{messagebox|style=margin-top:14px|text={{#switch:{{uilang}}|#default=The <span style=text-decoration:underline>'''{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}'''</span> documentation page does not exist.|ru=Страница документации <span style=text-decoration:underline>'''{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}'''</span> не существует.}}}}
}}}}}
</div>
|0={{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
|text={{#switch:{{uilang}}|#default=This is a documentation subpage for [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|de=Dies ist eine Unterseite zur Dokumentation für [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|es=Esta es una subpágina de documentación para [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|ru=Это подстраница документации для [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|zh-cn=这是 [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]] 的文档子页面。|ka=ეს არის დოკუმენტაცია [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].}}}}[[Category:Documentation pages]]
|1={{messagebox|borderstyle=|image=[[File:Sandbox.png|40px|link=]]
|text={{#switch:{{uilang}}|#default=This is the sandbox subpage for [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|es=Esta es una subpágina de caja de arena para [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|ru=Это подстраница песочницы для [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].}} ([{{fullurl:Special:ComparePages|page1={{NAMESPACEE}}:{{ROOTPAGENAMEE}}&page2={{FULLPAGENAMEE}}}} {{#switch:{{uilang}}|#default=diff|ru=Сравнить}}])}}[[Category:Sandbox pages]]
|2={{messagebox|borderstyle=|image=[[File:Sandbox Not.png|40px|link=]]
|text={{#switch:{{uilang}}|#default=This page is ''not'' a sandbox.|ru=Эта страница ''не является'' песочницей.}}
|small={{#switch:{{uilang}}|#default=It should not be used for test editing. To experiment, please use your [[Special:MyPage/sandbox|user sandbox]], or the [[:Category:Sandbox pages|other sandboxes]].|ru=Не используйте её для тестовых правок. Экспериментируйте в [[Special:MyPage/sandbox|своей]] или [[:Category:Sandbox pages|других песочницах]].}}}}
}}</includeonly></onlyinclude>
{{doc|examples={{MdCode|oneclick|<nowiki>{{doc}}</nowiki>}}<br>{{MdCode|oneclick|<nowiki>{{doc|0}}</nowiki>}}<br>{{MdCode|oneclick|<nowiki>{{doc|1}}</nowiki>}}<br>{{MdCode|oneclick|<nowiki>{{doc|2}}</nowiki>}}}}

Latest revision as of 06:50, 14 October 2025

Warning icon.png
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.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:17
Approximate status of translation:English (en) 100% Deutsch (de) 41.18% Español (es) 47.06% Esperanto (eo) 47.06% Hrvatski (hr) 94.12% 日本語 (ja) 5.88% 한국어 (ko) 5.88% Ქართული (ka) 11.76% Nederlands (nl) 5.88% Polski (pl) 5.88% Português (pt) 5.88% Português do Brasil (pt-br) 5.88% Русский (ru) 100% Українська (uk) 5.88% Tiếng Việt (vi) 23.53% 中文 (zh) 88.24% 
Gnome app science.png
This template uses a Testcases subpage
You can test how this page looks with its different skins and parsers.

The template {{doc}} is designed to add a block of documentation to various pages (mainly template pages). The subpages of a certain language will be loaded into the documentation block depending on the language of the user interface. In the case of English, the documentation will be taken from the /doc subpage. But in all other cases, the documentation will be taken from the subpage /doc/<lang code>

Tools

The main tools are located on the top right, above the documentation block:

  • Create – opens the creation of the documentation page. Appears only if the documentation page does not exist.
Note.pngNote:If there are none of any documentations, the button will load a preload documentation, Template:Doc/preload or Template:Doc/preload/<lang code> (if the UI language isn't in English and the translations of the preload page exist), as the content of the new page and open the editing page. If there is a English documentation, the button will preload the English documentation as the content.
  • View – opens the documentation page.
  • Edit – opens the editing of the documentation page.
  • History – opens the history of changes to the documentation page.
Note.pngNote:If there are none of the above tools, then the text of the documentation was written using the {{{content}}} parameter, or parameter {{{tools}}} was set to 0.

Also, in the upper right corner there is a button marked with an ellipsis [ ]. It expands/collapses additional tools:

  • Sandbox – opens the creation of a subpage /sandbox and copies the code of the original page, or, if this page exists, simply opens it.
  • Testcases – opens the /testcases subpage. Useful for testing a template in different situations.
  • Subpages – opens Special:PrefixIndex and inserts the page name to search for all subpages.
  • Purge – opens a window with a message about purging the page.

Language bar

On the top right, under the tools, there are flags that switch documentation to another language. Switching is implemented by inserting &uselang=<lang code> into the page link, so if you click on another language, then along with the documentation, the interface language will change.

If there is no documentation in a certain language, the message “The <page> documentation page does not exist” will be displayed. if {{{pagespace}}} or actual page space is User, then the message “The <user> did not provide information about himself on this language (<page>).” will be displayed instead. Also, after this message, documentation in English will be displayed, if it exists.

Parameters

  • {{{1}}}: parameter for switching the template assignment:
    • If you need a standard documentation block, do not enter anything in this parameter.
    • 0 – will display the message “This is a documentation subpage for <page>”.
    • 1 – will display the message “This is the sandbox subpage for <page>”.
    • 2 – will display the message “This page is not a sandbox”.
    • 3 – will display the message “This is the <page> info subpage”. Useful for user subpages.
    • 4 – will display the message “This is a documentation subpage for use on multiple pages”. If the {{{list}}} parameter is used, then the text will be: “This is a documentation subpage for use on multiple pages listed in <list page>”.
  • {{{list}}}: specifies a page or category that lists pages using a particular documentation page. Used only if parameter {{{1}}} is set to 4.
  • {{{docpage}}}: the page that will be used as documentation.
  • {{{DocParam1}}} to {{{DocParam5}}}: Optional parameters passed to the documentation page (the /doc subpage and supported by {{{docpage}}}).
    • If the documentation uses {{{DocParam1}}}, then passing {{{DocParam1}}} in the template transclusion (e.g. {{Doc|DocParam1=Hello World!}}) will affect how the doc is rendered, good for documentation pages only needing a different value.
  • {{{content</lang code>}}}: content that will be used as documentation, instead of a separate page. When used, the main tools are hidden.
  • {{{pagespace}}}: the page space is determined automatically, but you can enter your own. The text in the header depends on this parameter:
    • Template → “Template Documentation”
    • File → “Summary”
    • User → “About”
    • In all other cases it will be “Documentation”
Note.pngNote:if {{{pagespace}}} or actual page space is “User”, then the text will be taken from the /about subpage, not /doc.
  • {{{tools}}}: controls which tool buttons should be displayed:
    • 0 – no buttons.
    • 1 – only buttons “Create”, “View”, “Edit” and “History”.
    • In all other cases there will be all buttons

Creating documentation

Warning.pngWarning:If you want to add the symbol “|” somewhere in the text (templates and other MediaWiki elements are not affected), use &#124;.

To start creating documentation, click on the “Create” button on the top right. The button loads the preloaded document (or as a preloaded document if there is an English document). Then the text of the documentation itself is written. First there is a brief description, and then – depending on what the documentation is written for. If you want to add categories, just add them where the preload documentation indicated.

Subpages

There are some subpages and sub-templates on {{Doc}}. They are created to make the things easier.

{{Doc/subpage}}

This template is the replacement of <noinclude>{{doc|0}}</noinclude>. It can be instead of <noinclude>{{doc|0}}</noinclude>.

Its purpose is the same as {{Documentation subpage}}.

It can avoid the problem that preload page won't load <noinclude>{{doc|0}}</noinclude>.

{{Doc/Sandbox other}}

This template adds content separately to the main template and its subpages (documents). It is useful for adding categories.

Its purpose is the same as {{Sandbox other}}.

Template:Doc/preload

This is the preload page when you click the create button. You can add translations for it.

{{Doc/PreviewBlock}}

Deprecated. Use {{Capsule}} instead.

Template:Doc
Logo-template.png
Summary
Transcludes a documentation subpage
Type
Wrapper template
Contributors
N/A
Creation date
22/08/2022
(22 August 2022)
Notes
N/A
Subpages
Documentation
Preload
Sandbox
Strings
Testcases
N/A
Revision information
Latest editor
THE OWL
Last edited
14/10/2025
20251014065018
Revision size
14125 bytes
14.125 kilobytes
0.014125 megabytes
Technical information
Page identifier
47769
Contains translations
Yes
Uses parser functions?
Yes
Uses variables?
Yes