Template:Slashtitle/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Caesar Schinas (New page: <!-- Do not remove this line. Replace the instructions below with the correct documentation. --> === Usage === To handle articles with a "/" in their name, due to technical limitations it ...) |
Pat Palmer (talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
First, place the article at a name with the "/" replaced by a "-". Insert this template at the ''very top'' of the article (i.e. above the {{tl|subpages}}), replacing ''articletitle'' with the title of the article (with the "/" instead of the "-"). Finally, create a {{MW|Help:Redirect|redirect}} from the correct name (with a "/") to the name the article is actually at (with the "-"). | First, place the article at a name with the "/" replaced by a "-". Insert this template at the ''very top'' of the article (i.e. above the {{tl|subpages}}), replacing ''articletitle'' with the title of the article (with the "/" instead of the "-"). Finally, create a {{MW|Help:Redirect|redirect}} from the correct name (with a "/") to the name the article is actually at (with the "-"). | ||
It should only be used in special circumstances, such as [[9/11 Attack]]. | It should only be used in special circumstances, such as [[9/11 Attack|9/11]]. | ||
''Note'': ''articletitle'' cannot include a "=" character; if so, replace it with a {{tl|1==}}. | ''Note'': ''articletitle'' cannot include a "=" character; if so, replace it with a {{tl|1==}}. | ||
=== Example === | === Example === | ||
<code><nowiki>{{slashtitle|9 | <code><nowiki>{{slashtitle|9-11 Attack}}</nowiki></code> | ||
gives | gives | ||
{{slashtitle|9 | {{slashtitle|9-11 Attack}} |
Latest revision as of 09:10, 28 May 2024
Usage
To handle articles with a "/" in their name, due to technical limitations it is necessary to take special steps.
First, place the article at a name with the "/" replaced by a "-". Insert this template at the very top of the article (i.e. above the {{subpages}}), replacing articletitle with the title of the article (with the "/" instead of the "-"). Finally, create a redirect from the correct name (with a "/") to the name the article is actually at (with the "-").
It should only be used in special circumstances, such as 9/11.
Note: articletitle cannot include a "=" character; if so, replace it with a {{=}}.
Example
{{slashtitle|9-11 Attack}}
gives
Due to technical limitations, this article uses an unusual title. It should be called 9-11 Attack.