Help:How to Make Links and New Pages: Difference between revisions

From P2P Foundation
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
To start with, let's make a link.
==Intro to Linking==


Here is a simple link to a page on this wiki:  [[P2P]]
Here is a simple link to a page on this wiki:  [[P2P]]
Line 6: Line 6:


You'll immediately notice the double brackets.  These are "mediawiki markup".  This double bracket link is used for an internal link; it points to a page on the wiki called "P2P".
You'll immediately notice the double brackets.  These are "mediawiki markup".  This double bracket link is used for an internal link; it points to a page on the wiki called "P2P".
==Link Colors==
When you see a red link like [[Red Link Example]] you can be certain that the page does not yet exist.  If you click on the link you will be given the opportunity to create the page.  This is a simple way to create new pages when you are editing on the wiki.  Just make a link to a page that doesn't exist; then, submit the page, and click on the link to edit the new page.
External links have arrows attached to them like this: http://google.com .  Even if a link seems like it might be to a page on the wiki, if it is to an external site outside the wiki, it will have an arrow attached to it.  For example [http://p2pfoundation.net P2P Foundation]
==Making Internal and External Links==


There are two types of links in a wiki, internal and external.
There are two types of links in a wiki, internal and external.
Line 15: Line 22:


You might want to write an external link with brackets, though, because then you can make them say something like [http://google.com Google] instead of simple the url as http://google.com.
You might want to write an external link with brackets, though, because then you can make them say something like [http://google.com Google] instead of simple the url as http://google.com.
==Alternate Text for Internal and External Links==


When you want to write a link that uses different text you will also need to use some special markup.
When you want to write a link that uses different text you will also need to use some special markup.
Line 26: Line 35:
When you want to use alternate text for an external link you can leave out the bar | and simply leave a space between the link and the alternate text.
When you want to use alternate text for an external link you can leave out the bar | and simply leave a space between the link and the alternate text.


External links with single brackets and no bar, only a space for
<pre>External links with single brackets and a space before alternate text [http://p2pfoundation.net P2P Foundation]</pre>
alternate text [http://p2pfoundation.net P2P Foundation]


This markup creates: [http://p2pfoundation.net P2P Foundation]
This markup creates: [http://p2pfoundation.net P2P Foundation]


==Creating New Pages==


There are two very simple methods for creating a new page.


#Type the address into the address bar, without the spaces.  Example: http://p2pfoundation.net/New Page Name Here
##The wiki will use this as a prompt to create a new page with the title "New Page Name Here"
##Be sure to capitalize everything that you want capitalized, and to check your spelling.


The second method was covered above
#Visit a page and create a new internal link
##Click on the link and you will be taken to the new page.
##Edit and save your new page.




[[Category:P2P Foundation Wiki]]
[[Category:P2P Foundation Wiki]]

Revision as of 22:54, 21 June 2010

Intro to Linking

Here is a simple link to a page on this wiki: P2P

 When you type it into a page you type it like this: [[P2P]]

You'll immediately notice the double brackets. These are "mediawiki markup". This double bracket link is used for an internal link; it points to a page on the wiki called "P2P".

Link Colors

When you see a red link like Red Link Example you can be certain that the page does not yet exist. If you click on the link you will be given the opportunity to create the page. This is a simple way to create new pages when you are editing on the wiki. Just make a link to a page that doesn't exist; then, submit the page, and click on the link to edit the new page.

External links have arrows attached to them like this: http://google.com . Even if a link seems like it might be to a page on the wiki, if it is to an external site outside the wiki, it will have an arrow attached to it. For example P2P Foundation

Making Internal and External Links

There are two types of links in a wiki, internal and external.

Internal links use double brackets to surround a page name [[Page Name]]
External links use single brackets to surround a page name [http://PageName.com]

You can also write an external link without any brackets as http://pagename.com

You might want to write an external link with brackets, though, because then you can make them say something like Google instead of simple the url as http://google.com.

Alternate Text for Internal and External Links

When you want to write a link that uses different text you will also need to use some special markup.

Internal links with different text are written like this with double brackets and a 'bar' to separate the name. In each instance where you want to use special text you will enclose your link with the link text inside the brackets. When you create an internal link you will use the Page Name including the spaces. In this example we will use the text "link to page name". Notice also that there is a space on either side of the bar, the | character.

Internal Link using double brackets and a | to use alternate text [[Page Name | link to page name]]

This markup creates: link to page name

When you want to use alternate text for an external link you can leave out the bar | and simply leave a space between the link and the alternate text.

External links with single brackets and a space before alternate text [http://p2pfoundation.net P2P Foundation]

This markup creates: P2P Foundation

Creating New Pages

There are two very simple methods for creating a new page.

  1. Type the address into the address bar, without the spaces. Example: http://p2pfoundation.net/New Page Name Here
    1. The wiki will use this as a prompt to create a new page with the title "New Page Name Here"
    2. Be sure to capitalize everything that you want capitalized, and to check your spelling.

The second method was covered above

  1. Visit a page and create a new internal link
    1. Click on the link and you will be taken to the new page.
    2. Edit and save your new page.