Шаблон:Documentation/core — различия между версиями
Материал из Аэроскан Сервис
(Using {{{doc exist|}}}. And check when to show the small box below for the doc meta-data.) |
(Adding the code for the sandbox and testcases links, instead of calling {{documentation/links}} since that one is used by {{category interwiki}} so should not show links to non-existing sandboxes.) |
||
| Строка 46: | Строка 46: | ||
<!--Check if we need the small box--> | <!--Check if we need the small box--> | ||
{{#if: {{{content|}}} | {{#if: {{{content|}}} | ||
| − | | <!--Don't link the /doc page--> | + | | <!--Don't link the /doc page--> |
| {{{doc exist|yes}}} | | {{{doc exist|yes}}} | ||
}}{{#switch: {{SUBJECTSPACE}} | }}{{#switch: {{SUBJECTSPACE}} | ||
| − | | {{ns: | + | | {{ns:User}} |
| − | | {{ns: | + | | {{ns:Template}} = yes |
}} | }} | ||
| Строка 62: | Строка 62: | ||
}}<!-- | }}<!-- | ||
Add links to /sandbox and /testcases when appropriate | Add links to /sandbox and /testcases when appropriate | ||
| − | + | -->{{#switch: {{SUBJECTSPACE}} | |
| + | | {{ns:User}} | ||
| + | | {{ns:Template}} = | ||
| + | Editors can experiment in this template's {{ | ||
| + | #ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | ||
| + | | [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit])</small> | ||
| + | | sandbox <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create])</small> | ||
| + | }} and {{ | ||
| + | #ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}} | ||
| + | | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small> | ||
| + | | testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small> | ||
| + | }} pages. | ||
| + | }}'' | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
</noinclude> | </noinclude> | ||
Версия 23:55, 5 февраля 2010
Шаблон:Fmbox