Anchor / Goto BBCodes

User avatar
Wain
The Insane
The Insane
Posts: 13511
Joined: Tue Jul 27, 2010 1:54 am
Gender: Male

Anchor / Goto BBCodes

Unread post 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.
Shaman avatar by Spiritbinder.
User avatar
Wain
The Insane
The Insane
Posts: 13511
Joined: Tue Jul 27, 2010 1:54 am
Gender: Male

Re: Anchor / Goto BBCodes

Unread post by Wain »

For an example of this in use, see:
http://forums.wow-petopia.com/viewtopic ... 53&t=21657
Shaman avatar by Spiritbinder.
User avatar
Vephriel
Illustrious Master Hunter
Illustrious Master Hunter
Posts: 16354
Joined: Wed Jan 06, 2010 8:07 pm
Realm: Wyrmrest Accord US
Gender: Female
Location: Canada

Re: Anchor / Goto BBCodes

Unread post by Vephriel »

Image
User avatar
Lisaara
Illustrious Master Hunter
Illustrious Master Hunter
Posts: 17419
Joined: Thu Sep 09, 2010 9:11 pm
Realm: Moon Guard
Gender: Genderfluid
Location: US
Contact:

Re: Anchor / Goto BBCodes

Unread post by Lisaara »

awesome! :D

Image
LisaaraPokefarm
Sig Credits: Lisaara, Ashaine

Post Reply