Template talk:Section link
To help centralise discussions and keep related topics together, all talk subpages of Template talk:Section link and 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.
|
|
|
This page has archives. Sections older than 730 days may be automatically archived by Lowercase sigmabot III when more than 3 sections are present. |
Does display field work?
editThank 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)
- 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. {{u|Sdkb}} talk 14:21, 11 October 2022 (UTC)
- I believe we do. The disambiguation should be fixed by
- Bumping thread. Sdkb talk 22:10, 28 May 2024 (UTC)
Please add information on linking to subsections
editThe 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
editis 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
editNone of the following have "Notes" as a template parameter. It must be coming from Module:Section link
- {{Section link}}: required section parameter(s) missing
- {{Section link}}: required section parameter(s) missing
- {{Section link}}: required section parameter(s) missing
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:
{{Section link/sandbox|Miscellany}}
→ {{Section link}}: required section parameter(s) missing
- —Trappist the monk (talk) 15:54, 1 June 2024 (UTC)
Permalink option
editThis 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#Permalink option]]
→ Special:Permalink/1214107719#Permalink option{{section link/sandbox|Template talk:Section link|Permalink option|permalink=1214107719}}
→ Template talk:Section link § Permalink option
- 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)
- Looks good to me! Thanks for coding; I'd say feel free to implement. Sdkb talk 05:16, 2 June 2024 (UTC)
Wikipiping
editI 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)