Template:Doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#switch:{{{1|}}} | <onlyinclude><includeonly>{{#switch:{{{1|}}} | ||
|#default=<div style=clear:both></div>{{#switch:{{{tools|}}}|#default=<span class=plainlinks style=user-select:none;float:right><table cellspacing=0 style="width:100%;margin-bottom:-1px;"><tr> | |#default=<div style=clear:both></div>{{#switch:{{{tools|}}}|#default=<span class=plainlinks style=user-select:none;float:right><table cellspacing=0 style="width:100%;margin-bottom:-1px;"><tr> | ||
{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{ | {{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}}} | ||
|{{#if:{{{content{{ | |{{#if:{{{content{{uselang|pref=/}}|}}}||<td style="border-left:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%) 1;text-align:center;padding:6px;background:linear-gradient(0,#323232 10%,transparent 100%)">[[{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}|{{int:view}}]]</td> | ||
<td style="text-align:center;padding:6px;background:linear-gradient(0,#323232 10%,transparent 100%);border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%)">[{{fullurl:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{ | <td style="text-align:center;padding:6px;background:linear-gradient(0,#323232 10%,transparent 100%);border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%)">[{{fullurl:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}|action=edit}} {{int:edit}}]</td> | ||
<td style="text-align:center;padding:6px;background:linear-gradient(0,#323232 10%,transparent 100%);border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%) 1">[{{fullurl:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{ | <td style="text-align:center;padding:6px;background:linear-gradient(0,#323232 10%,transparent 100%);border-right:1px solid;border-image:linear-gradient(0,#AAA,transparent 100%) 1">[{{fullurl:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}|action=history}} {{int:history}}]</td>}} | ||
{{#switch:{{{tools|}}}|#default=<td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="padding:0 6px">{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{autolang|Sandbox|ru=Песоч­ница|zh=沙盒}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}}} {{autolang|Sandbox|ru=Песоч­ница|zh=沙盒}}]}}</div></td> | {{#switch:{{{tools|}}}|#default=<td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="display:none;padding:0 6px">{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{autolang|Sandbox|ru=Песоч­ница|zh=沙盒}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}}} {{autolang|Sandbox|ru=Песоч­ница|zh=沙盒}}]}}</div></td> | ||
<td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="padding:0 6px">{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}| [[{{FULLPAGENAME}}/testcases|{{autolang|Testcase|ru=Тестиро­вание}}]] | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{autolang|Testcase|ru=Тестиро­вание|zh=测试用例}}]}}</div></td>|1=}} | <td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="display:none;padding:0 6px">{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}| [[{{FULLPAGENAME}}/testcases|{{autolang|Testcase|ru=Тестиро­вание}}]] | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{autolang|Testcase|ru=Тестиро­вание|zh=测试用例}}]}}</div></td>|1=}} | ||
|{{#if:{{{content{{ | |{{#if:{{{content{{uselang|pref=/}}|}}}||<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}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}|action=edit}} {{int:create}}]</td>}} | ||
}} | }} | ||
{{#switch:{{{tools|}}}|#default=<td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="padding:0 6px">[[Special:PrefixIndex/{{FULLPAGENAME}}/|{{autolang|Subpages|ru=Под­страницы|de=Unterseiten|zh=子页面}}]]</div></td> | {{#switch:{{{tools|}}}|#default=<td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="display:none;padding:0 6px">[[Special:PrefixIndex/{{FULLPAGENAME}}/|{{autolang|Subpages|ru=Под­страницы|de=Unterseiten|zh=子页面}}]]</div></td> | ||
<td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="padding:0 6px">[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{autolang|Purge|es=Purga|ru=Очистить кэш|zh=清除缓存(刷新页面)|ka=წმენდს|de=Aktualisieren}}]</div></td> | <td style="text-align:center;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="display:none;padding:0 6px">[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{autolang|Purge|es=Purga|ru=Очистить кэш|zh=清除缓存(刷新页面)|ka=წმენდს|de=Aktualisieren}}]</div></td> | ||
<td class="mw-customtoggle-doctools" style="padding:8px;background:linear-gradient(0,#323232 10%,transparent 100%);border-left:1px solid;border-right:1px solid;border-image:linear-gradient(to top,#AAA,transparent 100%) 1;height:14px">'''…'''</td> | <td class="mw-customtoggle-doctools" style="padding:8px;background:linear-gradient(0,#323232 10%,transparent 100%);border-left:1px solid;border-right:1px solid;border-image:linear-gradient(to top,#AAA,transparent 100%) 1;height:14px">'''…'''</td> | ||
</tr>|1=}}</table></span>|0=}} | </tr>|1=}}</table></span>|0=}} | ||
<div style="clear:both;margin-top:1em;border:1px solid #AAA;background:#323232;padding:1em;border-radius:{{#switch:{{{tools|}}}|#default=8px 0 8px 8px|0=8px}}"> | <div style="clear:both;margin-top:1em;border:1px solid #AAA;background:#323232;padding:1em;border-radius:{{#switch:{{{tools|}}}|#default=8px 0 8px 8px|0=8px}}"> | ||
<div style="width:100%;margin: 3px 0 10px 0"><div style="justify-content:space-between;display:flex;align-items:flex-end;flex-direction:{{#switch:{{ | <div style="width:100%;margin: 3px 0 10px 0"><div style="justify-content:space-between;display:flex;align-items:flex-end;flex-direction:{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|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="flex-direction:{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|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}};flex:auto;padding-bottom:4px;display:flex;border-bottom:1px solid #AAA;font-size:125%;line-height:125%;font-weight:bold;align-items:center">{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}} | ||
|#default={{autolang|Documentation|de=Dokumentation|es=Documentación|ru=Документация|zh=文档}} | |#default={{autolang|Documentation|de=Dokumentation|es=Documentación|ru=Документация|zh=文档}} | ||
|Template=<span style="{{#switch:{{ | |Template=<span style="{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|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|40px|link=]]</span>{{autolang|Template Documentation|es=Documentación de las plantillas|ru=Документация шаблона|zh=模板文档|ka=თარგი დოკუმენტაცია|de=Vorlagendokumentation}} | ||
|File={{autolang|Summary|es=Resumen|ru=Описание|zh=摘要|de=Zusammenfassung}} | |File={{autolang|Summary|es=Resumen|ru=Описание|zh=摘要|de=Zusammenfassung}} | ||
|User={{autolang|About|de=Über|ru=О пользователе|zh=关于}} | |User={{autolang|About|de=Über|ru=О пользователе|zh=关于}} | ||
Line 68: | Line 68: | ||
-->{{#ifeq:{{uselang}}|he|<span style="margin:1px;border:1px solid #AAA"><span style=user-select:none;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=user-select:none;position:relative;top:-1px>[[File:He.png|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}|עִברִית]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}/he}}|<span style="margin:1px;border:1px solid #323232"><span style=user-select:none;position:relative;top:-1px>[[File:He.png|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}|עִברִית]]</span></span>}}}}}}</div></div> | -->{{#ifeq:{{uselang}}|he|<span style="margin:1px;border:1px solid #AAA"><span style=user-select:none;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=user-select:none;position:relative;top:-1px>[[File:He.png|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}|עִברִית]]</span></span>|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}/he}}|<span style="margin:1px;border:1px solid #323232"><span style=user-select:none;position:relative;top:-1px>[[File:He.png|link={{fullurl:{{FULLPAGENAME}}|uselang=he}}|עִברִית]]</span></span>}}}}}}</div></div> | ||
{{#if:{{{examples|}}}|<div style="flex-direction: | {{#if:{{{examples|}}}|<div style="{{Dir|rtl=flex-direction:row-reverse;}}display:flex"><div class="mw-customtoggle-docexamples mw-editsection plainlinks" style="border:1px solid;border-top:0;margin:0;padding:3px">{{int:apisandbox-examples}}</div> | ||
</div><div style="width:100%;display:flex;flex-direction: | </div><div style="width:100%;display:flex;{{Dir|rtl=flex-direction:row-reverse;}}"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-docexamples" style="display:none;{{#if:{{{noscroll|}}}||scrollbar-width:thin;scrollbar-gutter:stable;overflow-y:auto;}}max-height:10em;position:absolute;border:1px solid #65635F;background:#242424;margin:2px 1px 0 1px;padding:4px;z-index:10;border-radius:4px"><kbd>{{{examples}}}</kbd></div></div>}}</div> | ||
{{{content{{ | {{{content{{uselang|pref=/}}|{{{content|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}}} | ||
|{{:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{ | |{{:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}}} | ||
|{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}} | |{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}} | ||
|#default={{messagebox|style=margin-top:14px|text={{autolang|The <span style=text-decoration:underline>'''[[:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{ | |#default={{messagebox|style=margin-top:14px|text={{autolang|The <span style=text-decoration:underline>'''[[:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span> documentation page does not exist.<br>English documentation will be displayed instead. If there is nothing after this message, most likely the documentation does not exist even in English.|ru=Страница документации <span style=text-decoration:underline>'''[[:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span> не существует.<br>Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.|de=Die Dokumentationsseite <span style=text-decoration:underline>'''[[:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span> existiert nicht.<br>Es folgt unter dieser Meldung stattdessen die englische Dokumentation, sofern sie existiert.|zh=文档页面 <span style=text-decoration:underline>'''[[:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span> 不存在。<br>模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。}}}} | ||
{{:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}}} | {{:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}}} | ||
|User={{messagebox|style=margin-top:14px|text={{autolang|The [[{{#titleparts:{{{docpage|{{FULLPAGENAME}}}}}|1|1}}]] did not provide information about himself on this language (<span style=text-decoration:underline>'''[[{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{ | |User={{messagebox|style=margin-top:14px|text={{autolang|The [[{{#titleparts:{{{docpage|{{FULLPAGENAME}}}}}|1|1}}]] did not provide information about himself on this language (<span style=text-decoration:underline>'''[[{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span>).|ru={{GENDER:{{#titleparts:{{{docpage|{{FULLPAGENAME}}}}}|1|1}}|||Пользователь}} [[{{#titleparts:{{{docpage|{{FULLPAGENAME}}}}}|1|1}}]] не {{GENDER:{{#titleparts:{{{docpage|{{FULLPAGENAME}}}}}|1|1}}|предоставил|предоставила|предоставил}} информацию о себе на данном языке (<span style=text-decoration:underline>'''[[{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span>).|zh=[[{{#titleparts:{{{docpage|{{FULLPAGENAME}}}}}|1|1}}]] 没有提供有关他自己关于该语言的信息 (<span style=text-decoration:underline>'''[[{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{uselang|pref=/}}]]'''</span>)。}}}} | ||
}}}}}}}}}} | }}}}}}}}}} | ||
</div> | </div> |
Revision as of 15:11, 20 February 2023
[[Template:Doc/docTemplate:Uselang|View]] | [{{fullurl:Template:Doc/docTemplate:Uselang|action=edit}} Edit] | [{{fullurl:Template:Doc/docTemplate:Uselang|action=history}} Page history] | … |


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 = 中文(台灣)
}}
Examples
{{:Template:Doc/docTemplate:Uselang}}