Forum:Link to a specific location on a page without creating headers?

Hi, I've done many edits and housecleaning and visual improvements to w:c:paradiseislandhd but just a few things I can't work out. I know you can link to any Heading using # - such as PageName but to create that link you have to create that header which (a) shows on the page, and (b) shows in the TOC.

Isn't there a way to insert a "link here" code to link to without (a) & (b) side effects? Such as linking to a certain row in a table, linking to certain paragraph that doesn't have a paragraph Heading, etc?

Thanks, DarkMoonRising 07:09, June 22, 2012 (UTC)
 * You can only focus on headings with  because headings have their id attribute match their content. You can focus on any html element with an id by using  . So therefore, if you were to have, say:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam at dolor purus. Etiam sagittis tempor cursus. Sed non nisl nec magna ultrices blandit quis vitae nunc. Etiam tristique sagittis lacus, sit amet placerat turpis fermentum quis. Suspendisse mollis lacinia eros, ac interdum sem condimentum ut. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
 * In an article, you could use a link to focus on it by doing Article.


 * Mediawiki makes it very easy to give attributes to tables and table cells, and you probably already know how to do it. For example,  There, you're just giving the table a class attribute of "wikitable". You can insert any other attribute in there as well. So   will work. You've probably used some style attributes with table cells before as well. For example, , which will make the cell have a blue background. Just like with the beginning of the table definition, you pass it any html attribute. So   will work. If you have any other questions, ask away. — Matthew2602 (talk) 07:44, June 22, 2012 (UTC)


 * Ooh - me go experiment :-) DarkMoonRising 07:54, June 22, 2012 (UTC)

Thankyou, so I've been using id= in cells now no problem, but any way to apply an ID to any line? I tried putting  on a line I wanted to link to, which is in a list, as such:


 * 1)  Point #4 paragraph

but it created a line break after the Point #. Putting  on its own line between #'s started the # count at 1 again. I worked out a workaround by putting  at the very end of the previous # point. But is there not a way just to insert an id= anywhere simply?

Ta http://images4.wikia.nocookie.net/__cb20120612094918/paradiseislandhd/images/6/67/Dollars_small.pngDarkMoonRising  €   talk   contribs  | 04:56:44, June 26, 2012.


 * Yeah. Use a or  instead. (   should be preferred) Also, the # is not needed when adding the ID. The # is used to reference the ID. This phrase...  ... could be referenced with  . Rappy 19:30, June 26, 2012 (UTC)