Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:Linkifexists"

From Paragon Wiki Archive
Jump to: navigation, search
(See Talk:Chief Interrogator Washington - Undo revision 248467 by Sekoia (talk))
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 15:29, 7 June 2013

{{{1}}}
[edit] [purge] Documentation

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