Template talk:Section link

Latest comment: 1 month ago by Sdkb in topic Permalink option

Does display field work? edit

Thank you for working on this. I would like to alter the displayed text in many cases to display species names correctly as in this edit. 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 edit

{{see section||Soviet Union|Armenian SSR (Armenia)|label2=Armenian SSR}} displays §§ Soviet Union​ and Armenian SSR (Armenia). 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! {{u|Sdkb}}talk 20:21, 4 July 2022 (UTC)Reply

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)Reply
I believe we do. The disambiguation should be fixed by |label2=, as well. {{u|Sdkb}}talk 14:21, 11 October 2022 (UTC)Reply

Discouraged use in disambiguation pages edit

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. [1] Widefox; talk 21:48, 18 October 2022 (UTC)Reply

Add option "label for Section title" edit

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)Reply

Please add information on linking to subsections edit

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)Reply

Add a wikilink to the § symbol edit

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)Reply

Bug: any link without a section adds #Notes edit

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)Reply

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)Reply
That sounds good to me. –Novem Linguae (talk) 09:42, 13 July 2023 (UTC)Reply

Permalink option edit

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