Template:(D)/doc

< Template:(D)
Revision as of 02:13, 27 April 2020 by Wikipedia>Vanisaac (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other and <includeonly>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is intended for use as a parameter to other templates, such as hatnotes, where it is desired to link to a disambiguation page. The template takes one parameter, which should be a page title; if "page title (disambiguation)" exists, even as a redirect, it returns a piped link to that page; if not, it returns a link to the unmodified parameter.

Usage

{{(D)|article name}}

Examples

{{(D)|Mercury}} -> Mercury

{{(D)|Mercury (planet)}} -> Mercury (planet)

{{(D)|This title does not exist}} -> This title does not exist

See also