Template:BASEPAGENAME/doc
Appearance
| This is a documentation subpage for Template:BASEPAGENAME and other similar templates. It may contain usage information, categories and other content that is not part of the original template page. |
| This page in a nutshell: Never write {{BASEPAGENAME|argument}}. Write {{BASEPAGENAME:argument}} instead. |
| This template should have no transclusions. This is because it is a replacement to prevent breakage if editors attempt to invoke the magic word of the same name using a pipe instead of a colon. |
Usage
[edit]The magic word {{BASEPAGENAME}} is described at Wikipedia:Magic words#Parser functions. An example of its output is:
{{BASEPAGENAME:Template:Example/with/subpages}}→ Example/with
If placed on this page without arguments:
{{BASEPAGENAME}}→ BASEPAGENAME
This template should never be used, but when someone uses the magic word "BASEPAGENAME" with a piped parameter, it will prevent breakage. Parameter 1 will be used as the : parameter, other parameters will be discarded.
Tracking category
[edit]The page will be added to the hidden category: