Wikipedia:Teahouse/Host lounge/How-to guides/Link guide: Difference between revisions
Content deleted Content added
m →Interwiki links: it's -> its, per wikt:its |
Nick Moyes (talk | contribs) Marking page as {{historic}} |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 1:
{{historic}}
{{Wikipedia:Teahouse/Layout-begin}}
{{Wikipedia:Teahouse/Links}}
{{Wikipedia:Teahouse/Intro-form|intro='''This guide explores how to explain Wiki links, interwiki links, and external link usage.'''}}
Line 6 ⟶ 7:
<div style="margin: 2em 4em;">
{{TOC right}}
==Wikilinks==
A wikilink is a link that is included within the article and links to another Wikipedia article. You'll often see these as blue links in articles. Red links mean that an article doesn't exist and needs to be created.
===How do I add a link in my article to another article?===
*[[User:Nolelover|Nolelover's reply]]:
To add a basic link to another article, put two sets of brackets (<nowiki>"[[" and "]]"</nowiki>) around the word or phrase you want to link. For example, if you want to add a link to the word "Wikipedia", it would look like this: <code><nowiki>[[Wikipedia]]</nowiki></code>. Another type of link is the "piped link". With the use of a separating pipe (the "|" character below the backspace button) you can make a link say one phrase, but go somewhere to another target. If you want to link to "Wikipedia", but have your link ''say'' "The Free Encyclopedia", your piped link would look like <code><nowiki>[[Wikipedia|The Free Encyclopedia]]</nowiki></code> and would come out like this: [[Wikipedia|The Free Encyclopedia]].
''Please share your reply here!''▼
==External links==
An external link is a link that goes to another website and relates to the subject focus of the article it is being linked from.
===How do I add a link to my website or another website to an article?===
*[[User:SarahStierch|Sarah's reply]]:
Line 29 ⟶ 26:
:3. Add your link by typing: *[http://www.wikipedia.org Wikipedia's official website] Instead of using the Wikipedia web address, replace it with the address you want to add. Make sure there is a space, and then replace "Wikipedia's official website," with the name of the website you are adding. Add a "]" after that and then click the "show preview" button towards the bottom.
:4. If your addition looks correct, great work! Simply add in the edit summary "added an external link," and click save!
*[[User:Trevj|Trevj's reply]]:
*:The template {{tl|Official website}} can also be used, e.g. <tt><nowiki>{{</nowiki>Official website|wikimedia.org}}</tt> to give {{Official website|wikimedia.org}}.
:<span style="white-space:nowrap;">-- [[User:Trevj#top|Trevj]]</span> ([[User talk:Trevj#top|talk]]) 09:
*''Please add your own reply here!''
===Another user accused me of spam? Why and how can I avoid being called that?===
▲''Please share your own reply here!''
''Please share your reply here!''▼
==Interwiki links==
An interwiki link is generally used to describe linking a Wikipedia article to another sister project, such as linking a word on an article to its definition on Wiktionary.
===How do I add a link to another Wikimedia project like Wiktionary?===
*[[User:Trevj|Trevj's reply:
*Use the prefix markup <tt><nowiki>[[</nowiki>wikt:]]</tt>, e.g. <tt><nowiki>[[</nowiki>wikt:chain]]</tt> will display as [[wikt:chain]]. To suppress display of the prefix, use the [[Help:Pipe trick|pipe character "trick"]] after the destination article name, i.e. <tt><nowiki>[[</nowiki>wikt:chain|]]</tt> will display as [[wikt:chain|chain]].
**To link to a foreign language definition, use the appropriate additional prefix, e.g. <tt><nowiki>[[</nowiki>wikt:fr:lier]]</tt> to give [[wikt:fr:lier]]. (Note that use of the pipe trick only suppresses ''one'' prefix, in which case a fully piped link can be used, i.e. <tt><nowiki>[[</nowiki>wikt:fr:lier|lier]]</tt> to give [[wikt:fr:lier|lier]].)
**Further information about linking to other Wikimedia projects is at [[Help:Interwiki linking]].
▲:<span style="white-space:nowrap;">-- [[User:Trevj#top|Trevj]]</span> ([[User talk:Trevj#top|talk]]) 09:18, 22 February 2012 (UTC)
===How do I add a link to another language's article on the same topic? ===
*[[User:Rosiestep|Rosiestep's reply]]:
Generally, you don't have to link to another language's wikipedia article if the name is identical as a bot will do it automatically. If there is a difference in the name, such that a bot might not understand the two articles are the same, you'll use a similar format style as linking to another Wikimedia project (such as the Wikitionary example above). Here's the "how to". Go to the bottom of the article page. Add two square brackets, then add the language's abbreviation (such as en is the abbreviation for the English language, fr is the abbreviation for the French language, and de is the abbreviation for the German language). Add the symbol for colon, then add the name of the article in the other language. Add two closing square brackets. Here's how it will look:
<pre>[[language code:Title]]</pre>
Further information about linking to other language articles can be found at [[Help:Interlanguage links]].
''Please add your own reply here!''
{{Wikipedia:Teahouse/Layout-end}}
<noinclude>[[Category:Wikipedia Teahouse]]</noinclude>
|