« Modèle:Documentation » : différence entre les versions
Aller à la navigation
Aller à la recherche
test0>Cenarium (rv, not much use here) |
test0>Davidgothberg (Adding automatic adding of {{pp-template}} to protected templates. See talk page.) |
||
Ligne 1 : | Ligne 1 : | ||
<div class="template-documentation"><!-- | <!--Automatically add {{pp-template}} to protected templates--> | ||
{{template other | |||
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop | |||
| {{pp-template}} | |||
| {{#if: {{PROTECTIONLEVEL:edit}} | |||
| {{pp-template}} | |||
| <!--Not protected, or only semi-move-protected--> | |||
}} | |||
}} | |||
}}<!-- | |||
Start of green doc box. | |||
--><div class="template-documentation"><!-- | |||
These are the literal class definitions in MediaWiki:Common.css: | |||
/* For template documentation */ | /* For template documentation */ | ||
.template-documentation { | .template-documentation { | ||
Ligne 43 : | Ligne 54 : | ||
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}} | {{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}} | ||
<div style="clear: both;"></div> | <div style="clear: both;"></div> | ||
</div><noinclude> | </div><!--End of green doc box--><noinclude> | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Version du 3 janvier 2010 à 07:51
{{#ifeq:μ|
||
{{#ifeq:μ|μ
}} |{{#ifexist: Modèle:Documentation/docname
|[[{{fullurl:Modèle:Documentation/docname|action=edit}} edit]] [[[:Modèle:Purge]]]
|[[{{fullurl:Modèle:Documentation/docname|action=edit&preload=Template:Documentation/preload}} create]]
}}
}} {{#if:|{{{heading}}}|{{#ifeq:Modèle|Modèle| Template documentation|Documentation}}}}{{#ifexist: Modèle:Documentation/docname
|This documentation is transcluded from [[Modèle:Documentation/docname]]. ([{{fullurl:Modèle:Documentation/docname|action=edit}} edit] | [{{fullurl:Modèle:Documentation/docname|action=history}} history])
}}{{#switch: Documentation |sandbox|testcases= |#default= {{#switch: Modèle |Modèle |Utilisateur= {{#ifexist: Modèle:Documentation/sandbox |This template has a sandbox ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit]) {{#ifexist: Modèle:Documentation/testcases |and testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])}} for editors to experiment. |{{#ifexist: Modèle:Documentation/testcases |This template has testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit]) for editors to experiment.}} }}}}}}
{{#if:|{{{content}}}|{{#ifexist:Modèle:Documentation/docname | {{ Modèle:Documentation/docname }} }}}}