Template:Wp/doc: Difference between revisions
From TrainzOnline
Jump to navigationJump to search
No edit summary |
fixup per workarounds and lack of parserfunctions |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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 '''<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. | This <code><nowiki>{{Wp|1|2}}</nowiki></code> 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: | ||
| Line 8: | Line 8: | ||
|- | |- | ||
| <nowiki>{{Wp|Trainz}}</nowiki> | | <nowiki>{{Wp|Trainz}}</nowiki> | ||
|{{Wp| | |{{Wp|Trainz}} | ||
|- | |- | ||
| <nowiki>{{Wp|Service | | <nowiki>{{Wp|Service pack}}</nowiki> | ||
|{{Wp|Service | |{{Wp|Service pack}} | ||
|- | |- | ||
| <nowiki>{{Wp|Graphical user interface|GUI}}</nowiki> | | <nowiki>{{Wp|Graphical user interface|GUI}}</nowiki> | ||
|{{Wp|Graphical user interface|GUI}} | |{{Wp|Graphical user interface|GUI}} | ||
|- | |||
| <nowiki>{{Wp|Wikipedia:ParserFunctions|ParserFunctions How-To}}</nowiki> | |||
|{{Wp|Wikipedia:ParserFunctions|ParserFunctions How-To}} | |||
|- | |- | ||
|} | |} | ||
</div><noinclude>[[Category:Template documentation pages|{{BASEPAGENAME}}]] | </div><noinclude>[[Category:Template documentation pages|{{BASEPAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:39, 25 July 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 |