Шаблон:Documentation: различия между версиями
Перейти к навигации
Перейти к поиску
en>ConradPino (merging: copy from sandbox; new content & sandbox-testcases parameters, better sandbox testcases links) |
en>ConradPino (copy from sandbox: {{SUBJECTPAGENAME}}/doc -> {{Documentation/docname}}) |
||
| Строка 15: | Строка 15: | ||
#if: {{{heading|Documentation}}} | #if: {{{heading|Documentation}}} | ||
|<!-- has heading --><div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{ | |<!-- has heading --><div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{ | ||
#ifexist: {{{1|{{ | #ifexist: {{{1|{{Documentation/docname}}}}} | ||
|<!-- /doc exists -->[[{{fullurl:{{{1|{{ | |<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} view]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]] | ||
|<!-- no /doc -->{{ | |<!-- no /doc -->{{ | ||
#if: {{{content|}}} | #if: {{{content|}}} | ||
|<!-- has content --> | |<!-- has content --> | ||
|<!-- no content -->[[{{fullurl:{{{1|{{ | |<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload=Template:Documentation/preload}} edit]] | ||
}} | }} | ||
}}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div> | }}</span> <span style="{{{heading-style|font-size: 150%}}}">{{{heading|Documentation}}}</span></div> | ||
| Строка 27: | Строка 27: | ||
#ifeq: {{{transcluded|show}}} | show | #ifeq: {{{transcluded|show}}} | show | ||
|<!-- transcluded show -->{{ | |<!-- transcluded show -->{{ | ||
#ifexist: {{{1|{{ | #ifexist: {{{1|{{Documentation/docname}}}}} | ||
|<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{ | |<!-- /doc exists -->This [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">([[{{{1|{{Documentation/docname}}}}}|view]] | [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit] | [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} history])</small><br /> | ||
|<!-- no /doc --> | |<!-- no /doc --> | ||
}} | }} | ||
| Строка 54: | Строка 54: | ||
}} | }} | ||
}}</div> | }}</div> | ||
{{{content|{{ {{ #ifexist: {{{1|{{ | {{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}} | ||
</div> | </div> | ||
Версия 00:08, 12 ноября 2007
{{ #ifeq: Documentation | sandbox
| Шаблон:Template sandbox notice | Шаблон:Pp-semi-template
}} Шаблон:Intricate {{
#ifeq: Шаблон:Documentation | Template:Documentation |
}}
{{
#if: Documentation|
{{
#ifexist: Шаблон:Documentation/docname |[[{{fullurl:Шаблон:Documentation/docname}} view]] [[{{fullurl:Шаблон:Documentation/docname|action=edit}} edit]] |{{ #if: | |[[{{fullurl:Шаблон:Documentation/docname|action=edit&preload=Template:Documentation/preload}} edit]] }}}} Documentation
|}}
{{
#ifeq: show | show
|{{
#ifexist: Шаблон:Documentation/docname
|This documentation is transcluded from [[Шаблон:Documentation/docname]]. ([[Шаблон:Documentation/docname|view]] | [{{fullurl:Шаблон:Documentation/docname|action=edit}} edit] | [{{fullurl:Шаблон:Documentation/docname|action=history}} history])
|
}}
|
}}{{
#switch: Documentation
|sandbox=
|testcases=
|#default={{
#switch: Шаблон/show
|Шаблон/show|Участник/show=This template has {{
#ifexist: {{ #rel2abs: /sandbox }}
|a sandbox ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit]) {{
#ifexist: {{ #rel2abs: /testcases }}
|and testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])
|but no [{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} testcases]
}}
|no [{{fullurl:{{ #rel2abs: /sandbox }}|action=edit&preload=Template:Documentation/preload/sandbox}} sandbox] {{
#ifexist: {{ #rel2abs: /testcases }}
|but has testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])
|and no [{{fullurl:{{ #rel2abs: /testcases }}|action=edit&preload=Template:Documentation/preload/testcases}} testcases]
}}
}} for editors to experiment.
|
}}
}}{{ {{ #ifexist: Шаблон:Documentation/docname | Шаблон:Documentation/docname | ns:0 }} }}