Template:Doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added new options for better use on user pages)
Line 1: Line 1:
<onlyinclude><includeonly>{{#switch:{{{1|}}}
<onlyinclude><includeonly>{{#switch:{{{1|}}}
|#default=<span class="mw-editsection plainlinks" style=float:right><table cellspacing=0 style="width:100%;margin-bottom:-1px;"><tr>
|#default={{#switch:{{{tools|}}}|#default=<span class="mw-editsection plainlinks" style=float:right><table cellspacing=0 style="width:100%;margin-bottom:-1px;"><tr>
{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}}}
{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}}}
|{{#if:{{{content{{uilang|/}}|}}}||<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}}/doc}}}{{uilang|/}}|{{int:view}}]]</td>
|{{#if:{{{content{{uilang|/}}|}}}||<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}}/doc}}}{{uilang|/}}|{{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}}/doc}}}{{uilang|/}}|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%)">[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}{{uilang|/}}|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}}/doc}}}{{uilang|/}}|action=history}} {{int:history}}]</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}}/doc}}}{{uilang|/}}|action=history}} {{int:history}}]</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}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{#switch:{{uilang}}|#default=Sandbox|ru=Песоч&shy;ница}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}}} {{#switch:{{uilang}}|#default=Sandbox|ru=Песоч&shy;ница|zh-cn=沙盒}}]}}</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="padding:0 6px">{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{#switch:{{uilang}}|#default=Sandbox|ru=Песоч&shy;ница}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}}} {{#switch:{{uilang}}|#default=Sandbox|ru=Песоч&shy;ница|zh-cn=沙盒}}]}}</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|{{#switch:{{uilang}}|#default=Testcase|ru=Тестиро&shy;вание}}]] | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{#switch:{{uilang}}|#default=Testcase|ru=Тестиро&shy;вание|zh-cn=测试用例}}]}}</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|{{#switch:{{uilang}}|#default=Testcase|ru=Тестиро&shy;вание}}]] | [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{#switch:{{uilang}}|#default=Testcase|ru=Тестиро&shy;вание|zh-cn=测试用例}}]}}</div></td>|1=}}
|{{#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>}}
|{{#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;border-bottom:1px solid"><div class="mw-collapsible mw-collapsed" id=mw-customcollapsible-doctools style="padding:0 6px">[[Special:PrefixIndex/{{FULLPAGENAME}}/|{{#switch:{{uilang}}|#default=Subpages|ru=Под&shy;страницы|de=Unterseiten|zh-cn=子页面}}]]</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="padding:0 6px">[[Special:PrefixIndex/{{FULLPAGENAME}}/|{{#switch:{{uilang}}|#default=Subpages|ru=Под&shy;страницы|de=Unterseiten|zh-cn=子页面}}]]</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}} {{#switch:{{uilang}}|#default=Purge|es=Purga|ru=Очистить кэш|zh-cn=清除缓存(刷新页面)|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="padding:0 6px">[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{#switch:{{uilang}}|#default=Purge|es=Purga|ru=Очистить кэш|zh-cn=清除缓存(刷新页面)|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></table></span>
</tr>|1=}}</table></span>|0=}}
<div style="clear:both;margin-top:1em;border:1px solid #AAA;background:#323232;padding:1em;{{border-radius|8px 0 8px 8px}}">
<div style="clear:both;margin-top:1em;border:1px solid #AAA;background:#323232;padding:1em;{{#switch:{{{tools|}}}|#default={{border-radius|8px 0 8px 8px}}|0={{border-radius|8px}}}}">
<table cellspacing=0 width=100% style="margin:3px 0 10px 0;background:#323232">
<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}}}}}
<tr><td rowspan=2 style="border-bottom:1px solid #AAA;padding-bottom:3px;font-weight:bold;font-size:125%">{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}
Line 85: Line 85:
|text={{#switch:{{uilang}}|#default=This page is ''not'' a sandbox.|ru=Эта страница ''не является'' песочницей.|de=Diese Seite ist ''keine'' Sandbox.|zh-cn=该文档不是沙盒页面。}}
|text={{#switch:{{uilang}}|#default=This page is ''not'' a sandbox.|ru=Эта страница ''не является'' песочницей.|de=Diese Seite ist ''keine'' Sandbox.|zh-cn=该文档不是沙盒页面。}}
|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|других песочницах]].|de=Sie sollte nicht für Tests bearbeitet werden. Benutzer können auf ihrer [[Special:MyPage/sandbox|Benutzer-Sandbox]] oder anderen [[:Category:Sandbox pages|Sandbox-Seiten]] experimentieren.|zh-cn=它不应用于测试编辑。要进行实验,请使用你的[[Special:MyPage/sandbox|用户沙盒]]或[[:Category:Sandbox pages|其他沙盒]]。}}}}
|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|других песочницах]].|de=Sie sollte nicht für Tests bearbeitet werden. Benutzer können auf ihrer [[Special:MyPage/sandbox|Benutzer-Sandbox]] oder anderen [[:Category:Sandbox pages|Sandbox-Seiten]] experimentieren.|zh-cn=它不应用于测试编辑。要进行实验,请使用你的[[Special:MyPage/sandbox|用户沙盒]]或[[:Category:Sandbox pages|其他沙盒]]。}}}}
|3={{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
|text={{#switch:{{uilang}}|#default=This is the [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]] info subpage.|ru=Это подстраница c информацией о пользователе [[{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]]}}}}
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>
{{doc|noscroll=1|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>}}}}
{{doc|noscroll=1|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>}}}}

Revision as of 00:11, 14 December 2022

[[Template:Doc/doc
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
|View]]
[{{fullurl:Template:Doc/doc
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
|action=edit}} Edit]
[{{fullurl:Template:Doc/doc
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
|action=history}} Page history]
Curly brackets white.png Template Documentation
EnglishРусский
{{doc}}
{{doc|0}}
{{doc|1}}
{{doc|2}}
{{:Template:Doc/doc
Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.
}}