模板:OBJECTPAGENAME/doc
本文件是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}}