Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 20:15, 23 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> NOTE: This template has confusing behaviour, poor incomplete documentation, and produces invalid wikitext in some cases. The template is a way of creating optional links based on whether the target exists or not. It is presently used in {{tl|culture of region}}, as that template uses the logic in question so many times that transcluding it every time would lead to cluttered cod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NOTE: This template has confusing behaviour, poor incomplete documentation, and produces invalid wikitext in some cases.

The template is a way of creating optional links based on whether the target exists or not.

It is presently used in {{culture of region}}, as that template uses the logic in question so many times that transcluding it every time would lead to cluttered code.

Usage

{{linkexist|page|linktext|alternative}}

If alternative is specified, the template will link to that title. Otherwise, the template will link to page if it exists. linktext, if specified, will be the label for the link (or unlinked output).

Examples

{{linkexist|History of Ghana}}


{{linkexist|History of Ghana|History}}


{{linkexist|History of Ghana|History|Culture of Ghana}}

History

See also