View previous topic :: View next topic |
Author |
Message |
IWillKickU


Joined: 06 Dec 2007 Posts: 2830 Location: In the Undertow
|
Posted: Fri Oct 31, 2008 7:04 pm Post subject: Struggling with a table of contents |
|
|
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 |
|
 |
guitarroker


Joined: 06 Jan 2008 Posts: 1993 Location: Iceland
|
Posted: Fri Oct 31, 2008 7:09 pm Post subject: |
|
|
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 |
|
 |
Ouzo 

Joined: 27 Jul 2007 Posts: 1500 Location: St. Louis Park, Minnesota
|
Posted: Fri Oct 31, 2008 7:17 pm Post subject: |
|
|
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 |
|
 |
rkcr 

![]()
Joined: 05 Feb 2007 Posts: 2518 Location: Minneapolis
|
Posted: Fri Oct 31, 2008 7:20 pm Post subject: |
|
|
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 |
|
 |
IWillKickU


Joined: 06 Dec 2007 Posts: 2830 Location: In the Undertow
|
Posted: Fri Oct 31, 2008 7:25 pm Post subject: |
|
|
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 |
|
 |
DanSoup


Joined: 22 Sep 2007 Posts: 857 Location: Sheffield, UK
|
Posted: Sat Nov 01, 2008 7:24 pm Post subject: |
|
|
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 |
|
 |
|