Jump to content

Help talk:Section

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

How do you rsdirect to a specific section within a section of an article?

[edit]

Hello, I want to build a link that leads those who click it into a specific section within a section of the article. Can anyone please teach me how it is done? GabMen20 (talk) 16:03, 13 May 2025 (UTC)[reply]

How's this? Help:Section#Section_linking DonIago (talk) 20:01, 13 May 2025 (UTC)[reply]
I meant to say that I want to figure oyut how to redirect to a specific section within the section, which is within an article. For example, in the link you added, what I mean is that said link should redirect to the "Section linking and redirects" part of the section. GabMen20 (talk) 23:41, 13 May 2025 (UTC)[reply]
@GabMen20 If you can link to it:
You can redirect to it. Where in the process are you getting hung up? Rjjiii (talk) 01:14, 14 May 2025 (UTC)[reply]
@GabMen20: You don't say which article this is; examples always help. Looking at your editing history shows that the most recent article that you've worked on is 1988–1994 British broadcasting voice restrictions where you appear to be making a link to a point within Censorship in the Republic of Ireland, either the "Formerly censored topics" section or the "The Troubles: RTÉ and Section 31 of the Broadcasting Authority Act" subsection. As described at Help:Section#Section linking:
To link to a section in the same page you can use [[#section name|displayed text]], and to link to a section in another page [[page name#section name|displayed text]].
The anchors disregard the depth of the section; a link to a subsection or sub-subsection etc. will be [[#subsection name]] and [[#sub-subsection name]] etc.
So you would use either [[Censorship in the Republic of Ireland#Formerly censored topics|its own similar legislation]] which produces its own similar legislation, or [[Censorship in the Republic of Ireland#The Troubles: RTÉ and Section 31 of the Broadcasting Authority Act|its own similar legislation]] which produces its own similar legislation. I don't see why a redirect might be necessary. --Redrose64 🌹 (talk) 07:19, 14 May 2025 (UTC)[reply]
Thanks! I was trying to figure out how, as when I was trying to link said section within a section, I wasn't redirected to said section, but instead the general page. However, it may be because it was a mobile edit, and it may work differently on PC. Thank you regardless for your time! GabMen20 (talk) 12:45, 14 May 2025 (UTC)[reply]
@GabMen20: It's not redirection. Redirection is where you follow a link to one page and end up on a different page, usually intentionally, such as Robert Francis Prevost (click it and see where you're taken). Links to sections use something known as the URI fragment which is processed by your browser - this processing has been a feature of all browsers for at least two decades, possibly longer (see rfc:3986). It's a means of reaching some point within a page that is not necessrily at the very top. Since you cannot reach two different points simultaneously, it follows that only one fragment can be valid, and therefore only one hash character # is permitted in a URL. --Redrose64 🌹 (talk) 18:29, 14 May 2025 (UTC)[reply]
That'll be helpful to avoid repeating these mistakes in the future. Thanks! GabMen20 (talk) 22:31, 14 May 2025 (UTC)[reply]
[edit]

The section about the Table of contents (TOC) was very outdated as most of it only applied to the legacy Vector 2010 skin, which is no longer relevant since the new default of Vector 2022 has been in place since Jan 2023. I've moved the two parts that can be used in Vector 2022 up top and created a new section header for the legacy 2010 behavior. I also placed the now-wrong/outdate statement about the 4 sections required into a footnote, since the TOC is generated with just a single section now in Vector 2022. Raladic (talk) 14:45, 14 August 2025 (UTC)[reply]