Template:Wiki/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
The '''Wiki template''' allows users to generate external links to Wikipedia articles without having to copy and paste an entire Wikipedia url.
The '''Wiki 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:
<pre>[https://weezer.com/tour]</pre>
Gives you a link to the "Tour" page of Weezer's website: [https://weezer.com/tour].
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:
<pre>[https://weezer.com/tour The "Tour" page of Weezer's website]</pre>
Which gives you: [https://weezer.com/tour 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:
<pre>[https://weezer.com/tour https://weezer.com/tour]</pre>
This gives you: [https://weezer.com/tour https://weezer.com/tour].
==Use==
==Use==
This template essentially allows you to "fill in the blank" on a Wikipedia url. What does that mean? Any Wikipedia page (lets take [https://en.wikipedia.org/wiki/Weezer https://en.wikipedia.org/wiki/Weezer] as an example) has a unique url that places the page's name at the end of the following text:
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:
<pre>https://en.wikipedia.org/wiki/</pre>
<pre>https://en.wikipedia.org/wiki/</pre>


You can substitute any Wikipedia page name at the end of that url - [https://en.wikipedia.org/wiki/Madonna https://en.wikipedia.org/wiki/Madonna], [https://en.wikipedia.org/wiki/Baseball https://en.wikipedia.org/wiki/Baseball], etc.
You can substitute any Wikipedia page name at the end of that url - [https://en.wikipedia.org/wiki/Madonna https://en.wikipedia.org/wiki/Madonna], [https://en.wikipedia.org/wiki/Baseball 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 Wiki template is a shortcut to creating that url, by filling in the blank of the page name.
The Wiki template is a shortcut to creating that url, by filling in the blank of the page name.
Line 17: Line 35:
{{Wiki|Weezer}}
{{Wiki|Weezer}}


It's the same thing as if you typed:
<pre>[https://en.wikipedia.org/wiki/Weezer]</pre>
It gives you the same link ([https://en.wikipedia.org/wiki/Weezer]), but without having to deal with the url.
==Troubleshooting==
==Troubleshooting==
*To "name" the link, add a space after "Weezer" and type what you want to display. This looks like:
*To "name" the link, add a space after "Weezer" and type what you want to display. This looks like:
Line 32: Line 55:
Gives you a link to the Wikipedia page for the word ''the'', but "names" the link with the word after the space: "Beatles". Take a look:<br>
Gives you a link to the Wikipedia page for the word ''the'', but "names" the link with the word after the space: "Beatles". Take a look:<br>
{{Wiki|The Beatles}}
{{Wiki|The Beatles}}
To "name" a link to a multi-word Wikipedia article, type the same article name twice - once with brackets, and once without.
<pre>{{Wiki|The_Beatles The Beatles}}</pre>
This gives you: {{Wiki|The_Beatles The Beatles}}


==See also==
==See also==
*[[Template:Wiki2]] - a template that does almost the same exact thing, but makes it a little easier to "name" links
*[[Template:Wiki2]] - a template that does almost the same exact thing, but makes it a little easier 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.
*[[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.