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

De wiki-spl
Aller à la navigation Aller à la recherche
test0>Mr. Stradivarius
(avoid passing {{{content}}} through, as subtemplates only need to know if it is blank or not, per protected edit request)
test0>Mr. Stradivarius
m (undo per talk - this breaks transclusions that use both the "1" and "content" parameters)
Ligne 19 : Ligne 19 :
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
| heading-style = {{{heading-style|}}}
| heading-style = {{{heading-style|}}}
| content = {{#if:{{{content|}}}|1}}
| content = {{{content|}}}


<!--Some namespaces must have the /doc, /sandbox and /testcases  
<!--Some namespaces must have the /doc, /sandbox and /testcases  
Ligne 48 : Ligne 48 :
-->{{documentation/end box2
-->{{documentation/end box2
| preload = {{{preload|}}}  <!--Allow custom preloads-->
| preload = {{{preload|}}}  <!--Allow custom preloads-->
| content = {{#if:{{{content|}}}|1}}
| content = {{{content|}}}
| link box = {{{link box|}}}  <!--So "link box=off" works-->
| link box = {{{link box|}}}  <!--So "link box=off" works-->



Version du 12 juillet 2013 à 10:23

{{#ifeq: Documentation | sandbox

|

Modèle:Template sandbox notice

}}Modèle:Template otherModèle:Documentation/start box2 {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:Modèle:Documentation/docspace:Modèle:Documentation/template page/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ Modèle:Documentation/docspace:Modèle:Documentation/template page/doc }} | 0000 | 0100 | 0010 | 0101 = }} Modèle:Documentation/end box2