Template:Wp
From TrainzOnline
(Difference between revisions)
(typo fix, my bad) |
(close ']') |
||
Line 1: | Line 1: | ||
− | <includeonly>[http://en.wikipedia.org/wiki/{{{1|Main}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|Required Argument Missing in <nowiki>Template: {{Wp}}</nowiki>}}}}}</includeonly><noinclude> | + | <includeonly>[http://en.wikipedia.org/wiki/{{{1|Main}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|Required Argument Missing in <nowiki>Template: {{Wp}}</nowiki>}}}}}]</includeonly><noinclude> |
[[Category:Link and Navigation templates|{{PAGENAME}}]] | [[Category:Link and Navigation templates|{{PAGENAME}}]] | ||
{{Wp/doc}} | {{Wp/doc}} | ||
</noinclude> | </noinclude> |
Revision as of 19:40, 13 June 2013
- 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}} | Trainz |
{{Wp|Service pack}} | Service pack |
{{Wp|Graphical user interface|GUI}} | GUI |
{{Wp|Wikipedia:ParserFunctions|ParserFunctions How-To}} | ParserFunctions How-To |