« Modèle:Documentation » : différence entre les versions
Aller à la navigation
Aller à la recherche
test0>ConradPino (merging: copy from sandbox; new content & sandbox-testcases parameters, better sandbox testcases links) |
test0>ConradPino (copy from sandbox: {{SUBJECTPAGENAME}}/doc -> {{Documentation/docname}}) |
||
Ligne 15 : | Ligne 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> | ||
Ligne 27 : | Ligne 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 --> | ||
}} | }} | ||
Ligne 54 : | Ligne 54 : | ||
}} | }} | ||
}}</div> | }}</div> | ||
{{{content|{{ {{ #ifexist: {{{1|{{ | {{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}} | ||
</div> | </div> |
Version du 12 novembre 2007 à 09:08
{{ #ifeq: Documentation | sandbox
| Modèle:Template sandbox notice | Modèle:Pp-semi-template
}} Modèle:Intricate {{
#ifeq: Modèle:Documentation | Template:Documentation |
}}
{{
#if: Documentation|
{{
#ifexist: Modèle:Documentation/docname |[[{{fullurl:Modèle:Documentation/docname}} view]] [[{{fullurl:Modèle:Documentation/docname|action=edit}} edit]] |{{ #if: | |[[{{fullurl:Modèle:Documentation/docname|action=edit&preload=Template:Documentation/preload}} edit]] }}}} Documentation
|}}
{{
#ifeq: show | show |{{ #ifexist: Modèle:Documentation/docname |This documentation is transcluded from [[Modèle:Documentation/docname]]. ([[Modèle:Documentation/docname|view]] | [{{fullurl:Modèle:Documentation/docname|action=edit}} edit] | [{{fullurl:Modèle:Documentation/docname|action=history}} history])
| }} |
}}{{
#switch: Documentation |sandbox= |testcases= |#default={{ #switch: Modèle/show |Modèle/show|Utilisateur/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: Modèle:Documentation/docname | Modèle:Documentation/docname | ns:0 }} }}