Template:BASEPAGENAME/doc: Difference between revisions
Template page
More actions
Redirected page to Template:BASEPAGENAME/doc Tag: New redirect |
Removed redirect to Template:BASEPAGENAME/doc Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | {{Documentation subpage|[[Template:BASEPAGENAME]] ''and other similar templates''.}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | |||
{{nutshell|Never write {{!xt|{{{{BASEPAGENAME}}'''|'''''argument''}}}}. Write {{xt|{{{{BASEPAGENAME}}''':'''''argument''}}}} instead.}} | |||
{{transclusionless}} | |||
== Usage == | |||
The magic word {{BASEPAGENAME}} is described at [[Wikipedia:Magic words#Parser functions]]. An example of its output is <code>{{{{BASEPAGENAME}}:{{{example|Template:Example/with/subpages}}}}}</code> → "{{ {{BASEPAGENAME}}:{{{example|Template:Example/with/subpages}}} }}". | |||
This ''template'' should never be used, but when someone uses the [[Wikipedia:Magic_words#Variables|magic word "{{BASEPAGENAME}}"]] with a piped parameter, it will prevent breakage. Parameter 1 will be used as the : parameter, other parameters will be discarded. | |||
The page will be added to the hidden category {{clc|Pages which use a template in place of a magic word}}. | |||
== Tracking category == | |||
* {{clc|Pages which use a template in place of a magic word}} | |||
<includeonly>{{sandbox other|| | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
[[Category:Wikipedia magic word templates]] | |||
[[Category:Templates that add a tracking category]] | |||
}}</includeonly> |
Latest revision as of 00:38, 21 February 2025
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 may have no transclusions. This is because it is substituted by a tool or script, it is used as part of a short-term or less active Wikipedia process, or for some other reason. |
Usage
The magic word BASEPAGENAME is described at Wikipedia:Magic words. An example of its output is {{BASEPAGENAME:Template:Example/with/subpages}}
→ "Example/with".
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.
The page will be added to the hidden category Category:Pages which use a template in place of a magic word (0).
Tracking category