打开/关闭搜索
搜索
打开/关闭菜单
10
29
3
584
大天使虫洞百科
导航
首页
加入EVE Online
资助甲虫
最近更改
随机页面
特殊页面
上传文件
外部链接
zKillboard
大天使对外频道(QQ)
大天使边境要塞(Discord)
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁Template:Documentation/doc”︁的源代码
模板页面
更多语言
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
Template:Documentation/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{NoteTA|G1=MediaWiki|G2=IT}}{{Documentation subpage}}{{High-use|1=20550}}{{Uses Lua|Module:Documentation}} == 概要 == {{See also|Wikipedia:模板文件頁模式}} 这个模板自动显示“模板文档”框,就像你现在看到的这样,文档框中的内容由其它页面生成。 == 參數及使用方法 == # 在主模板中增加<syntaxhighlight lang=wikitext inline><noinclude>{{Documentation}}</noinclude></syntaxhighlight>。 # 点击“编辑”链接,它将打开/doc子页面,并在那里填写文档。 # 將分類增加在/doc子頁面的<syntaxhighlight lang=wikitext inline><includeonly></includeonly></syntaxhighlight>中。 === 正常的/doc子页面 === <syntaxhighlight lang="wikitext"> <noinclude>{{Documentation}}</noinclude> </syntaxhighlight> === 任意/doc子页面 === <syntaxhighlight lang="wikitext"> <noinclude>{{Documentation|Template:any page/doc}}</noinclude> </syntaxhighlight> === 内联内容 === -{zh-hans:<syntaxhighlight lang="wikitext"> <noinclude>{{Documentation|content=这是一个文档。}}</noinclude> </syntaxhighlight>; zh-hant:<syntaxhighlight lang="wikitext"> <noinclude>{{Documentation|content=這是一個文件。}}</noinclude> </syntaxhighlight>;}- === 有[查看][编辑]链接的内联内容 === <syntaxhighlight lang="wikitext"> <noinclude>{{Documentation |1 = Template:模板名/doc |content = {{Template:模板名/doc|参数}} }}</noinclude> </syntaxhighlight> === 最佳用法 === 此代码应该放置在模板代码的底部“<syntaxhighlight lang=wikitext inline><noinclude></syntaxhighlight>”之前且不加多余的空格(否则会导致使用该模板的页面上出现多余空格)。参数可以像上面这样来使用以包含任意文档页。 用于模板本身的分类链接应该用 <syntaxhighlight lang=wikitext inline><includeonly> </includeonly></syntaxhighlight> 标签来添加到文档页面。 更复杂的案例请参见 [[Wikipedia:模板文件頁模式#分类链接]]。 如果文档页包含 <code>includeonly</code> 或 <code>noinclude</code> 标签并作为文档的一部分,请用“<code>&lt;</code>”替代“<code><</code>”。 請勿在/doc子頁面裡再掛上{{tlx|Documentation}},以避免出錯。 {{Documentation/TemplateData}} == 重定向 == *{{Tl|Doc}} *{{Tl|Documentation, template}} *{{Tl|Documentations}} *{{Tl|Template doc}} *{{Tl|Template doc page}} *{{Tl|Template doc page transcluded}} *{{[[Template:模板文件|-{模板文件}-]]}} *{{[[Template:模板文档|-{模板文档}-]]}} *{{Tl|帮助文档}} <includeonly>{{Sandbox other|| [[Category:模板說明文件|D]] [[Category:模板頁的模板|D]] [[Category:Lua模板|D]] }}</includeonly>
返回
Template:Documentation/doc
。
查看“︁Template:Documentation/doc”︁的源代码
模板页面