Template talk:WP

From The Urban Dead Wiki
Jump to navigationJump to search

Usage

Passing no arguments, this templates creates a link to wikipedia's main page.

{{subst:WP}}
wikipedia

Passing one argument, this templates creates a link to the corresponding wikipedia article.

{{subst:WP|foo}}
foo

Passing two arguments, this templates creates a link to the wikipedia article given by the first argument, but displaying the alternate text given by the second argument.

{{subst:WP|foo|bar}}
bar

Note that

{{subst:WP|foo|bar}}

is the same as

{{subst:WP|1=foo|2=bar}} OR
{{subst:WP|2=bar|1=foo}}

So you can force a link to wikipedia's main page with an alternate text by forcing the second argument, while providing nothing as the first. This is done by naming the argument and providing a value for it.

{{subst:WP|2=lorem ipsum}}
Lorem ipsum


Passing further arguments provides no useful output.

Talk

This template should have been shortened to: WP. --  AHLGTG THE END IS NIGH! 18:54, 11 April 2008 (BST)

We can have both... i like having the long named template because it makes it easier to read whathefuck you are doing in a page --People's Commissar Hagnat [cloned] [mod] 18:56, 11 April 2008 (BST)
True, but then I'm lazy. I hate typing out Wikipedia twice, this template should help. --  AHLGTG THE END IS NIGH! 18:57, 11 April 2008 (BST)
Why do you have to type wikipedia twice ? --People's Commissar Hagnat [cloned] [mod] 19:23, 11 April 2008 (BST)
To get articles with the "Wikipedia" prefix. --  AHLGTG THE END IS NIGH! 19:26, 11 April 2008 (BST)
You can shorten the article reference then õ_O, like WP:IAR... and there is nothing forbidding us from having two templates do the same task... just copy this template's content into template:WP and change the usage description and be done with it. --People's Commissar Hagnat [cloned] [mod] 19:32, 11 April 2008 (BST)