Template:Wiki2

From Weezerpedia
Jump to: navigation, search
[edit] Template-info.svg.png Template documentation

The Wiki2 template allows users to generate external links to Wikipedia articles without having to copy and paste an entire Wikipedia url.

External links on Weezerpedia

First a little primer on external links. You can generate a link to an external website by placing brackets (i.e. [ ] ) around that link. Check it out:

[https://weezer.com/tour]

Gives you a link to the "Tour" page of Weezer's website: [1].

You can "name" that link by adding a space after the url, and then typing whatever words you want to display afterward. That looks like:

[https://weezer.com/tour The "Tour" page of Weezer's website]

Which gives you: The "Tour" page of Weezer's website.

If you wanted to display the url itself, merely type it twice, separated by a space, within the brackets:

[https://weezer.com/tour https://weezer.com/tour]

This gives you: https://weezer.com/tour.

Use

This template takes advantage of the fact that every Wikipedia page has a unique url. It merely places whatever the Wikipedia article's name is at the end of the following text:

https://en.wikipedia.org/wiki/

You can substitute any Wikipedia page name at the end of that url - https://en.wikipedia.org/wiki/Madonna, https://en.wikipedia.org/wiki/Baseball, etc. This is - more or less - how Google Chrome and Firefox allow you to search Wikipedia through their normal browser search bar.

The Wiki2 template is a shortcut to creating that url, by filling in the blank of the page name.

When you type:

{{Wiki2|Weezer|Weezer}}

You get a "named" external link to the Wikipedia article for Weezer. The first "Weezer" tells the template what to add at the end of the Wikipedia url, and the second "Weezer" tells the template to "name" the link with the word "Weezer".

Weezer

It's the same thing as if you typed:

[https://en.wikipedia.org/wiki/Weezer Weezer]

Troubleshooting

Wikipedia articles with multiple-word titles

Most Wikipedia articles have more than one word in their title. https://en.wikipedia.org/wiki/The_Beatles is an easy example. Because this template fills in the blank of a url that your browser will navigate to, you need to replace to any space characters (i.e. a space between two words) with underscore symbols. See below:

{{Wiki2|The_Beatles|The Beatles}}

Gives you a "named" link to the Beatles' wikipedia page:

The Beatles

Without the underscore symbol, the template gets totally screwed up:

{{Wiki2|The Beatles|The Beatles}}

Gives you a link to the Wikipedia page for the word the, but "names" the link "Beatles The Beatles". Take a look:
Beatles The Beatles


See also

  • Template:Wiki - a template that does almost the same exact thing, but it's a little harder to "name" links.
  • Template:Wiki3 - a scarcely-used template that adds a super-score "W" after the link, to clarify to any reader that the link they're going to leads off of Weezerpedia.