Ad placeholder

User talk:Taylan: Difference between revisions

Jump to navigation Jump to search
Tags: Reply Source
Tags: Reply Source
Line 109: Line 109:
: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)
::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)
:::Actually I'm not so sure now if I've correctly understood what you were trying to achieve. Can you give me a concrete example of a page? I've given you maintainer permission so you should be able to edit all the templates. [[User:Taylan|Taylan]] ([[User talk:Taylan|talk]]) 16:44, 13 April 2024 (CEST)

Navigation menu