Links

How do you make an entry in the side bar (toc file) that links to an anchor in one of your pages?

Thank you

legalize freedom!

The same way you’d make an entry that links to a regular page, just append “#” and the anchor name. e.g.
[A HREF=“mypage1.shtml#myAnchor”]My Link Text[/A]

Thank you. That’s what I needed to know.

legalize freedom!

Legalize freedom!

I would like to know how to indent the sub-headings on the side bar (toc). I would like the anchor links and their bullets to be indented to distinguish them from the main page headings.

Also, I would like to know how to make multiple line headings. Say the page or anchor heading is longer than the bar is wide…the second line of the heading would need to be indented without a bullet.

Thanks

legalize freedom!

You can indent just by adding a bunch of  s to it, or you can do what we do and add an [IMG SRC="/space.gif"] (which is a 1-pixel totally transparent image) stretched out to the width you want.
To indent a second line, just add a [BR] tag before you do either of the aforementioned things.

thanks, I got the indent under control. Couple of other things…

in the toc file for the side bar…
Where do you put the [BR]? Do you make another line with the same link info or do you put it somewhere on the single line?

How do you control if a line has a bullet?

How do you change side bars? I’ve seen some shrines that, once you click on a section…say armor… the side bar would then change to the breakdown of the armor…say body, helmets, gloves, etc. Any opinions about if that is the way to go or is it best to put every link on one big side bar?

legalize freedom!

I’m not sure what you’re asking here… can you be a bit clearer?

How do you control if a line has a bullet?

There’s an entity reference (�). That’s the bullet. Remove it if you don’t want it there.

How do you change side bars? I’ve seen some shrines that, once you click on a section…say armor… the side bar would then change to the breakdown of the armor…say body, helmets, gloves, etc. Any opinions about if that is the way to go or is it best to put every link on one big side bar?

That depends on what you’re dealing with. Generally speaking, no, it’s not necessary (anchors at the top of the page are sufficient). If you have a large subset of pages, though, such as a walkthrough with many parts, it might be useful. If you want to do it, put the separate pages into a subfolder, then add another toc.txt into that folder. Be careful that the links point to the proper place; i.e. if you want to reference a page in the main folder, you’d have to write [A HREF="…/mainPage1.shtml"].

Thank you.

I got the bullet thing.

I also think I understand the multi toc thing… I’ll explain what I was considering. for example my Quest section will be one page, but will have many entries that I don’t want people to have to wade through (for ease and to be somewhat spoiler free). I was considering…when you click on the quests page…the side bar displays the quests available. Then you go back or click main to get back to the overall menu. So, can you do it with anchors instead of mutiple shtml files?

You suggested using a [BR] in an earlier post. Here’s a line from my toc file. Let’s say the “Hidden Items by Map” was too long for the side bar, where do you put the [BR] and the subsequent indent?

<img src="/space.gif" width="9">•<a HREF="hidden items.shtml">Hidden Items by Map</a><br>

I guess that’s the way your supposed to show code…

Thanks for all your help

legalize freedom!

You can do it with anchors (i.e. a table of contents at the top of one big page). It really depends how big each individual section is.

As for the BR, you’d have to look and see where the words are wrapping, and put it before the first word on the new line. Or you can force a wrap and e.g. put it before the word “by” (which would probably be best since it’d look more even).

It is slowly coming together…but

I’m trying to indent the line after the break…so I put another gif in, right? So why can I now see the outline of the image?

http://tartarus.rpgclassics.com/~darkwizard/

legalize freedom!

On that one link that you have spanning two lines, make sure that the IMG tag has a border=0 parameter.

        <img src="/space.gif" width="30"><a HREF="general information.shtml#II-09">Special Character<br><img src="/space.gif" width="30" border="0">Class Advances</a><br>

Otherwise, the blank image there has a border due to the fact it’s within the link.

legalise freedom!

I think I’m in pretty good shape thanks to you guys.

Is there a list somewhere of all the codes used on this site (mainly for the toc). For instance, are there multiple kinds of bullets, or other things we can use.

I’d like to know about all the resources available before I get too far in.

Thanks again

legalize freedom!

Right now we just have those templates and the class=“info” attribute for tables. Nothing else, I’m afraid. ^^;