Difference between revisions of "Template:(D)"

From blackwiki
Jump to navigation Jump to search
blackwiki>Plastikspork
m (Protected Template:(D): Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
blackwiki>Plastikspork
(Move to doc page)
Line 1: Line 1:
 
{{#ifexist:{{{1|}}} (disambiguation)|[[{{{1}}} (disambiguation)|{{{1}}}]]|[[{{{1}}}]]}}<noinclude>
 
{{#ifexist:{{{1|}}} (disambiguation)|[[{{{1}}} (disambiguation)|{{{1}}}]]|[[{{{1}}}]]}}<noinclude>
 
+
{{documentation}}
This template is intended for use as a parameter to other templates, such as [[WP:hatnote|hatnote]]s, 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.
 
 
 
Examples:
 
 
 
{{tlx|(D)|Mercury}} -> {{(D)|Mercury}}
 
 
 
{{tlx|(D)|Mercury (planet)}} -> {{(D)|Mercury (planet)}}
 
 
 
{{tlx|(D)|This title does not exist}} -> {{(D)|This title does not exist}}
 
 
 
[[Category:Wikipedia utility templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 22:42, 5 September 2010

[[{{{1}}}]]

Template documentation[view] [edit] [history] [purge]

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