Template:Template doc page transcluded:修订间差异

(创建页面,内容为“<div class="notice plainlinks" id="template_doc_page_transcluded">'''这篇文档嵌入自{{{1|{{FU…”)
 
(en)
 
第5行: 第5行:
<!--Add categories and interwikis to the /doc subpage, rather than here-->
<!--Add categories and interwikis to the /doc subpage, rather than here-->
</noinclude>
</noinclude>
<noinclude>[[分类:模板]]</noinclude>
<noinclude>[[分类:模板]][[en:{{FULLPAGENAME}}]]</noinclude>

2019年4月20日 (六) 16:15的最新版本

效果如下:


Use

<includeonly>{{Template doc page transcluded}}</includeonly>
or <includeonly>{{Template doc page transcluded|pagename}}

Place at the top of a template documentation page (usually a "Template:Template name/doc" page) that is transcluded on the template's own page (Template:Template name). If the documentation page is not named "doc" and/or its transclusion is via another subpage (e.g. "Template:Template name/example"), use the second form of syntax above and replace pagename accordingly (i. e. with "example"; it is always supposed that the documentation is on a subpage of the template page.