Шаблон:Documentation/core — различия между версиями
Материал из Аэроскан Сервис
(Removed most of the debug check. Silly me, this also reported redirects from the talkpages. Will make a smarter check function.) |
(Tweak when and how to show the "Subpages" link. And adding a comment to the "cats and interwikis" text.) |
||
| Строка 82: | Строка 82: | ||
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small> | | testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small> | ||
}} pages. <br> | }} pages. <br> | ||
| − | }}{{#if: {{{content|}}} {{{docname fed|}}} | + | }}<!-- |
| + | Show the cats and interwiki text, but not | ||
| + | if "content" fed or "docname fed" since then it is | ||
| + | unclear where to add the cats and interwikis. | ||
| + | -->{{#if: {{{content|}}} {{{docname fed|}}} | ||
| | | | ||
| Add categories and interwikis to the /doc subpage. | | Add categories and interwikis to the /doc subpage. | ||
| − | }} [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]]. | + | }}<!-- |
| + | Show the "Subpages" link: | ||
| + | -->{{#switch: {{SUBJECTSPACE}} | ||
| + | | {{ns:File}} = <!--Don't show it--> | ||
| + | | {{ns:Template}} = | ||
| + | [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]]. | ||
| + | | #default = | ||
| + | [[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]]. | ||
| + | }} | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
| + | |||
Detect and report strange usage: | Detect and report strange usage: | ||
-->{{#if: | -->{{#if: | ||