求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

Template:Documentation subpage/doc

增加 1,872 位元組, 6 年前
导入1个版本
{{NoteTADocumentation subpage}}{{high-use|60,000+}} __NOTOC__|G1 = MediaWiki= Usage ==: {{tlx|G2 = ITDocumentation subpage}}: or: {{tlx|Documentation subpage|[[{{var|Page where the documentation [[Wikipedia:Transclusion|transcluded]]}}]]}}本模板显示“模板文档”框,就像您现在看到的这样。
起初用于为模板自动从/doc子页面中显示文档,但也用于显示内联文档。===Userbox documentation===To set this template to use "userbox" and "userbox page" rather than "{{lc:{{ns:Template}}}}" and "{{lc:{{ns:Template}}}} page" or "{{lc:{{ns:User}}}} template" and "{{lc:{{ns:User}}}} template page", use:: {{tlx|Userbox documentation subpage}}: or: {{tlx|Userbox documentation subpage |[[{{var|userbox page}}]]}}
== 用法=Text customization===The parameters {{para|text1}} and/or {{para|text2}} can be used to set the text of, respectively, the template's first and second lines. If ''text1'' is set but not ''text2'', both lines' text will derive from ''text1'':{{Hidden begin |showhide=left |title=With ''text1'' and ''text2''}}<precode><nowiki>{{Documentation subpage |text1='''''text1 appears here''''' |text2='''''text2 appears here'''''}}</nowiki></code>{{Documentation subpage|[''page''] |text1='''''text1 appears here''''' |text2='''''text2 appears here''''' |override={{lc:{{SUBPAGENAME}}<!-- Hack to allow example to appear, even when viewed from [[Template:Documentation subpage]] -->}}}}{{Hidden end}}{{Hidden begin |showhide=left |title=With ''text2'' only}}<code><nowiki>{{Documentation subpage |text2='''''text2 appears here'''''}}</prenowiki></code>{{Documentation subpage |[''page''] |text2='''''text2 appears here''''' |override={{lc:{{SUBPAGENAME}}<!-- Hack to allow example to appear, even when viewed from [[Template:Documentation subpage]] -->}}}}{{Hidden end}}{{Hidden begin |showhide=left |title=With ''text1'' only}}<code><nowiki>{{Documentation subpage |text1='''''text1 appears here'''''}}</nowiki></code>{{Documentation subpage |[''page''] |text1='''''text1 appears here''''' |override={{lc:{{SUBPAGENAME}}<!-- Hack to allow example to appear, even when viewed from [[Template:Documentation subpage]] -->}}}}{{Hidden end}}
或者:===Other parameters==={{para|inhibit|yes}} will prevent this template from generating any categories. (By default, "''Namespace'' documentation pages" (usually [[:Category:Template documentation pages]]) is added, or [[:Category:Documentation subpages without corresponding pages]] if the main page doesn't exist.)
== Display ==This template should normally be placed at the top of /doc pages. It changes output depending on where it is viewed:* On a /doc page, it displays a box explaining template documentation and links to the template page.* On other pages&nbsp;– i.e. pages transcluding the /doc page&nbsp;– the template will not show. The template page itself (which contains <precode>-{}-{{tl|Documentation subpage|}}</code>) will automatically note that the documentation is [[ 内联文档]]Wikipedia:Transclusion|[[页面名称transcluded]]}}</pre>from a subpage.
* '''内联文档'''是显示在框中的文本。== Functions ==* '''页面名称'''指向文档页的名称,用來产生在框顶部右侧<code>-{}-In addition to its message, the template adds pages to [ 查看[:Category:Template documentation pages]], [[:Category:User documentation pages]]</code>和<code>-{}-, or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the [[ 编辑m:Help:Categories#Sort order|sort key]]</code>的特定按鈕。to the page name without namespace: Template:Foo, for example, would be sorted as "Foo", i.e. under "F".
本模板应被放在“== See also =={{Documentation/doc”页面顶端。根据被调用的位置的不同,它会显示不同的消息:see also}}* 在“/doc”页上,它会显示一个文本框,提示这是一个模板说明文档,并提供指向模板本身的链接。{{User Talk Pages}}* 在其他页面上(即[[Wikipedia:嵌入包含|嵌入包含]]“/doc”页的页面),它会该提示说明文档是从一个子页面嵌入包含而来的。{{Userspace Disclaimers}}
==功能==除了提示消息之外,本模板亦将页面分到[[:Category:模板說明文件]]或相似(根据主体空间命名)的分类下,但仅针对拥有子页面功能的名字空间里的说明文档。本模板还会把模板的[[m:Help:Categories#Sort order|排序关键字]]根据不带名字空间名称时的页面名称作相应变动(例如根据“Foo”,“Template:Foo”在分类中会被当做“F”开头的模板排序)。 ==参见==* [[Wikipedia:模板文件页模式]] <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox other||<!-- 本行下加入模板的分類,跨維基連結加入Wikidata(參見[[Wikipedia:Categories below here, please; interwikis to Wikidata]]) .-->[[Category: 模板說明文件Template documentation| {{PAGENAME}}]][[Category: 模板頁的模板Template namespace templates]]
}}</includeonly>
行政員使用者查核員拒收員巡檢員管理員、water、waterc、waterh、waterm、waterp、waters、watert、waterv、waterw、waterz
10,320
次編輯