Wikitext anchor

From wmwikisnet.wmwikis.net
Revision as of 14:29, 14 February 2019 by 127.0.0.1 (talk) (Imported from Wikispaces)
Jump to navigation Jump to search

wikitext anchor



This is an example of how to use anchors.

Anchors can be linked using the visual editor dialog box. However they must first be inserted as wikitext. The wikitext can be entered in the visual editor or the text editor.

The syntax for the anchor on the page is [[#AnchorName]]
The syntax for the link is [[PageName#AnchorName| DisplayText]] or you can use the visual link editor.
See the following examples

On this page, you can go to Apples, or Oranges, or Grapes.


Apples


Apples are tasty fresh. They come in red, green, yellow, and probably other colors. Colors can also be spelled colours. Spelled can also be spelled spelt. Apples would be extra special if wrapped in felt.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Oranges


Oranges juice well. They are also delicious peeled and eaten as a snack. Don't eat the rind though. Bleh. But hey, if you like the rind, good luck to you.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Grapes


I'm told grapes are great when frozen. But I've never tried them that way. I like the green ones. But again, you know, whatever you're into is cool. As long as you enjoy yourself. In moderation of course.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Go back to wikitext



More Detailed Instructions


An anchor is a way to link one part of a page to another. They are often used at the top of a page so that people can jump directly to a section that is farther down without having to scroll to find it.

Anchors have 2 parts.

Part 1: The anchor point. i.e. The place you are linking to.
1. Go to the part of the page where you want the link to jump to (usually located farther down the page).
2. Type in [[#nameoftheanchor]] Type the brackets and the # sign. Replace nameoftheanchor with the actual text you want to be the name of the anchor. In the examples above, we use [[#apples]].

Part 2: The link.
1. At the top of the page (or wherever you want your anchor link list to appear), highlight the text that you want to use as your link.
2. Click on the link button in the toolbar (it looks like a globe). For Page Name, select the name of the page you want to link to. This is most often going to be the page you are currently working on.
3. Click the "Link to anchor?" link, which will then display a box into which you can type the anchor name. So in the example above, you would type the word apples in to the Anchor box, since this is what you put inside the anchor code [[# ]] in Part 1.