Template:Wp

From TrainzOnline
Revision as of 14:14, 12 June 2013 by Fabartus (talk | contribs) (genesis)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
usage

This {{Wp|1|2}} template links to the English Wikipedia page give as the first parameter {{{1}}}, and pretty-ups the link to the article's page by an alternative text name or phrase if and when given a second parameter {{{2}}}, else displays the full name given as the output phrase or word.

Examples
Calling syntax resulting link appears as:
{{Wp|Trainz}} {{#if:|{{{2}}}|Trainz}
{{Wp|Service pack}} {{#if:|{{{2}}}|Service pack}
{{Wp|Graphical user interface|GUI}} {{#if:GUI|GUI|Graphical user interface}
{{Wp|Wikipedia:ParserFunctions|ParserFunctions How-To}} {{#if:ParserFunctions How-To|ParserFunctions How-To|Wikipedia:ParserFunctions}