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


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Sun Dec 06, 2009 10:29 pm Post subject: a question (or two) |
|
|
I didn't see anything like this in the Formatting Rules or Templates/Actions, if you're wondering.
On some userpages (especially DanSoup's) I've seen places where theyve listed their FCs for each game and difficultyin different colored boxes (of course, difficulties for the same game had the same color).
I was wondering, is that a codebox or something else?
Also, how do you make a table of contents? (didn't see that in the Templates either) _________________
|
|
Back to top |
|
 |
ricecake 


Joined: 17 May 2007 Posts: 1890 Location: Linthicum Heights, MD
|
Posted: Sun Dec 06, 2009 11:13 pm Post subject: |
|
|
If you want to see how any page was written, you can add "/showcode" to the end of the URL and it will show you. For example:
http://wiki.scorehero.com/User_DanSoup/showcode
It looks like he coded them manually as HTML tables and set the background attribute to the various colors.
For a table of contents, at the place where you want to link to, you add:
Code: | <a name="whatever"></a> |
Then when you link to it, you use:
Code: | <a href="#whatever">link text here</a> |
You might have to put the whole address in the link code, like:
Code: | <a href="http://wiki.scorehero.com/ThePage#whatever">link text here</a> |
Remember that if you use raw HTML (like the above codes are), you have to put them in double-double quotes. So, to set the link target, it would have to be like:
Code: | ""<a href="#whatever"></a>"" |
I put a table of contents on the Cheat Codes wiki page that you can look at for an example. _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Mon Dec 07, 2009 1:29 am Post subject: |
|
|
Would I have to put double quotes for every I do? _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Mon Dec 07, 2009 2:12 am Post subject: |
|
|
Ok, using your Cheat Code ToC as a template, I edited what was needed to make it fit my userpage, but the links won't automatically jump to each section.
Do they have to be word for word? Separated by something? A mixture of the two? _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Mon Dec 07, 2009 4:59 am Post subject: |
|
|
Also, is there a thread/page for all the known color hex codes? I'd really like to use some (that, and I have no idea how to find them). _________________
|
|
Back to top |
|
 |
ricecake 


Joined: 17 May 2007 Posts: 1890 Location: Linthicum Heights, MD
|
Posted: Mon Dec 07, 2009 3:52 pm Post subject: |
|
|
I looked at your page and it seems like you are missing the targets (the Code: | ""<a name="#whatever"></a>"" | things). Go back to the cheat codes page, and scroll all the way to the bottom. You see the
Code: | ""<a name="DJH"></a>"" | right before the DJ Hero section? You need to put those at the places where you want the page to automatically jump to. Just make sure the name you pick and the name in the link match.
As far as the HTML hex colors, it is an RGB triple where the first two letters/numbers are red, the middle two are green, and the last two are blue. W3schools has a tutorial on them, and there are lots of online color converters too (try searching for [html hex color] and go from there). _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Mon Dec 07, 2009 10:18 pm Post subject: |
|
|
I don't know what exactly I did wrong, though. All I did was switch the cheat codes html with the link to my userpage, then changed what was after the "#" to the desired target. Other than adding in/taking out target links, my ToC looks just like yours. I'm pretty sure I put the targets in right.
And if you meant add double quoutes around each a href, all that did was get rid of the table and leave the codes available to be seen. I don't think that was what you meant, though, right? That, or I just can't tell what you're pointing at. _________________
|
|
Back to top |
|
 |
ManfredvonKarma 


Joined: 31 Oct 2007 Posts: 3783 Location: Toms River, NJ
|
Posted: Mon Dec 07, 2009 11:56 pm Post subject: |
|
|
Looking at it, your table of contents appears to be good. The issue is that your links are dead. They don't actually lead anywhere.
When you have Code: | <a href="http://wiki.scorehero.com/User_voidedalive2x#GH1">Guitar Hero</a><br> | you need to have somewhere that corresponds to that link. You do this by adding Code: | ""<a name="#GH1"></a>"" | where you want that table of contents link to lead. _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Tue Dec 08, 2009 12:17 am Post subject: |
|
|
I added ""s to it before, but it just messed up how the ToC looked. It made the contents box a small box and all the HTML outside the box, including the ending /tags for the table.
When I only added it to one, like:
Code: | ""<a href="http://wiki.scorehero.com/User_voidedalive2x#Voidedalive2x's game stats, accomplishments, and goals">Voidedalive2x's game stats, accomplishments, and goals</a>""<br> |
the contents box shrunk to a small box, but the only HTML-showing link was the one I added ""s to.
Adding a space between the double-quotes, like:
Code: | " "<a href="http://wiki.scorehero.com/User_voidedalive2x#Voidedalive2x's game stats, accomplishments, and goals">Voidedalive2x's game stats, accomplishments, and goals</a>" "<br> |
only made the quotes show up with a space between them, and everything else normal.
adding a space between the double quote and the a href, like:
Code: | "" <a href="http://wiki.scorehero.com/User_voidedalive2x#Voidedalive2x's game stats, accomplishments, and goals">Voidedalive2x's game stats, accomplishments, and goals</a> ""<br> |
reproduced the same effect as adding double quotes.
adding quad quotes (""""), like:
Code: | """"<a href="http://wiki.scorehero.com/User_voidedalive2x#Voidedalive2x's game stats, accomplishments, and goals">Voidedalive2x's game stats, accomplishments, and goals</a>""""<br> |
left the contents as a small box, but everything else fine. The ending /tags for the table weren't there, either _________________
|
|
Back to top |
|
 |
ricecake 


Joined: 17 May 2007 Posts: 1890 Location: Linthicum Heights, MD
|
Posted: Tue Dec 08, 2009 12:37 am Post subject: |
|
|
I think the thing is that you have to put the double-double quotes around blocks of HTML, not necessarily around each line. Like:
Code: | ""all of your table of contents code""
stuff
""more HTML code""
more stuff |
I have to work on schoolwork but if you don't have it sorted out by Thursday I can take a closer look. _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Sun Dec 13, 2009 6:57 pm Post subject: |
|
|
*facepalm* I get what MvK's saying now, I think.
I need to add links to where the ToC heads to, right? _________________
|
|
Back to top |
|
 |
ricecake 


Joined: 17 May 2007 Posts: 1890 Location: Linthicum Heights, MD
|
Posted: Mon Dec 14, 2009 6:21 pm Post subject: |
|
|
Yes, you need the "a href" to make the link to click on, and you need the "a name" for where the link jumps to. _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Tue Dec 15, 2009 5:30 am Post subject: |
|
|
should the place the link jumps to be the same color as the links?
and what if I need to have duplicate names for locations? (like for the list of FCs sections?) _________________
|
|
Back to top |
|
 |
ricecake 


Joined: 17 May 2007 Posts: 1890 Location: Linthicum Heights, MD
|
Posted: Tue Dec 15, 2009 6:05 am Post subject: |
|
|
voidedalive2x wrote: | should the place the link jumps to be the same color as the links? |
I don't understand what you're asking here.
Quote: | and what if I need to have duplicate names for locations? (like for the list of FCs sections?) |
If the names are identical, it won't work. I think if they are identical, then all the links might just go to the first one. All of the names should be unique for it to work properly. _________________
|
|
Back to top |
|
 |
voidedalive2x 


Joined: 29 May 2008 Posts: 7922 Location: jefferson city, MO
|
Posted: Tue Dec 15, 2009 11:04 pm Post subject: |
|
|
I had put "a name" around one of the links after realizing what MvK was trying to tell me, and it changed the color of the text to the same bluish color that normal links had. However, if you roll over it it doesn't change to a go to mouse.
oh, and should the "a name" go inside or outside other tags? (like for the headings or for bold/underline/italics) _________________
|
|
Back to top |
|
 |
|
|
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
|
Powered by phpBB
|