模板:Documentation:修订间差异

来自兽耳维基
abaaba>屠麟傲血
(已保护“Template:Documentation”:​重要的模板/模块帮助文档([编辑=仅允许管理员和巡查姬](无限期)[移动=仅允许管理员](无限期)))
 
(导入1个版本)
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
<div class="template-documentation" style="background: aliceblue; padding: 1em; border: 1px solid #aaa;"><!--
<includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude>
--><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!--
{{documentation|content=
    --><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}}
 
    |{{ns:template}}=[[File:Template-info.svg|50px|link=]] 模板文档
{{Lua|Module:Documentation}}
    |{{ns:module}}=[[File:Template-info.svg|50px|link=]] 模块文档
This template automatically displays a documentation box like the one you are seeing now, of which the content is sometimes transcluded from another page.
    |{{ns:widget}}=[[File:Template-info.svg|50px|link=]] 小部件文档
<translate><!--T:13--> It is intended for pages which are [[<tvar name=1>Special:MyLanguage/Help:Transclusion</tvar>|transcluded]] in other pages, i.e. templates, whether in the template namespace or not.</translate>
    |#default=文档
 
  }}</span>&nbsp;&nbsp;<span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}|
<translate>
      <!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]]
==Usage== <!--T:2-->
    |{{#ifexist: {{{1|{{Documentation/docname}}}}}
 
      |<!--**/doc 存在  **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} 查看]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} 历史]]
===Customising display=== <!--T:3-->
      |<!--**/doc 不存在**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} 创建]]
 
    }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]]
<!--T:4-->
  }}</span></div><!--
Overrides exist to customise the output in special cases:
--><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!--
</translate>
  -->{{#if:{{{content|}}}|
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - <translate><!--T:5--> change the text of the "documentation" heading.</translate> <translate><!--T:10--> If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.</translate>
      <!--内联文档**-->这个[[zhwp:Wikipedia:模板文件頁模式|文档]]是内联文档。
 
      |{{#ifexist: {{{1|{{Documentation/docname}}}}}
<translate>
        |<!--**/doc存在**-->这个[[zhwp:Wikipedia:模板文件頁模式|文档]][[zhwp:Wikipedia:嵌入包含|嵌入]]自[[{{{1|{{Documentation/docname}}}}}]]
==Rationale== <!--T:6-->
      }}
</translate>
    }}
<translate><!--T:7--> This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation and categories.</translate>
</div>
<translate><!--T:8--> It also reduces server resources by circumventing a [[w:Wikipedia:Template limits|technical limitation of templates]] (see a [[<tvar name=1>:en:Special:Diff/69888944</tvar>|developer's explanation]]).</translate>
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
 
</div>
<translate>
==See also== <!--T:9-->
</translate>
* <translate><!--T:14--> [[w:Template:Documentation subpage]]</translate>
* {{tim|Documentation}}
* <translate><!--T:11--> [[w:Wikipedia:Template documentation]]</translate>
}}
</noinclude>

2025年9月2日 (二) 00:40的最新版本

脚本错误:没有“documentation”这个模块。