-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Danny B. wrote:
A small, but important notice about the "German way":
German way isn't visually bad, but it has one big disadvantage: I am 99 % sure, this rendering can't be done together with correct semantics. Which means there is no semantically correct or nearly correct combination of tags and CSS you can use for creating of this style. That's actually why I threw in my solution proposal, which I played with for pretty long time during which I faced these problems. (Some more info coming in following replies.)
In theory it should be possible to put something sensible together like this:
<div class="sectionheader"> <h2>Header text</h2> <div class="sectionedit">[<a>edit</a>]</div> </div>
.sectionheader h2, .sectionheader h3, .... { display: inline; }
The border for major sections could also be stuck on that outer <div>.
This should provide the look currently visible on de.wikipedia.org, while still making some kind of sense semantically. Non-CSS browsers would show the edit link on another line from the header text, but that hardly seems the end of the world to me. By keeping the link _out_ of the actual header element, it should be friendlier to screen readers and anything that extracts the header text.
In theory. ;)
- -- brion vibber (brion @ wikimedia.org)