Template talk:Section link

Does display field work?
Thank you for working on this. I would like to alter the displayed text in many cases to display species names correctly as in. However neither the automatic display parsing nor display appears to work. The use of  causes correct display but an unusable link while display appears nonfunctional entirely. Do I not understand something obvious about using this? Invasive Spices (talk) 4 June 2022 (UTC)

Bugs
displays. There are at least two bugs here. The multiple "§§" is one, and the lack of functionality for label2 is another. I'd appreciate if this could be fixed for use at World War II by country. Thanks! &#123;{u&#124; Sdkb  }&#125;  talk 20:21, 4 July 2022 (UTC)


 * Do we agree that the output should be § Soviet Union​ and § Armenian SSR (Armenia)? – i.e. with a single section sign per link — GhostInTheMachine talk to me 11:26, 10 October 2022 (UTC)
 * I believe we do. The disambiguation should be fixed by label2, as well. &#123;{u&#124; Sdkb  }&#125;  talk 14:21, 11 October 2022 (UTC)
 * Pictogram voting wait.svg Bumping thread.  Sdkb   talk 22:10, 28 May 2024 (UTC)

Discouraged use in disambiguation pages
Per MOS:DABPIPING, I believe the consensus is to discourage use of templates such as fti, ftq, and ship names in disambiguation pages, which to me would also apply to this template These should be substituted, since templates are discouraged on disambiguation pages. I removed one used in BRD. Widefox ; talk 21:48, 18 October 2022 (UTC)

Add option "label for Section title"
Could we add a label-option for the section title? Would be similar to display for pagename. A use case example is infoboxes, where the Section label can differ from the (formal) TOC section title. DePiep (talk) 07:42, 11 November 2022 (UTC)

Please add information on linking to subsections
The help page provides no information on the limitations involved in linking to subsections, either within an article or between articles. The curly bracket template can be used for this, but the square bracket version apparently cannot. The problem is the curly bracket template displays the path, whereas I wanted to display an "alias" which can only be done by piping the name, a function limited to the square bracket template.

If the above is correct, it would be very helpful to mention these limitations. I just spent over an hour testing different possibilities, and finally determined what I wanted to do—link to a subsection within an article using "see above" with "above" as the clickable link—wasn't possible. I found the answer, using the Anchor template, elsewhere. Of course, Anchor is included in the template page's See Also list, but without any description of what it does, so an explanatory note here would be helpful as well. Thank you. Allreet (talk) 18:50, 4 May 2023 (UTC)

Add a wikilink to the § symbol
is there anyway a wikilink could be added to the § symbol pointing to Section_sign. A lot of people don't know what that symbol means, myself included until very recently. Jake Jakubowski  (Talk)  05:13, 14 June 2023 (UTC)

Bug: any link without a section adds #Notes
None of the following have "Notes" as a template parameter. It must be coming from Module:Section link



I played around with fixing this in this edit, but it still leaves an errant " § " when testing it in the sandbox. Anyone want to take this to the finish line and submit a TPER? Thanks. – Novem Linguae (talk) 04:47, 6 July 2023 (UTC)
 * If the purpose of the module [is to create] links to sections, nicely formatted with the "§" symbol instead of the default "#", is there ever a legitimate reason for it to make up a section name that may or may not exist in the target article? Is there ever a legitimate reason to omit the section name from a template named 'section link'?  I don't know of any such reasons so, for me, I would have the module emit a section name missing (or some such) error message (perhaps with an accompanying hidden category).
 * —Trappist the monk (talk) 13:21, 6 July 2023 (UTC)
 * That sounds good to me. – Novem Linguae (talk) 09:42, 13 July 2023 (UTC)
 * Using the sandbox and the example from the OP:
 * —Trappist the monk (talk) 15:54, 1 June 2024 (UTC)
 * —Trappist the monk (talk) 15:54, 1 June 2024 (UTC)

Permalink option
This template could be enhanced by adding an optional parameter for linking to a permanent revision of the section on the page.  Sdkb  talk 00:25, 17 March 2024 (UTC)


 * @Novem Linguae and @Trappist the monk, I see you've both been active in editing this template recently. Since I don't know how to code Lua, wondering if you might be interested in helping with this?
 * To flesh out the proposal a bit, I envision a new permalink parameter that would be used to provide a revision number, and if so provided the link would go to that revision.  Sdkb  talk 02:34, 29 May 2024 (UTC)
 * Using the sandbox: links to the first post in this discussion:
 * → Special:Permalink/1214107719
 * Only supported for uses with one section parameter; with multiple section parameters permalink is ignored.
 * —Trappist the monk (talk) 15:52, 1 June 2024 (UTC)
 * Looks good to me! Thanks for coding; I'd say feel free to implement.  Sdkb  talk 05:16, 2 June 2024 (UTC)
 * Done. I leave it to you to update the documentation.
 * —Trappist the monk (talk) 14:39, 2 June 2024 (UTC)
 * Done. I leave it to you to update the documentation.
 * —Trappist the monk (talk) 14:39, 2 June 2024 (UTC)