Help:Linking: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(aaaaa i messed my css up. saving. unfinished do not interfere thots)
 
(finished)
Line 1: Line 1:
{{back|Help:Editing}}
Links (sometimes called hyperlinks) are all over the web. You probably followed one to find this page.
Links (sometimes called hyperlinks) are all over the web. You probably followed one to find this page.


Line 8: Line 9:


If you want to link to the page but don't want to type in the exact name of the page, add a <code>|</code> between the page name and the <code>]]</code>, and then write what you want the text to be.
If you want to link to the page but don't want to type in the exact name of the page, add a <code>|</code> between the page name and the <code>]]</code>, and then write what you want the text to be.
<pre>[[Help:Contents|An important page]]</pre>
<pre>[[Help Talk:Contents|The discussion page]]</pre>
[[Help:Contents|An important page]]
[[Help Talk:Contents|The discussion page]]




Line 15: Line 16:
<pre>[[Wikipedia:Half-Life 2|Half-Life 2 on Wikipedia]]</pre>
<pre>[[Wikipedia:Half-Life 2|Half-Life 2 on Wikipedia]]</pre>
[[Wikipedia:Half-Life 2|Half-Life 2 on Wikipedia]]
[[Wikipedia:Half-Life 2|Half-Life 2 on Wikipedia]]
There are other websites you can link to as well. See [[Special:Interwiki|here]] for a full list.




Line 27: Line 30:


A URL pointing to an image will display that image on a page. It won't have the best formatting however. Exercise caution when doing this and note that images from another website may change or disappear at any time.
A URL pointing to an image will display that image on a page. It won't have the best formatting however. Exercise caution when doing this and note that images from another website may change or disappear at any time.
The [[Help:Templates|template]] we call [[Template:ent|ent]] is convenient for when you want to make text both a link and code at once.


==Red (broken) links==
==Red (broken) links==
Line 37: Line 42:
==Link Colors==
==Link Colors==
{| class=standard-table
{| class=standard-table
! Type||Unvisited||Visited
!Type of Link||Before Visiting||After Visiting
|-
|-
|wiki pages and external links||<span style="color:#8BB9E0">#8BB9E0</span>||<span style="color:#002bb8">#002BB8</span>
!wiki pages and external links||<span style="color:#8BB9E0">#8BB9E0</span>||<span style="color:#002bb8">#002BB8</span>
|-
|-
|Wikipedia links||<span style="color:#36b">#36B</span>||
!Wikipedia links||<span style="color:#36b">#36B</span>||<span style="color:#551A8B">#551A8B</span>
|-
|-
|
!Broken links||<span style="color:#D64B4B">#D64B4B</span>||<span style="color:#BA0000">#BA0000</span>
|}
|}
==See Also==
*[[Help:Redirects]]
*[[Special:BrokenRedirects]] - pages that need to have redirect links fixed.
*[[Special:DeadendPages]] - pages that need more links on them.
*[[Special:DoubleRedirects]] - Redirects that need to be fixed (chaining is bad).
*[[Special:LinkSearch]] - Search through external links.
*[[Special:ListRedirects]] - List of all redirects.
*[[Special:LonelyPages]] - Pages that need to be linked to in other places.
*[[Special:MostLinkedPages]] - Most linked-to pages.
*[[Special:WantedPages]] - Pages that are linked to a lot, but do not exist.

Revision as of 18:27, 22 July 2018

Help:Editing

Links (sometimes called hyperlinks) are all over the web. You probably followed one to find this page.


To add a link to another wiki page, type [[, then the page name, then ]].

[[Main Page]]

Main Page


If you want to link to the page but don't want to type in the exact name of the page, add a | between the page name and the ]], and then write what you want the text to be.

[[Help Talk:Contents|The discussion page]]

The discussion page


To link to a page on Wikipedia, add Wikipedia: to your page name.

[[Wikipedia:Half-Life 2|Half-Life 2 on Wikipedia]]

Half-Life 2 on Wikipedia

There are other websites you can link to as well. See here for a full list.


To link to somewhere outside of the wiki, type [, then the URL, followed by a space, the text you want to describe the link, and then ].

[https://www.google.com/ External link to Google]

External link to Google


You can also just directly paste in a URL, but it doesn't look as nice

https://www.google.com/

A URL pointing to an image will display that image on a page. It won't have the best formatting however. Exercise caution when doing this and note that images from another website may change or disappear at any time.

The template we call ent is convenient for when you want to make text both a link and code at once.

Red (broken) links

It's O.K. to link to a non-existent page! We would prefer that you then created that page, if you know about it. What we don't want is a page that's just "todo: make this page".

If you've created a page and pre-existing links to it still show as red, add ?action=purge to the end of the URLs to update their link colors. You can also do this by pressing the Edit button on the pages and saving them without changing anything.

Note.pngNote:Broken links are only detected for wiki pages, not external or Wikipedia links.

Link Colors

Type of Link Before Visiting After Visiting
wiki pages and external links #8BB9E0 #002BB8
Wikipedia links #36B #551A8B
Broken links #D64B4B #BA0000

See Also