WikiIndex:Wikilink: Difference between revisions

2,996 bytes added ,  5 January 2023
m
Text replacement - "Category:WikiIdea" to "Category:Wiki idea"
No edit summary
m (Text replacement - "Category:WikiIdea" to "Category:Wiki idea")
Tags: Mobile edit Mobile web edit
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
cotrtaor
{{TOC right}}
===Internal Links (Linking to a Page within this Wiki)===
'''fr''': [[WikiIndex: Liens wiki]]
While editing a wiki page, put double square brackets around the text you wish to become a link.  Example:
----
 
'''WikiIndex: Wikilink''' — one of the fundamentals of the [[:Category:Internet|internet]] or '[[:Category:Web|web]]' is being able to link to other pages or sites on the webThis is especially true for [[wiki]] sites, and these links are generally known as a '[[wikilink]]' (or 'wiki link').  This '''WikiIndex: Wikilink''' page describes how to create these {{tag|Wiki concept|types of links}}.
:'''<nowiki>[[Brand New Page]]</nowiki>'''  


===Internal links (linking to another page <u>within</u> this wiki)===
While editing a [[wiki]] page, put double square brackets around the text you wish to become a [[wikilink]].  Example:
;<tt><nowiki>[[Brand New Page]]</nowiki></tt>
will create a new link that will function like this:
will create a new link that will function like this:
:[[Brand New Page]]
:[[Brand New Page]]


If you want to display a different phrase than the page name, you can use a pipe (|). The text before the pipe (|) is the page name.  The text after the pipe is the label for that particular link.  For example:
If you want to display a different phrase <u>instead of the actual page name</u>, you can use a pipe (<tt>|</tt> – next to the left shift key on a Windows keyboard, above the right shift key on an Apple Mac keyboard). The text before the pipe (|) is the actual page name.  The text after the pipe is the displayed label for that particular link.  For example:
:'''<nowiki>[[Brand New Page|My Page]]</nowiki>'''
:'''<tt><nowiki>[[Brand New Page|my article page]]</nowiki></tt>'''
 
will display like this:
will display like this:
[[Brand New Page|My Page]]
:[[Brand New Page|my article page]] — hover your mouse pointer over this link, and it will still display 'Brand New Page'.


* If the term that is double brackted exists as an article in the wiki, then the link will show in blue and be immediately functional.
*If the term that is double bracketed exists as an article in the wiki, then the link will show in blue and be immediately functional.
*If the term that is double bracketed is ''not'' an existing page in the wiki, the link is 'dangling', and shows in red.  In a typical website, this might be considered a 'broken' or [[:Category:FindDeadURLs|dead link]], but in a wiki, this '[[Proposal:Future linking|future linking]]' is simply an invitation for someone to create that needed article by clicking on the red link.  Check the [[Special:Wantedpages|Wanted Pages]] for a list of '[[red link]]' articles that this wiki needs.


* If the term that is double bracketed is not an existing page in the wiki, the link is "dangling" and shows in redIn a typical website, this might be considered a "broken" link, but in a wiki, it is simply an invitation for someone to create that needed article by clicking on the red linkCheck the [[Special:Wantedpages|Wanted Pages]] for a list of articles that the wiki needs.
====Section links====
Large or long web or wiki pages may usually be sub-divided into 'sections' by using section headings.  On most wikis, this is done by using two or more <tt>=</tt> at either end of the section headingIf you wish to link to a particular <u>section</u> (rather than the whole page), you can do so by using the hash (<tt>#</tt>)So for example, if you wanted to link to the 'Redirects' section at the foot of this page, you would type:
:'''<tt><nowiki>[[WikiIndex:Wiki Links#Redirects]]</nowiki></tt>'''
which will display: [[WikiIndex:Wiki Links#Redirects]]


===External Links (Linking to a page on another website)===
This can also be piped to display a different or 'neater' name – such as:
While editing a wiki page, put square brackets around the URL and the description text you wish to become a link.  Example:  
:'''<tt><nowiki>[[WikiIndex:Wiki Links#Redirects|Redirects section on WikiLinks]]</nowiki></tt>'''
displaying: [[WikiIndex:Wiki Links#Redirects|Redirects section on WikiLinks]]


:'''<nowiki>[http://www.wikiindex.com Official This Wiki]</nowiki>'''  
If you wish to use section links on the <u>same</u> page, you can ommit the page name from the link, as in:
:'''<tt><nowiki>[[#Redirects]]</nowiki></tt>'''


===External links (linking to a page on <u>another</u> website)===
While editing a wiki page, put single square brackets around the full URL (including the <tt>http://</tt>); and the description text you wish to become a link.  Example:
;<tt><nowiki>[https://WikiIndex.org Official WikiIndex website]</nowiki></tt>
will create a new link that will function like this:
will create a new link that will function like this:
:[https://WikiIndex.org Official WikiIndex website] — note the 'double arrow' at the end of this; indicating that it is an 'off-site' link.


:[http://www.wikiindex.com Official This Wiki]
Section links detailed [[#Section links|above]] for internal [[WikiLinks]] can also work on external link URLs.


===Redirects===
===Redirects===
Sometimes there may be two or more names for the same article.  For example, ISOC and Internet Society. One of them should redirect to the other. To create a redirect, type #REDIRECT followed by a link to the page to be redirected to in a blank page. Redirects are automatically created when pages are moved using the "move" tab.
Sometimes there may be two or more names, or similar names for the same article; for example, 'ISOC' and 'Internet Society'. It is the practice here on {{tag|WikiIndex}}, and at most [[wiki]], to '[[Special:ListRedirects|redirect one to another]]', which will automatically open the page of the correct article.
[[category:WikiIndex]]
 
To create a '''[[redirect]]''', either click on the '''#R''' button above the [[edit box]], or click on <code>#REDIRECT [[]]</code> at the foot of the page, or manually type <tt>#redirect</tt> – followed by a link (within the double-square brackets) to the page to be redirected to in a blank page. Special rules apply to redirects; please read the [[redirect]] article, and try to avoid creating any [[Special:DoubleRedirects|double redirects]], as these do not automatically follow on to the correct page.
 
Redirects are automatically created when pages are moved using the '[[move]]' tab at the top of the screen for existing pages, unless they are suppressed by a [[sysop]] or above.
 
===Logo===
Displaying a [[:Category:WikiLogo|logo]] (or other [[:Category:Images|image]]) on an article uses a [[:Category:Wiki syntax|syntax]] very similar to the above link syntax.  See [[WikiProject:Logos]] for details.
 
[[Category:Wiki idea]]
[[Category:Help]]
[[Category:Help]]
[[category:FAQ]]
[[Category:FAQ]]