Template:Disambiguation: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(My first template! Should simplify the process of creating disambiguation pages. Original wikitext by Chunky104.)
 
(search link now automatically tries to search for the set page name.)
Line 2: Line 2:
{|
{|
|style="vertical-align:middle;"|[[File:Direction_Splitter_Icon.png|48px|link=|top]]
|style="vertical-align:middle;"|[[File:Direction_Splitter_Icon.png|48px|link=|top]]
|''This '''disambiguation''' page lists articles associated with the title '''{{{pagename|{{FULLPAGENAME}}}}}'''. Please follow one of the links above, or use the [[Special:Search|search]] feature if the page you're looking for isn't listed here.<br>If an internal link lead you here, you might want to go back and change it to point directly to the intended page.''
|''This '''disambiguation''' page lists articles associated with the title '''{{{pagename|{{FULLPAGENAME}}}}}'''. Please follow one of the links above, or use the <span class="plainlinks">[//{{SERVERNAME}}/Special:Search/{{{pagename|{{FULLPAGENAME}}}}}?fulltext=1 search]</span> feature if the page you're looking for isn't listed here.<br>If an internal link lead you here, you might want to go back and change it to point directly to the intended page.''
|}
|}
<hr>
<hr>
Line 8: Line 8:
Use this template to add a disambiguation indicator to the page.
Use this template to add a disambiguation indicator to the page.
== Usage ==
== Usage ==
By default, the displayed name is the page's name, and the page will be categorized under [[:Category:Disambiguation]].
By default, the displayed name and search link's destination is the page's name, and the page will be categorized under [[:Category:Disambiguation]].
*Setting the parameter <code>pagename=</code> to your desired text will change the displayed title.
*Setting the parameter <code>pagename=</code> to your desired text will change the displayed title and the search link's destination.
*Setting the parameter <code>nocat=y</code> will not include the page under the disambiguation category.
*Setting the parameter <code>nocat=y</code> will not include the page under the disambiguation category.
== Example ==
== Example ==
<pre>{{Disambiguation|pagename=Introduction|nocat=y}}</pre>
<pre>{{Disambiguation|pagename=Introduction|nocat=y}}</pre>
The above text will produce the below result:{{Disambiguation|pagename=Introduction|nocat=y}}[[Category:Templates]]</noinclude>
The above text will produce the below result:{{Disambiguation|pagename=Introduction|nocat=y}}[[Category:Templates]]</noinclude>

Revision as of 02:41, 20 April 2024


File:Direction Splitter Icon.png This disambiguation page lists articles associated with the title Template:Disambiguation. Please follow one of the links above, or use the search feature if the page you're looking for isn't listed here.
If an internal link lead you here, you might want to go back and change it to point directly to the intended page.

Use this template to add a disambiguation indicator to the page.

Usage

By default, the displayed name and search link's destination is the page's name, and the page will be categorized under Category:Disambiguation.

  • Setting the parameter pagename= to your desired text will change the displayed title and the search link's destination.
  • Setting the parameter nocat=y will not include the page under the disambiguation category.

Example

{{Disambiguation|pagename=Introduction|nocat=y}}

The above text will produce the below result:


File:Direction Splitter Icon.png This disambiguation page lists articles associated with the title Introduction. Please follow one of the links above, or use the search feature if the page you're looking for isn't listed here.
If an internal link lead you here, you might want to go back and change it to point directly to the intended page.