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

(merge from offical wiki)
 
(文本替换 - 替换“Category:Templates”为“Category:模板”)
第6行: 第6行:
<!--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>[[Category:Templates]]</noinclude>
<noinclude>[[Category: 模板]]</noinclude>

2022年3月7日 (一) 15:14的版本

Above is shown the template as it looks.

[查看] [编辑]Template-info.png 模板文档

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.