跳转到内容

模板:Documentation:修订间差异

来自天灾之下:危险连接资料站
bwiki>43881503
小 已保护“模板:Documentation”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))
 
wiki>月海伦娜
小 已从warcraft:模板:Documentation导入1个版本:​interwiki import
第1行: 第1行:
<div class="template-documentation" style="background: aliceblue; padding: 1em; border: 1px solid #aaa;"><!--
<div class="" style="padding:0px 1px;clear: both;"><div class="darken" style="padding:0.5em 0.5em 0.5em 1em;">'''模板文档''' <span style="font-size: 85%;">(本页面所展示的模板范例,有时会无法出现。) &nbsp;&nbsp; [[h:Help:模板|<span class="btn btn-primary">什么是模板?</span>]]</span>&nbsp;[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} <span class="btn btn-primary">编辑]</span>&nbsp;[{{fullurl:{{FULLPAGENAME}}|action=purge}} <span class="btn btn-primary"><span title="Refresh this page">刷新</span></span>]</div> <div class="" style="background:rgba(224, 223, 223, 0.16);padding: 1em; margin: 0.5em 0;">{{
--><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!--
    #if: {{{content|}}}
    --><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}}
    | <nowiki/>
    |{{ns:template}}=[[File:Template-info.png|50px|link=]] 模板文档
{{{content}}}
    |{{ns:module}}=[[File:Template-info.png|50px|link=]] 模块文档
     | 关于本模板:
    |{{ns:widget}}=[[File:Template-info.png|50px|link=]] 小工具文档
       
    |#default=文档
{{
  }}</span>&nbsp;&nbsp;<span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}|
      #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}
      <!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]]
      |{{{{
     |{{#ifexist: {{{1|{{Documentation/docname}}}}}
        #ifeq: {{NAMESPACE}} | {{ns:Template}}
      |<!--**/doc 存在  **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} 查看]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} 历史]]
        || :{{NAMESPACE:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}} }}}}:
      |<!--**/doc 不存在**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} 创建]]
      }}{{ #if: {{{1|}}} | {{PAGENAME:{{{1}}}}} | {{PAGENAME}}/doc}} }}
     }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]]
      | :<strong class="error">这个模板暂时没有说明文档。</strong>你可以[{{fullurl:{{ #if: {{{1|}}} | {{ urlencode: {{{1}}} }} | {{FULLPAGENAMEE}}/doc }}|action=edit&preload=Template:Documentation/preload}} 创建模板文档]。{{
  }}</span></div><!--
        #ifeq: {{NAMESPACE}} | {{ns:10}}
--><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!--
        | 在 [[h:templatemanager:{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}|灰机模板仓库]] 上面有大量可以复制的现成模板。     }}[[Category:Templates without documentation|{{PAGENAME}}]]
  -->{{#if:{{{content|}}}|
    }}
      <!--内联文档**-->这个[[zhwiki:Wikipedia:模板文件頁模式|文档]]是内联文档。
  }}  </div> <div class="darken" style="clear: both; padding: 0.5em; margin: 0.5em 0; font-size: 85%; text-align: right;">{{
      |{{#ifexist: {{{1|{{Documentation/docname}}}}}
    #if: {{{content|}}}
        |<!--**/doc存在**-->这个[[Wikipedia:模板文件頁模式|文档]][[Wikipedia:嵌入包含|嵌入]]自[[{{{1|{{Documentation/docname}}}}}]]。
    | [{{fullurl:{{FULLPAGENAMEE}}|action=edit}} Edit this page]
      }}
    | 进入 {{
    }}
      #ifexist: {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}
</div>
      | [[{{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}]]
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}}
      | [{{fullurl:{{ #if: {{{1|}}} | {{ urlencode: {{{1}}} }} | {{FULLPAGENAMEE}}/doc }}|action=edit&preload=Template:Documentation/preload}} {{ #if: {{{1|}}} | {{{1}}} | {{FULLPAGENAME}}/doc }}]
</div>
    }}}} 页面来编辑这个模板的说明文档。([[Template:Documentation|这个说明框是怎么回事]]?)<br />修改完毕后,请[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]上面的文本。([[h:帮助:Huiji缓存|为什么?]])</div></div><noinclude>{{优质模板|功能}}[[Category:已经本地化的模板]][[Category:huiji template]]</noinclude>
<noinclude>[[Category:元模板]]</noinclude>

2024年10月29日 (二) 12:02的版本

模板文档 (本页面所展示的模板范例,有时会无法出现。)    什么是模板? 编辑 刷新
关于本模板:

Usage

Customizing display

Overrides exist to customize the output in special cases:

  • {{documentation|heading=}}: change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.

Rationale

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, categories, and interwiki links. It also reduces server resources by circumventing a technical limitation of templates (see a developer's explanation).

See also

This template allows to generate the documentation part of a given template.

模板参数

参数描述类型状态
contentcontent

defines the body of the documentation part

字符串可选
headingheading

allows to customise the header of the documentation part

字符串可选
进入 模板:Documentation/doc 页面来编辑这个模板的说明文档。(这个说明框是怎么回事?)
修改完毕后,请刷新上面的文本。(为什么?)

模板:优质模板