模板:OBJECTPAGENAME
外观
Template:OBJECTPAGENAME
Usage
[编辑]Returns the name of the non-documentation page presumably associated with the transcluding page: returns {{FULLPAGENAME}} with a /doc
suffix, if any, stripped off.
Use on a documentation subpage names the documented page (the object of the documentation) both when viewing the subpage directly and when transcluding it on the documented page.
An optional unnamed parameter specifies a name to use in place of {{FULLPAGENAME}}.
Examples
[编辑]page where called | result |
---|---|
Template:Assistant/dwim | Template:Assistant/dwim
|
Template:Assistant/dwim/doc | Template:Assistant/dwim
|
Wikinews:Assistant/dwim | Wikinews:Assistant/dwim
|
Wikinews:Assistant/dwim/doc | Wikinews:Assistant/dwim
|
See also
[编辑]- {{Documentation}}
上述文档嵌入自Template:OBJECTPAGENAME/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |