Template:Wp: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Fabartus (talk | contribs)
try plain link ver
Fabartus (talk | contribs)
recast as interwiki
Line 1: Line 1:
<includeonly>{{plain link|http://en.wikipedia.org/wiki/{{{1|Main}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|Required Argument Missing in <nowiki>Template: {{Wp}}</nowiki>}}}}}}}</includeonly><noinclude>
<includeonly>[[Wikipedia:{{{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 13:23, 28 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