Template:Wp

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(recast as interwiki)
(eliminate the ParserFunctions -- shades of 2005!)
Line 1: Line 1:
<includeonly>[[Wikipedia:{{{1|Main}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|Required Argument Missing in <nowiki>Template: {{Wp}}</nowiki>}}}}}]]</includeonly><noinclude>
+
<includeonly>[[Wikipedia:{{{1|Trainz}}}|{{{2|{{{1|Required Argument(s) 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 23:29, 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
Personal tools