Template:WP: Difference between revisions
Jump to navigation
Jump to search
imported>Andrew Turvey No edit summary |
imported>J. Noel Chiappa (Update examle to include link to section) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[http://en.wikipedia.org/wiki | [http://en.wikipedia.org/wiki?title={{#if:{{{1|}}}|{{urlencode:{{{1}}}}}|{{BASEPAGENAMEE}}}} {{{2|{{{1|{{BASEPAGENAME}}}}}}}}]<noinclude> | ||
'''Usage''': | |||
'''Usage''' | |||
<nowiki>{{WP|Name}}</nowiki> links to the wikipedia article called " | <nowiki>{{WP}}</nowiki> links to the wikipedia article with the same name as the page name | ||
<nowiki>{{WP|Name}}</nowiki> links to the wikipedia article called "Name"; one can also include an anchor if so desired | |||
<nowiki>{{WP|Name|Text}}</nowiki> links to the wikipedia article called "Name", with the string "Text" being the hyperlink in the page here | |||
'''Example''': | |||
<nowiki>{{WP|History of Japan#Occupied Japan|Occupied Japan}}</nowiki> | |||
gives: | |||
{{WP|History of Japan#Occupied Japan|Occupied Japan}} | |||
</noinclude> | </noinclude> |
Latest revision as of 08:17, 10 May 2008
Usage:
{{WP}} links to the wikipedia article with the same name as the page name
{{WP|Name}} links to the wikipedia article called "Name"; one can also include an anchor if so desired
{{WP|Name|Text}} links to the wikipedia article called "Name", with the string "Text" being the hyperlink in the page here
Example:
{{WP|History of Japan#Occupied Japan|Occupied Japan}}
gives: