Πρότυπο:Τεκμηρίωση προτύπου: Διαφορά μεταξύ των αναθεωρήσεων

Από Βικιθήκη
Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
Globex (συζήτηση | Συνεισφορά)
Χωρίς σύνοψη επεξεργασίας
Globex (συζήτηση | Συνεισφορά)
Χωρίς σύνοψη επεξεργασίας
Γραμμή 1: Γραμμή 1:
<!--
<!--
Start of green doc box
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|}}}}}
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
}}<!--
| <!--"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|}}}
-->{{template other
| {{{heading-style|}}}
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
| {{pp-template|docusage=yes}}
| font-weight: bold; font-size: 125%
| {{#if: {{PROTECTIONLEVEL:edit}}
| {{pp-template|docusage=yes}}
| font-size: 150%
| <!--Not protected, or only semi-move-protected-->
}}
}}
}}">{{#switch: {{{heading|¬}}}
}}
| ¬ =
}}<!--
<!--"heading" not defined in this or previous level-->
Start of green doc box.
{{#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
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
| {{ns:File}} = Summary
| heading-style = {{{heading-style|}}}
| #default = Documentation
| content = {{{content|}}}
}}

| #default =
<!--Some namespaces must have the /doc, /sandbox and /testcases
<!--"heading" has data or is empty but defined-->
in talk space-->
{{{heading|}}}
| docspace = {{documentation/docspace}}
}}</span>{{

#if: {{{content|}}}
| 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}}}

| &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|view]]&#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}]
}}<!-- Start content --><!--
Start load the /doc 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
| 1111 = {{{content|}}}
| 0110 | 0111 = {{ {{{1}}} }}
}} }} }} 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>


{{pp-template}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Αναθεώρηση της 22:01, 14 Δεκεμβρίου 2013

Documentation icon Template documentation[view] [edit] [history] [[[:Πρότυπο:Purge]]]

Πρότυπο:Pp-template