Links

Types of links[edit | edit source]

In WikiToLearn, there are two main types of links that are used to point to content.

Green links[edit | edit source]

A green link is a link that points to a page that exists. When clicked, it will go to that page. These are the exact same as normal links except they have to point to a page in WikiToLearn. The syntax is:

[[ name of page ]]

OR

[[ name of page | visible name of page ]]

Link to physics


Syntax:

[[Physics|Link to physics]]

Red links[edit | edit source]

Red links are links that are a placeholder for a page. They are placeholders because there is no actual content that it points to. In order to define that content, click on the red link. That will bring you to a page that lets you start making that page that looks like this:

PythonPageExample.png

After the page is created and saved, the previous link that was red will turn green:

NewScriptingLanguagesExample.png


Example:

NewPageTemplate.png


Syntax:

[[name_of_nonexistent_page]]

Notice that that link is red, because the page named Python (HSF) hasn't been defined. If you click on it, it brings up a page that lets you start making that page:

Global vs links to subpages[edit | edit source]

By default, links start their search for the page at the homepage (ie wikitolearn.org). If the link you want should be hierarchically "under" the page you are currently on, start and end the link with /s:

sub_page


Syntax:

[[/sub_page/]]

If you click on a link to a sub page, then you will notice that the name is appended to the name of the parent directory. For example, if you were to have a link to the sub-page sub on the page super, then the URL for sub globally would be super/sub.

External links[edit | edit source]

External links point to a link outside of WikiToLearn. The syntax for these are:

[URL]

OR

[URL VISIBLE NAME]

Example:

Google


Syntax:

[https://google.com Google]


See Also[edit | edit source]

For a detailed reference of links, go here