348
editsAd placeholder
User talk:Taylan: Difference between revisions
Jump to navigation
Jump to search
→Notes "section" header in infoboxes: Reply
Cattlesquat (talk | contribs) |
|||
Line 108: | Line 108: | ||
: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? | :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) | :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) | ||
::Thx! Second solution sounds workable to me (although I think the first still cleaner -- obviously if somebody added a second Notes section, that would be visually odd anyway? I could only seeing that coming about accidentally & then would need cleanup). Appears editing templates needs special privs, so if you want to implement one? [[User:Cattlesquat|Cattlesquat]] ([[User talk:Cattlesquat|talk]]) 16:40, 13 April 2024 (CEST) |