Πρότυπο:Τεκμηρίωση προτύπου: Διαφορά μεταξύ των αναθεωρήσεων
Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
Globex (συζήτηση | Συνεισφορά) Χωρίς σύνοψη επεξεργασίας |
Globex (συζήτηση | Συνεισφορά) Χωρίς σύνοψη επεξεργασίας |
||
Γραμμή 1: | Γραμμή 1: | ||
<!-- |
<!-- |
||
⚫ | |||
Automatically add {{template sandbox notice}} when on a /sandbox page. |
|||
--><div id="template-documentation" class="template-documentation iezoomfix"><!-- |
|||
-->{{#ifeq: {{SUBPAGENAME}} | sandbox |
|||
Add the heading at the top of the doc box: |
|||
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}} |
|||
⚫ | |||
}}<!-- |
|||
| <!--"heading=", do nothing--> |
|||
Automatically add {{pp-template}} to protected templates. |
|||
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"><span style="{{#if: {{{heading-style|}}} |
|||
⚫ | |||
⚫ | |||
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop |
|||
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}} |
|||
| {{pp-template|docusage=yes}} |
|||
| font-weight: bold; font-size: 125% |
|||
| {{#if: {{PROTECTIONLEVEL:edit}} |
|||
| |
| font-size: 150% |
||
| <!--Not protected, or only semi-move-protected--> |
|||
}} |
}} |
||
}}">{{#switch: {{{heading|¬}}} |
|||
⚫ | |||
| ¬ = |
|||
}}<!-- |
|||
<!--"heading" not defined in this or previous level--> |
|||
⚫ | |||
{{#switch: {{SUBJECTSPACE}} |
|||
-->{{documentation/start box2 |
|||
| {{ns:Template}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Template documentation |
|||
| preload = {{{preload|}}} <!--Allow custom preloads--> |
|||
| {{ns:Module}} = [[File:Template-info.png|50px|link=|alt=Documentation icon]] Module documentation |
|||
⚫ | |||
| {{ns:File}} = Summary |
|||
⚫ | |||
| #default = Documentation |
|||
⚫ | |||
⚫ | |||
| #default = |
|||
<!--Some namespaces must have the /doc, /sandbox and /testcases |
|||
<!--"heading" has data or is empty but defined--> |
|||
in talk space--> |
|||
⚫ | |||
| docspace = {{documentation/docspace}} |
|||
}}</span>{{ |
|||
⚫ | |||
| 1 = {{{1|}}} <!--Other docname, if fed--> |
|||
| |
|||
| <!--Add the [view][edit][history][purge] or [create] links--> |
|||
<!--The namespace is added in /start box2--> |
|||
<span class="mw-editsection plainlinks" id="doc_editlinks">{{ |
|||
| template page = {{documentation/template page}} |
|||
#if: {{{doc exist|yes}}} |
|||
| [[[{{{docpage|{{FULLPAGENAME}}/doc}}}|view]]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}] |
|||
}}<!-- Start content --><!-- |
|||
| <!--/doc doesn't exist--> |
|||
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{ |
|||
Note: The line breaks between this comment and the next line are necessary |
|||
#if: {{{preload|}}} |
|||
so "=== Headings ===" at the start and end of docs are interpreted. |
|||
| {{urlencode:{{{preload}}}}} |
|||
--> |
|||
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}} |
|||
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}} |
|||
| Template:Documentation/preload-filespace |
|||
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 |
|||
| Template:Documentation/preload |
|||
⚫ | |||
}} }} }} create]] |
|||
}}</span> |
|||
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }} |
|||
}}</div> |
|||
| 0000 | 0100 | 0010 | 0101 = |
|||
}}<noinclude><!-- close the div --></div> |
|||
}} |
|||
<!-- |
|||
End load the /doc content: |
|||
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 |
|||
| preload = {{{preload|}}} <!--Allow custom preloads--> |
|||
| content = {{{content|}}} |
|||
| link box = {{{link box|}}} <!--So "link box=off" works--> |
|||
<!--Some namespaces must have the /doc, /sandbox and /testcases |
|||
in talk space--> |
|||
| docspace = {{documentation/docspace}} |
|||
| 1 = {{{1|}}} <!--Other docname, if fed--> |
|||
<!--The namespace is added in /end box2--> |
|||
| template page = {{documentation/template page}} |
|||
}}<!-- |
|||
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> |