قالب:Topic cat/file name/doc
This is a documentation subpage for قالب:Topic cat/file name (see that page for the قالب itself). It contains usage information, categories and other content that is not part of the original قالب page. |
This is a documentation subpage for قالب:Topic cat/file name (see that page for the قالب itself). It contains usage information, categories and other content that is not part of the original قالب page. |
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}}.
This template can be substituted (via subst:
) as well as transcluded.
Examples
page where called | result |
---|---|
Template:Assistant/dwim | {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|Template:Assistant/dwim}}
|
Template:Assistant/dwim/doc | {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|Template:Assistant/dwim/doc}}
|
أخبار المعرفة:Assistant/dwim | {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|أخبار المعرفة:Assistant/dwim}}
|
أخبار المعرفة:Assistant/dwim/doc | {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|أخبار المعرفة:Assistant/dwim/doc}}
|
See also
- {{Documentation}}
This template trims the file extension (the part after the last ".") off a file name.
Usage
Specify the file name as unnamed parameter.
Internals
Uses {{evalx}}. If there is no ".", returns the parameter unchanged. Can be used to produce a slightly civilized alt text when none is specified.