Шаблон:Documentation/core — различия между версиями
Материал из Аэроскан Сервис
(If "content" fed, don't link the /doc page. (Good thing I do detailed testing.)) |
(Revert my last edit and fix some related code: The doc of {{documentation}} shows a case when "content" is fed AND the /doc links are needed. So back to linking the /doc page if it exists.) |
||
| Строка 45: | Строка 45: | ||
-->{{#if: | -->{{#if: | ||
<!--Check if we need the small box--> | <!--Check if we need the small box--> | ||
| − | + | {{{doc exist|yes}}}{{ | |
| − | + | #switch: {{SUBJECTSPACE}} | |
| − | + | ||
| − | + | ||
| {{ns:User}} | | {{ns:User}} | ||
| {{ns:Template}} = yes | | {{ns:Template}} = yes | ||
| Строка 57: | Строка 55: | ||
| style = background-color: #ecfcf4; | | style = background-color: #ecfcf4; | ||
| text = | | text = | ||
| − | '' | + | ''{{#if: {{{doc exist|yes}}} |
| − | + | | <!--/doc exists, link to it--> | |
| − | + | The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] | [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br> | |
| − | + | ||
| − | + | ||
| − | + | ||
}}<!-- | }}<!-- | ||
| − | + | Add links to /sandbox and /testcases when appropriate | |
-->{{#switch: {{SUBJECTSPACE}} | -->{{#switch: {{SUBJECTSPACE}} | ||
| {{ns:User}} | | {{ns:User}} | ||
Версия 00:34, 6 февраля 2010
Шаблон:Fmbox