Template:Wp
From TrainzOnline
- 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} |