Template:SUBPAGENAME
Appearance
mw:Help:Magic words#SUBPAGENAME
This page is a soft redirect.
| This page in a nutshell: Never write {{SUBPAGENAME|argument}}. Write {{SUBPAGENAME: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 {{SUBPAGENAME}} is described at Wikipedia:Magic words#Parser functions. An example of its output is:
{{SUBPAGENAME:Template:Example/with/subpages}}→ subpages
If placed on this page without arguments:
{{SUBPAGENAME}}→ SUBPAGENAME
This template should never be used, but when someone uses the magic word "SUBPAGENAME" 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: