Template:Documentation:修订间差异
模板页面
更多语言
更多操作
imported>弃权者 无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
<div style="background: | <div class="template-documentation-header" style="padding: 8px 1em 6px 1em; background-color: var(--background-color-base); border-top-left-radius: 8px; border-top-right-radius: 8px; display:flex; align-items: center; justify-content: space-between;"><!-- | ||
--><span style="font-weight: 500; font-size: 16px; display: flex; letter-spacing: 1px; text-transform: uppercase;">{{#switch:{{NAMESPACE}} | |||
<span style="font-weight: | |{{ns:template}}=[[File:Template-info-png.png|50px|link=]] 模板文档 TEMPLATE DOCUMENTATION | ||
{{#switch:{{NAMESPACE}} | |{{ns:module}}=[[File:Template-info-png.png|50px|link=]] 模块文档 TEMPLATE DOCUMENTATION | ||
| | |{{ns:widget}}=[[File:Template-info-png.png|50px|link=]] 小工具文档 WIDGET DOCUMENTATION | ||
| | |#default=文档 | ||
| | }}</span> | ||
|#default=文档 | <span class="editsection plainlinks" style="font-size:small; float: right" id="doc_editlinks">{{#if:{{{content|}}}| | ||
}}</span> | <!--内联文档-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} 编辑]] | ||
<span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks"> | |{{#ifexist: {{{1|{{Documentation/docname}}}}} | ||
{{#if:{{{content|}}} | |<!--**/doc 存在 **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} 查看]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} 编辑]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} 历史]] | ||
|<!--**/doc 不存在**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} 创建]] | |||
|{{#ifexist: {{{1|{{ | }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]] | ||
|[[{{fullurl:{{{1|{{ | }}</span></div> | ||
|[[{{fullurl:{{{1|{{ | <div class="template-documentation" style="background: var(--background-color-base); padding: 1em; border: 1px solid var(--border-color-base); border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;"><!-- | ||
}} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} 刷新]] | --><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!-- | ||
}} | -->{{#if:{{{content|}}}| | ||
</ | <!--内联文档**-->这个[[Wikipedia:zh:模板文件頁模式|文档]]是内联文档。 | ||
|{{#ifexist: {{{1|{{Documentation/docname}}}}} | |||
|<!--**/doc存在**-->这个文档嵌入自[[{{{1|{{Documentation/docname}}}}}]]。 | |||
}} | |||
}} | |||
</div> | |||
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}} | |||
</div> | </div> | ||
<noinclude>[[Category:模板页的模板]]</noinclude> | |||
< | |||
</noinclude> | |||
2026年5月3日 (日) 17:39的最新版本
这个文档嵌入自Template:Documentation/doc。
用法
{{Documentation}}<!--嵌入/doc子页面-->
{{Documentation|content=这里写文档内容}}<!--内联文档-->