Template:Linkifexists/doc

From City of Heroes: Rebirth - Wiki
Revision as of 06:13, 29 June 2012 by imported>Sekoia (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> ==Usage== This will link to a page if the target exists. Otherwise, it will ju...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
This is a documentation subpage for Template:Linkifexists (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Usage

This will link to a page if the target exists. Otherwise, it will just display the name without a link. There are several ways to call it:

  • {{linkifexists|Page Name}}
  • {{linkifexists|Page Name|Display Name}}
  • {{linkifexists|page=Page Name}}
  • {{linkifexists|page=Page Name|name=Display Name}}

Examples

Target Exists Target Doesn't Exist
Template Call Result Template Call Result
{{linkifexists|Main Page}} Main Page {{linkifexists|Fake Page}} Fake Page
{{linkifexists|Main Page|Home}} Home {{linkifexists|Fake Page|Home}} Home
{{linkifexists|page=Main Page}} Main Page {{linkifexists|page=Fake Page}} Fake Page
{{linkifexists|page=Main Page|name=Home}} Home {{linkifexists|page=Fake Page|name=Home}} Home