(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== 用法 == | == 用法 == |
2020年9月3日 (四) 17:28的最新版本
用法
<includeonly>{{Template doc page transcluded}}</includeonly>
- or
<includeonly>{{Template doc page transcluded|pagename}}</includeonly>
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.
- Note: All four add tagged pages properly to Category:模板文档