Template:WP: Difference between revisions
Jump to navigation
Jump to search
imported>J. Noel Chiappa (Huh, that does something stupid) |
imported>J. Noel Chiappa (Fix documentation) |
||
Line 1: | Line 1: | ||
[http://en.wikipedia.org/wiki/{{#if:{{{1|}}}|{{anchorencode:{{{1}}}}}|{{BASEPAGENAMEE}}}} {{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}}}]<noinclude> | [http://en.wikipedia.org/wiki/{{#if:{{{1|}}}|{{anchorencode:{{{1}}}}}|{{BASEPAGENAMEE}}}} {{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}}}]<noinclude> | ||
'''Usage''' | '''Usage''': | ||
<nowiki>{{WP}}</nowiki> links to the wikipedia article with the same name as the page name | <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" | <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 | <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|Japanese history}}</nowiki> | |||
gives: | |||
{{WP|History of Japan|Japanese history}} | |||
</noinclude> | </noinclude> |
Revision as of 10:50, 12 March 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|Japanese history}}
gives: