Michael_Feare
Is there any way to create content boxes for wiki pages on Obsidian Portal? As in the content section just below the introduction description on a real wikipedia article (which you can use to navigate the page by headings and suheadings instead of scrolling through the entire page). This would mean that every heading is essentially a link. I'm using layman's terms because I don't code.
I often write long articles for my campaigns, so having these would help out a lot.
Comments
~Weasel0
A Parade of Black | ShadowRunHack |
Where I play with CSS code
1) Set up the links within the page. For each header you want in the contents, add a link thingie (sorry, don't know what it's technically called) on a blank line above it. I've found that you do need to have a blank line above the link and between the link and the header. Like this:
HEADER
2) Set up the table of contents. You're going to make a div to hold the table of contents, put in the links, and make it look pretty. If you were an Ascendent member, you could do the making it look pretty step in the campaign CSS section, to minimize the code on each page, but if not, you just do it on a page-by-page basis. So, at the top of the page:
Contents
LINK TEXT
Just trying to help out.
Contents
Header1
Header2
h3. Header1
h3. Header2
Contents
Header1
Header2
h2. Header1
h2. Header2
Also, I know I mentioned it before, but do be sure that if you're copying and pasting from the forum that you go back and change every single one of the double quotes -- just delete it and retype it. The forum makes them all fancy and slanted, and then the site doesn't recognize it as proper code.
If those two things don't work, can you link me to a page where you're using the code? I admit that the code I gave you isn't the exact one I use, as I put the appearance stuff in my global CSS, so there may be something I forgot to change -- if I can see it in action, I may be able to figure it out better.
Thank you all, so very much, for this honor and for all your support.
Shadows would not be what it is without my awesome players, nor without the support of the awesome community here on OP.
Keelah Se'lai,
Keryth
"Shadows Over New York":http://www.obsidianportal.com/campaigns/shadows-over-new-york
"Campaign of the Month - July 2013":http://blog.obsidianportal.com/shadows-over-new-york-julys-campaign-of-the-month/