Page 1 of 1

Anchor / Goto BBCodes

Posted: Sun Jun 01, 2014 9:27 pm
by Wain
These have been in a little while now, but I didn't go out of my way to publicize them till I could be sure there were no probs...

I've added some BBCodes that allow you to link to other parts of the same post. Like, say, create an index entry at the top that links you to a later section. This is obviously most useful for extra long posts..

eg. an index like: Frogs

To do this, for your link you create a tag like:

Code: Select all

[goto=<unique id>]wording for your link[/goto]
And then down at the actual section you link to you can do either:

Code: Select all

[anchor]<unique id, same as you used in the index>[/anchor]
The above will give you an invisible anchor, so you add your section or subject heading after, if you wish.

OR:

Code: Select all

[anchor=<unique id, same as you used in the index]Section / subject heading[/anchor]
The above will turn your actual section heading into a link which references itself. Mostly kinda useless I think, but other sites I looked at had this option so I left it in.



So the index I created at the top of the page should link to this section:


Frogs

Frogs, frogs, frogs, frogs.

Re: Anchor / Goto BBCodes

Posted: Sun Jun 01, 2014 9:28 pm
by Wain
For an example of this in use, see:
http://forums.wow-petopia.com/viewtopic ... 53&t=21657

Re: Anchor / Goto BBCodes

Posted: Sun Jun 01, 2014 9:29 pm
by Vephriel
Image

Re: Anchor / Goto BBCodes

Posted: Mon Jun 02, 2014 2:57 am
by Lisaara
awesome! :D