Template talk:Multi-section link

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Development request[edit]

It 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:

  1. Linked each individual section, not just the last one (and linked those names without linking the section symbols)
  2. 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)[reply]

PS: The function to do this should be reusable, e.g. by Module:Hatnote, etc.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  00:33, 25 July 2015 (UTC)[reply]

Missing basic feature[edit]

Unlike 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)[reply]

@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)[reply]
@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)[reply]

Bug causes linking to wrong section[edit]

The 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)[reply]