Difference between revisions of "Template:Documentation"

From Wazeopedia
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
     <div style="border:solid 2px #93C4D3; border-radius: 2px; margin: 5px; background: #8AC007; padding: .5em 1em 0em; background-color:transparent; color:#000;zoom: 1">
+
     <div style="border:solid 1px #93C4D3; border-radius: 2px; margin: 0; background: #dfecf0; padding: .5em .5em 0em;">
{{#ifexist:: {{{1|}}}
+
{{#switch: {{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{FULLPAGENAME}}/doc|1|0}}
| {{#ifexist:: :{{{1|}}} | {{ :{{{1|}}} }} | <h3>Page not found</h3> }}
+
| 000 | 100 | 010 | 101 = <!-- nothing -->
| {{#ifexist:: {{PAGENAME}}/doc | {{ {{PAGENAME}}/doc }} | <h3>Page not found</h3> }}
+
| 001 | 011 = [[File:Link.png|15px|text-top|right|link={{FULLPAGENAME}}/doc|link]]
 +
| 110 | 111 = [[File:Link.png|15px|text-top|right|link={{{1|}}}|link]]
 +
}}
 +
{{#switch: {{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{FULLPAGENAME}}/doc|1|0}}
 +
| 000 | 100 | 010 | 101 = <h4>Page not found</h4>
 +
| 001 | 011 = {{ {{FULLPAGENAME}}/doc }}
 +
| 110 | 111 = {{ {{{1|}}} }}
 
}}
 
}}
 
     </div>
 
     </div>
 
</includeonly>
 
</includeonly>
 
+
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>[[Category:Шаблони]]</noinclude>
 
<noinclude>[[Category:Шаблони]]</noinclude>

Latest revision as of 08:37, 3 April 2019


link

Приклад використання:

 {{Documentation}}
 {{Documentation|Scripts}}