ScoreHero
Home | Forum | Wiki
Inbox [ Login ]Inbox [ Login ]
SearchSearch MemberlistMemberlist
ProfileProfile Log inLog in
Struggling with a table of contents

 
Post new topic   Reply to topic    ScoreHero Forum Index -> Wiki Brainstorming
View previous topic :: View next topic  
Author Message
IWillKickU  





Joined: 06 Dec 2007
Posts: 2830
Location: In the Undertow

PostPosted: Fri Oct 31, 2008 7:04 pm    Post subject: Struggling with a table of contents Reply with quote

I've been fighting with this thing all day. I've looked at some ToCs, and I understand tables and links, but linking to a specific part of my page escapes me. I've seen the templates, but I can't figure out the trigger.
For example: I have a heading on my page that reads:
Code:
====Pre-Guitar Hero====

I've tried making the link in the ToC
Code:
http://wiki.scorehero.com/User_IWillKickU#Pre-Guitar

Code:
http://wiki.scorehero.com/User_IWillKickU#Pre-Guitar Hero

Code:
http://wiki.scorehero.com/User_IWillKickU#Pre-GuitarHero


None of them seem to link to anywhere on that page. I just get a load bar in the bottom of my browser, and when it completes, it leaves me right where I already was.

I saw that there was an automated ToC request in the WikiFeatureRequests page, so we might get one, but in the meantime, can someone help me get this working?
Back to top
View user's profile Wiki User Page Send private message Send e-mail XBL Gamertag: IWi11KickU
guitarroker  





Joined: 06 Jan 2008
Posts: 1993
Location: Iceland

PostPosted: Fri Oct 31, 2008 7:09 pm    Post subject: Reply with quote

Well, to my understanding, Wikipedia searches for EXACT matches. Make sure the "Pre-Guitar Hero" section is actually called "Pre-Guitar Hero", if it's called "Pre Guitar Hero" it won't work.
Back to top
View user's profile Wiki User Page Send private message MSN Messenger Wii Friend Code: 146157709520
Ouzo  





Joined: 27 Jul 2007
Posts: 1500
Location: St. Louis Park, Minnesota

PostPosted: Fri Oct 31, 2008 7:17 pm    Post subject: Reply with quote

You need to put an anchor link somewhere. For instance, my page is structured this way:

The link to go to a specific section in the page:
Code:
<a href="User_Ouzo#Biography">1 About Me</a>


Where it ends up:
Code:
""<a name="Biography">""====About Me====

_________________
Back to top
View user's profile Wiki User Page Send private message PSN Name: Eonouzo
rkcr  





Joined: 05 Feb 2007
Posts: 2518
Location: Minneapolis

PostPosted: Fri Oct 31, 2008 7:20 pm    Post subject: Reply with quote

There are two aspects to linking to a specific part of a page:

1. A source anchor (link) that points to a named destination anchor.
2. A named destination anchor.

Wikka wiki doesn't support either #1 nor #2, so you have to use raw HTML. Here's an example of both:

Code:
1. ""<a href="http://wiki.scorehero.com/SandBox#RkcrTest">rkcr link test</a>""

2. ""<a name="RkcrTest">Anchor location</a>""


The key in the first one is the '#' notation on the link. The key on the second is the "name" attribute.

Does that help any?

Edit: Damn it Ouzo. I will cut you. I will cut you so bad you won't want to be cut anymore.
Back to top
View user's profile Wiki User Page Send private message Visit poster's website
IWillKickU  





Joined: 06 Dec 2007
Posts: 2830
Location: In the Undertow

PostPosted: Fri Oct 31, 2008 7:25 pm    Post subject: Reply with quote

Ah... I will once again point out that I am a complete html n00blerat0Rz, so I had no idea about the ancher. Back to work back to work!

*Makes awesomest wiki page EVARR!*

EDIT: I am the smartest man alive!!! <_<_> Ok, so Rkcr and Ouzo are, but I rode on thier coattails to Table of Contents awesomeness!!!
Back to top
View user's profile Wiki User Page Send private message Send e-mail XBL Gamertag: IWi11KickU
DanSoup  





Joined: 22 Sep 2007
Posts: 857
Location: Sheffield, UK

PostPosted: Sat Nov 01, 2008 7:24 pm    Post subject: Reply with quote

Apart from nicking things from other peoples Wikis by adding "/showcode" to the end of the URL. This shows EXACTLY what the person entered.

Also, Qwik & Easy HTML is a brilliant little resource. Even I understand HTML a little now.
_________________


Some say he came back just to fix the "5-Note Chord" banner in his sig...
[23:01] <DanSoup> Did you know, girls masturbate as often as men
[23:01] <DanSoup> they just lie about it normaly
[23:01] <SillyScape> no-one mastrubates as much as me
Back to top
View user's profile Wiki User Page Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ScoreHero Forum Index -> Wiki Brainstorming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Copyright © 2006-2025 ScoreHero, LLC
Terms of Use | Privacy Policy


Powered by phpBB