Template talk:Multi-section link
To help centralise discussions and keep related topics together, all talk subpages of Template Talk:Multi-section link and Module talk:Multi-section link redirect here. |
Development request
editIt would be exceedingly helpful for WP:POLICY documentation, and in-article cross-references in complex articles, to have a variant of this, whether it be {{Breadcrumbs link}}
or {{Multi-section link|breadcrumbs=y}}
that produced identical output to this, except that it:
- Linked each individual section, not just the last one (and linked those names without linking the section symbols)
- Linked the pagename also (when not suppresed), unless already on that page (we don't want to boldface by self-linking).
This should be used for pretty much every sub-sectional policy/guideline cross reference in hatnotes on such pages. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 18:52, 23 July 2015 (UTC)
PS: The function to do this should be reusable, e.g. by Module:Hatnote, etc. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 00:33, 25 July 2015 (UTC)
Missing basic feature
editUnlike Template:Section link, this one throws an error if you leave the first parameter blank. That's not desirable at all; it should just skip it. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 08:54, 24 July 2015 (UTC)
- @SMcCandlish: By "skip it", do you mean just creating a link like
[[#sectionname]]
instead of[[pagename#sectionname]]
? — Mr. Stradivarius ♪ talk ♪ 09:32, 24 July 2015 (UTC)- @Mr. Stradivarius: Yeps. We use this all the time (with
{{Section link}}
for "See X section, below" in the same page. If this one and the above-proposed breadcrumbs version worked that way, that'd be hot. As in{{Breadcrumbs link| |Quotations|Attribution}}
to produce§ [[#Quotations|Quotations]] §§ [[#Attribution|Attribution]]
, and I think it'd be[[#Attribution|§ Quotations §§ Attribution]]
for{{Multi-section link| |Quotations|Attribution}}
itself. — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼ 00:32, 25 July 2015 (UTC)
- @Mr. Stradivarius: Yeps. We use this all the time (with
- I support this proposal. — UnladenSwallow (talk) 15:38, 2 June 2024 (UTC)
Bug causes linking to wrong section
editThe code
{{mslink|Alexei Navalny|Yves Rocher case and home arrest|Case}}
should yield the URL
https://en.wikipedia.org/wiki/Alexei_Navalny#Case_2
but instead yields
https://en.wikipedia.org/wiki/Alexei_Navalny#Case
which is to an earlier section with the same title, i.e., Alexei Navalny § Kirovles case §§ Case.
Result: Alexei Navalny § Yves Rocher case and home arrest §§ Case
If this cannot be fixed, it could be explained as a technical limitation in the doc. Knr5 (talk) 20:19, 24 August 2020 (UTC)
- I had the same problem when I needed to reference a subsection in the Planck constant article: it has the § History section with the anchor #History and the § Reduced Planck constant ℏ §§ History subsection with the anchor #History_2. It would certainly be nice for
{{mslink}}
to automatically use the correct anchor. However, implementing this would require creating a special breadcrumbs-to-anchor index for each page with section title conflicts, otherwise the referenced page would have to be parsed each time{{mslink}}
is invoked. — UnladenSwallow (talk) 16:23, 2 June 2024 (UTC)
Add |nopage=
parameter
edit
Please add |nopage=
parameter with the same behavior as in {{slink}}
: "If set to "yes", "y" or "true", hides the page name (only section names are displayed)." — UnladenSwallow (talk) 15:33, 2 June 2024 (UTC)