Difference between revisions of "Adding a link"

From FreecycleFAQ
Jump to: navigation, search
[checked revision][checked revision]
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= External links  =
 
= External links  =
  
*Link with no text (the code needed and an example):
+
== Link with no text ==
  
<nowiki>[http://example.com/]</nowiki>
+
This code produces a basic link to the example website: '''<nowiki>[http://example.com/]</nowiki>'''. It creates a link that looks like this:
 
  [http://example.com/]
 
  [http://example.com/]
  
*Link containing text:
+
== Link containing text ==
  
<nowiki>[http://example.com/ The guide to adding a link example.com website]</nowiki>  
+
After pasting a link, hit the spacebar once and then type the text as you would like for it to appear in the link.
 +
'''<nowiki>[http://example.com/ The guide to adding a link]</nowiki>''' still takes you to example.com, but it looks like this:
 
  [http://example.com/ The guide to adding a link]
 
  [http://example.com/ The guide to adding a link]
 
*After pasting your link, you would then hit the spacebar once and then write the title of the link.
 
 
<nowiki>The [[Adding a link]][http://example.com/ The guide to adding a link website].</nowiki>
 
The [[Adding a link]] [http://example.com/ The guide to adding a link website].
 
  
 
<br>
 
<br>
Line 22: Line 18:
 
== Linking to an internal wiki page ==
 
== Linking to an internal wiki page ==
  
Notice the double brackets as opposed to the single brackets in the external link examples.
+
Notice the double brackets as opposed to the single brackets in the external link examples. '''<nowiki>[[Introduction]]</nowiki>''' now looks like this:
  
<nowiki>[[Introduction]]</nowiki>
+
[[Introduction]]
 
 
now looks like this:
 
 
 
[[Introduction]]  
 
  
 
== Internal links with different wording ==
 
== Internal links with different wording ==
Line 34: Line 26:
 
If you want the link to contain text that is different from the page you are referencing (example: Maybe you don't want to say "Introduction" as it does not read well, but you DO want it to link to the Introduction page):  
 
If you want the link to contain text that is different from the page you are referencing (example: Maybe you don't want to say "Introduction" as it does not read well, but you DO want it to link to the Introduction page):  
  
  Welcome to our Freecycle wiki page where you can learn all about why we are here. Let me <nowiki>[[Introduction|introduce]]</nowiki> myself, who we are and what we do!  
+
  Welcome to our Freecycle wiki page. Let me '''<nowiki>[[Introduction|introduce]]</nowiki>''' myself, who we are and what we do!  
  
 
Your page will look like this when completed with the proper wiki lingo; the brackets AND the bar *|*. Notice this bar is NOT the capital letter *I* or lowercase *l*. The bar is normally found above the *\* bar.  
 
Your page will look like this when completed with the proper wiki lingo; the brackets AND the bar *|*. Notice this bar is NOT the capital letter *I* or lowercase *l*. The bar is normally found above the *\* bar.  
  
  Welcome to our Freecycle wiki page where you can learn all about why we are here. Let me [[Introduction|introduce]] myself, who we are and what we do!  
+
  Welcome to our Freecycle wiki page. Let me [[Introduction|introduce]] myself, who we are and what we do!  
  
 
== Link to a specific section of an internal wiki page ==
 
== Link to a specific section of an internal wiki page ==
  
If you want to link with a specific section rather than an entire wiki page, this is the format you use:  
+
If you want to link to a specific section rather than an entire wiki page, this is the format you use:  
<nowiki>[[Page_name#Section_heading|optional text]]</nowiki>
+
'''<nowiki>[[Introduction#Who_runs_it?|our wonderful volunteer moderators]]</nowiki>'''
 
 
This takes you to the part of the page titled "Section heading" but it will look like this:
 
  
optional text
+
This takes you to the section titled "Who runs it?" but it will look like this:
  
*If you're really having way too much fun working on your section of the wiki, but would like wiki tools to assist, check [[wikipedia:Tools/Editing%20tools|here]]  
+
[[Introduction#Who_runs_it?|our wonderful volunteer moderators]]
  
*If you feel you just can't remember all of the rules and guidelines, try taking a peek at the [[Wikipedia:Cheatsheet|Cheatsheet]]
+
If you feel you just can't remember all of the rules and guidelines, try taking a peek at the [https://en.wikipedia.org/wiki/Help:Cheatsheet Cheatsheet]

Latest revision as of 22:11, 20 January 2016

External links

Link with no text

This code produces a basic link to the example website: [http://example.com/]. It creates a link that looks like this:

[1]

Link containing text

After pasting a link, hit the spacebar once and then type the text as you would like for it to appear in the link. [http://example.com/ The guide to adding a link] still takes you to example.com, but it looks like this:

The guide to adding a link


Internal links

Linking to an internal wiki page

Notice the double brackets as opposed to the single brackets in the external link examples. [[Introduction]] now looks like this:

Introduction

Internal links with different wording

If you want the link to contain text that is different from the page you are referencing (example: Maybe you don't want to say "Introduction" as it does not read well, but you DO want it to link to the Introduction page):

Welcome to our Freecycle wiki page. Let me [[Introduction|introduce]] myself, who we are and what we do! 

Your page will look like this when completed with the proper wiki lingo; the brackets AND the bar *|*. Notice this bar is NOT the capital letter *I* or lowercase *l*. The bar is normally found above the *\* bar.

Welcome to our Freecycle wiki page. Let me introduce myself, who we are and what we do! 

Link to a specific section of an internal wiki page

If you want to link to a specific section rather than an entire wiki page, this is the format you use: [[Introduction#Who_runs_it?|our wonderful volunteer moderators]]

This takes you to the section titled "Who runs it?" but it will look like this:

our wonderful volunteer moderators

If you feel you just can't remember all of the rules and guidelines, try taking a peek at the Cheatsheet