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.
Never one to shy away from a challenge, I took a stab at solving this
dilemma:
http://www.mediawiki.org/wiki/User:Jimbojw/Semantically_correct_right-align…
It uses <div> tags instead of headings with a whole bunch of inline style,
but I think the principle is sound.
The final markup would look something like this:
<h2><span>Explanation section</span></h2>
<div class="editsection">[<a
href="/edit/url">edit</a>]</div>
And the accompanying CSS would (probably) be something like this:
h2 {
font-size: 1.6em;
float: left;
border: none;
padding: 0;
}
h2 span {
display: block;
padding-right: 0.3em;
}
div.editsection {
border-bottom: 1px solid #aaa;
line-height: 1.8em;
padding-bottom:0.2em;
}
One caveat to this approach is that the edit link is what's responsible for
the bottom line on the section - which means if this is not present (as by
__NOEDITSECTION__) then the whole thing would be broken. This would
obviously have to be accounted for.
This isn't meant to be a final solution by any stretch - just a proof of
concept that it _may_ be possible to create a semantically correct XHTML
schema which results in German style edit link placement. I leave it to the
CSS experts to come up with a better way :)
-- Jim
On 6/26/07, Danny B. <Wikipedia.Danny.B(a)email.cz> wrote:
Od: Jim Wilson <wilson.jim.r(a)gmail.com>
I don't like that much at all :( To me,
putting the edit before the
header
seems even more likely to confuse people
(thinking that the edit link
belongs to the previous section)
Well, let me point out, that the gap in between the previous paragraph and
editlink is pretty big (and can be done even bigger if necessary) comparing
to the gap in between editlink and header, which actually almost doesn't
exist, since it's sticked together. This is exactly the way which should
clear all doubts about which part the editlink belongs to, if previous or
following.
Kind regards
Danny B.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l