10,981
editsAd placeholder
User talk:Taylan: Difference between revisions
Jump to navigation
Jump to search
→Notes "section" header in infoboxes: Reply
Cattlesquat (talk | contribs) |
|||
Line 105: | Line 105: | ||
Hi Taylan! Do you know any way to make the infoboxes that have a "Notes" section end up with a Section Header that wiki would recognize in a link e.g. <nowiki>[[SomeItemPage#Notes]]</nowiki>? *Possibly* changing the (presently html) header formatting to be just <nowiki>== Notes ==</nowiki> instead in the template might do that? Had occasion to want to put a link to another page's "notes". Cheers. [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 15:50, 13 April 2024 (CEST) | Hi Taylan! Do you know any way to make the infoboxes that have a "Notes" section end up with a Section Header that wiki would recognize in a link e.g. <nowiki>[[SomeItemPage#Notes]]</nowiki>? *Possibly* changing the (presently html) header formatting to be just <nowiki>== Notes ==</nowiki> instead in the template might do that? Had occasion to want to put a link to another page's "notes". Cheers. [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 15:50, 13 April 2024 (CEST) | ||
:I guess your recommendation would work, though if the page has another "Notes" section outside the infobox, then it would be ambiguous. Perhaps it would be better to explain in text that the reader should look at the infobox notes? | |||
:Another possibility is to add an <code>id</code> attribute to the notes header in the HTML, since that's what browsers use to resolve links like <code>Blah#blub</code>. (For headers like <code><nowiki>== This ==</nowiki></code>, the id is inserted automatically into the HTML, based on the contents of the header.) So, for example, the header in the infobox could be <code><nowiki><h2 id="infobox-notes">Notes</h2></nowiki></code> and the link would be <code><nowiki>[[Some page#infobox-notes]]</nowiki></code>. That should work. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 16:03, 13 April 2024 (CEST) |