今天是2024年11月22日 第47周 星期五

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

“Template:Documentation”的版本间的差异

来自Akarin
跳到导航 跳到搜索
enmgp>CFSO6459
(English-fy (translation from ZH -> EN))
第1行: 第1行:
<div class="template-documentation" style="background: aliceblue; padding: 1em; border: 1px solid #aaa;"><!--
+
{{#ifeq: {{SUBPAGENAME}} | sandbox
--><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!--
+
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
   --><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}}
+
}}<!--
   |{{ns:template}}=[[File:Template-info.svg|50px|link=]] Template Document
+
  Automatically add {{pp-template}} to protected templates.
   |{{ns:module}}=[[File:Template-info.svg|50px|link=]] Module Document
+
-->{{template other
    |{{ns:widget}}=[[File:Template-info.svg|50px|link=]] Widget Document
+
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
    |#default=Document
+
  | {{pp-template|docusage=yes}}
   }}</span>&nbsp;&nbsp;<span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}|
+
  | {{#if: {{PROTECTIONLEVEL:edit}}
    <!--Inlined Document-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit]]
+
    | {{pp-template|docusage=yes}}
    |{{#ifexist: {{{1|{{Documentation/docname}}}}}
+
    | <!--Not protected, or only semi-move-protected-->
    |<!--**/doc exist **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} View]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} Edit]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} History]]
+
   }}
    |<!--**/doc not exist**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} Create]]
+
   }}
   }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh]]
+
}}<!--
  }}</span></div><!--
+
  Start of green doc box.
  --><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!--
+
-->{{documentation/core2
  -->{{#if:{{{content|}}}|
+
| preload = {{{preload|}}}   <!--Allow custom preloads-->
    <!--Inlined Document**-->This [[enwiki:Wikipedia:Template documentation|document]] is Inlined Document。
+
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
    |{{#ifexist: {{{1|{{Documentation/docname}}}}}
+
| heading-style = {{{heading-style|}}}
     |<!--**/doc exist**-->This [[enwiki:Wikipedia:Template documentation|document]][[enwiki:Wikipedia:Transclusion|transclude]] from [[{{{1|{{Documentation/docname}}}}}]]。
+
| content = {{{content|}}}
    }}
+
 
   }}
+
<!--Some namespaces must have the /doc, /sandbox and /testcases
</div>
+
    in talk space-->
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
+
| docspace = {{documentation/docspace}}
</div>
+
 
<noinclude>[[Category:Template of template page]]</noinclude>
+
| 1 = {{{1|}}}  <!--Other docname, if fed-->
 +
 
 +
<!--The namespace is added in /start box2-->
 +
| template page = {{documentation/template page}}
 +
 
 +
}}<!-- Start content --><!--
 +
  Start load the /doc content:
 +
  Note: The line breaks between this comment and the next line are necessary
 +
  so "=== Headings ===" at the start and end of docs are interpreted.
 +
-->
 +
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/doc|1|0}}
 +
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
 +
| 1111 = {{{content|}}}
 +
| 0110 | 0111 = {{ {{{1}}} }}
 +
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/doc }}
 +
| 0000 | 0100 | 0010 | 0101
 +
}}
 +
<!--
 +
  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}}
 +
 
 +
}}<noinclude><!--  End of green doc box--></noinclude>

2018年2月11日 (日) 11:36的版本