Template talk:Section link
Add topic| To help centralize discussions and keep related topics together, all subpages of this page, as well as the subpage family of Module talk:Section link, redirect here. |
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
Wikipiping
[edit]I rune into the necessity for wikipiping, e.g., the capital of Russia (hypothetical example). Can it be implemented as a parameter, e.g., {{section link|Stars in fiction|Neutron stars|pipe=life on the surface of neutron stars}}- Altenmann >talk 18:47, 18 August 2024 (UTC)
- Most often, hypothetical examples are meaningless. Is your other example a real-life example, or just another hypothetical?
- As currently written, this template and its module do not support piping. Likely, to do so would seem to conflict with the purpose of this template which is to make a pretty rendering of an unpretty wikilink where all parts of the wikilink are visible to the reader:
[[Stars in fiction#Neutron stars]]→ Stars in fiction#Neutron stars{{slink|Stars in fiction|Neutron stars}}→ Stars in fiction § Neutron stars
- If you want a piped link, make a piped link:
[[Stars in fiction#Neutron stars|life on the surface of neutron stars]]→ life on the surface of neutron stars
- But, such links might run afoul of WP:EASTEREGG.
- —Trappist the monk (talk) 19:42, 18 August 2024 (UTC)
- It is noit hypothetiical, and that's exactly what did in Life origination beyond planets three times, see the text "life with no sunlight" there and two more downtext. After second thought I nolonger see the advantage of using sectionlink template in such cases. Yes, I am aware of rotten Easter eggs, and I always fix them when I see them. --Altenmann >talk 23:32, 18 August 2024 (UTC)
- I sometimes use the template to link to related sections in the same article. This means that I want to flag to readers they're staying in the same article (with the section symbol), and need to make sure the text fits within the sentence, often requiring piping. —Femke 🐦 (talk) 07:32, 12 July 2025 (UTC)
- It is noit hypothetiical, and that's exactly what did in Life origination beyond planets three times, see the text "life with no sunlight" there and two more downtext. After second thought I nolonger see the advantage of using sectionlink template in such cases. Yes, I am aware of rotten Easter eggs, and I always fix them when I see them. --Altenmann >talk 23:32, 18 August 2024 (UTC)
First off, it is not this template's responsibility to ward off easteregging - we should assume editors are competent and that they can handle stuff this basic themselves. Also, any malicious editor can create a misleading link regardless of what this template does or does not do.
This template does already allow for piping, but only the first part, the article part. Personally I think checking whether |display= is equivalent to the link is wasted effort, but not to the point where I'm bothered by having the code remain in the module.
What this template would benefit from, then, is the functionality to pipe the section part. The reason you use this template is to get the beautification without manual labor (the paragraph sign, the underscore conversion and so on), but as I explain down below you can't get that when #styling the section parameter. CapnZapp (talk) 11:57, 14 July 2026 (UTC)
Custom conjunction word option
[edit]This edit request to Module:Section link has been answered. Set the |answered= parameter to no to reactivate your request. |
I'd like a |conjunction= parameter, primarily for lists with the word "or". I have tested at the module sandbox with this edit, which works as expected as can be seen in "Case 18: custom conjunction word" at Template:Section link/testcases § Multiple sections. This permits constructions like Article §§ Section 1 or Section 2. Dan Leonard (talk • contribs) 21:49, 7 October 2025 (UTC)
- Not addressing the issue directly but I am curious: why this code:
conjunction = '​ and '– the originalconjunction_string = '​ ' .. conjunction_word .. ' '– the proposal
- What purpose does
​(Zero-width space) serve? Lines will break at the immediately adjacent 'space' character ( ) so why do we need the zero-width space? - —Trappist the monk (talk) 22:24, 7 October 2025 (UTC)
- I can't see a good reason for this. It seems to have existed since the first version of the module, so maybe Mr. Stradivarius might remember? The original template version used regular spaces (and briefly,
 ) after the section signs, which might have had odd breaking behavior that the zero-width space was working around. Probably unnecessary though. Dan Leonard (talk • contribs) 23:06, 7 October 2025 (UTC)- @Trappist the monk: I removed the zero-width space from the sandbox and see no difference in the line break behavior at the testcases page, running Chromium version 141.0.7390.55. Dan Leonard (talk • contribs) 14:09, 8 October 2025 (UTC)
- @Dan Leonard and Trappist the monk: The
​was in the version of the template that I converted. It was added by User:Czarkoff here. — Mr. Stradivarius ♪ talk ♪ 14:27, 8 October 2025 (UTC) - Pinging Trappist the monk again because I messed up the first one. — Mr. Stradivarius ♪ talk ♪ 14:31, 8 October 2025 (UTC)
- I can't see a good reason for this. It seems to have existed since the first version of the module, so maybe Mr. Stradivarius might remember? The original template version used regular spaces (and briefly,
Not done for now—Feel free to reactivate when discussion is resolved. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:18, 8 December 2025 (UTC)
embedding into parameter of {{copied}} template
[edit]I'm trying to follow the instructions for Section moving. Step 6 suggests: "A {{copied}} template can be added to the talk pages of both the source and destination articles." I was hoping to embed {{section link}} into the {{copied}} template, in order to display the destination article's new section heading. However, embedding into the {{copied}} template's parameter to={{section link|Election denial movement in the United States|Election vigilante groups}} encloses the displayed link within [[ ]] brackets. Is there a way to display the link without brackets?
P.S. on Section moving's talk page, I also asked about an alternative template to {{copied}}. rootsmusic (talk) 03:38, 29 March 2026 (UTC)
styling the section parameter
[edit]Please add a parameter similar to |display= but for the section parameter as opposed to the article parameter.
See the documentation for why: Template:Section link § Styling page name Thanks CapnZapp (talk) 09:53, 13 July 2026 (UTC)