« Modèle:Documentation » : différence entre les versions

Contenu supprimé Contenu ajouté
automatically say if templates are protected
avoid passing {{{content}}} through, as subtemplates only need to know if it is blank or not, per protected edit request
Ligne 1 :
{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}|{{Protected}}}}
{| style="height:10px"
|-
|
|-
|}
{| style="width: 100%; background-color:#ECFCF4; border:1px solid #b9c9c1; box-shadow: 0 0 .1em #999; border-radius: .2em;"
| style="padding: 5px;" |
<!--
Automatically add {{template sandbox notice}} when on a /sandbox page.
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
}}<!--
Automatically add {{pp-template}} to protected templates.
-->{{template other
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
| {{pp-template|docusage=yes}}
| {{#if: {{PROTECTIONLEVEL:edit}}
| {{pp-template|docusage=yes}}
| <!--Not protected, or only semi-move-protected-->
}}
}}
}}<!--
Start of green doc box.
-->{{documentation/start box2
Ligne 13 ⟶ 19 :
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
| heading-style = {{{heading-style|}}}
| content = {{#if:{{{content|}}}|1}}
 
<!--Some namespaces must have the /doc, /sandbox and /testcases
Ligne 40 ⟶ 46 :
Note: The line breaks between this comment and the previous line are necessary
so "=== Headings ===" at the start and end of docs are interpreted.
-->{{documentation/end box2
-->
|-
|}
{{documentation/end box2
| preload = {{{preload|}}} <!--Allow custom preloads-->
| content = {{#if:{{{content|}}}|1}}
| link box = {{{link box|}}} <!--So "link box=off" works-->
 
Ligne 59 ⟶ 62 :
}}<!--
End of green doc box
--><noinclude>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<noinclude>
[[Category:Subtemplates]]
</noinclude>