Template:Wp/doc
From TrainzOnline
< Template:Wp(Difference between revisions)
(genesis) |
|||
Line 1: | Line 1: | ||
<div style="border:2px solid blue; width:90%; Align:left; background:azure;"> | <div style="border:2px solid blue; width:90%; Align:left; background:azure;"> | ||
;usage: | ;usage: | ||
− | This template links to the English Wikipedia page give as the first parameter, and pretty-ups the link to the article's | + | This template links to the English Wikipedia page give as the first parameter '''<nowiki>{{{1}}}</nowiki>''', and pretty-ups the link to the article's page by an ''alternative text name or phrase'' if and when given a second parameter '''<nowiki>{{{2}}}</nowiki>''', else displays the full name given as the output phrase or word. |
;Examples: | ;Examples: | ||
− | {| style="border:2px solid black; width:90% | + | {|cell-spacing="1" style="border:2px solid black; width:90%; align:center; margin: 1 2% 1 2%; padding: 3em; background:light-yellow;" |
|| '''Calling syntax''' || '''resulting link appears as:''' | || '''Calling syntax''' || '''resulting link appears as:''' | ||
+ | |- | ||
+ | | <nowiki>{{Wp|Trainz}}</nowiki> | ||
+ | |{{Wp|Service Pack|}} | ||
|- | |- | ||
| <nowiki>{{Wp|Service Pack|}}</nowiki> | | <nowiki>{{Wp|Service Pack|}}</nowiki> | ||
Line 14: | Line 17: | ||
|- | |- | ||
|} | |} | ||
− | </div><noinclude>[[ | + | </div><noinclude>[[Category:Template documentation pages|{{BASEPAGENAME}}]] |
</noinclude> | </noinclude> |
Revision as of 09:38, 13 June 2013
- usage
This 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}} | [[Wikipedia:Service Pack|]] |
{{Wp|Service Pack|}} | [[Wikipedia:Service Pack|]] |
{{Wp|Graphical user interface|GUI}} | GUI |