https://bugzilla.wikimedia.org/show_bug.cgi?id=13644

--- Comment #11 from This, that and the other <[email protected]> ---
(In reply to comment #10)
> As I understand,
> "stanza-first" will just count every line, and show the number only on the
> lines which are the first of their stanza, eg.: 1, 9, 17, 25... My "stanzas"
> proposal was to count each stanza as 1 and show the number of the stanza, not
> the number of the line, eg: 1, 2, 3, 4... Of course this is not "one or the
> other" :), I think both possibilities are useful and should be implemented
> (maybe also at a later time, the most important thing for now is to have the
> "basic" numbering system with number-start and a numeric number-step).

Good point about stanza counting.

Numbering first/last lines of stanzas is turning out to be more difficult to
code than I thought. I'll see what I can do. For now, I've got the basic
numeric functionality to work correctly, which is a good start.

> - On bug 52061, comment 21, they suggested the possibility of assigning a
> custom css class to poem. If this is done, maybe number-class is not
> required:
> you can give all numbers a standard class "line-number", then users can give
> a
> custom class to poem, like "fancyPoem", and they can define the behavior
> using
> css subclass like ".fancyPoem .line-number {...}"

What would actually be more useful than number-class, now I think about it, is
a "number-style" attribute, allowing ad hoc styling of line numbers for an
individual poem (not otherwise possible without editing global CSS files).

> - I would favour giving anchors to all lines. This would make it much easier
> to
> link to a specific line. Otherwise I'm sure that people would resort to
> linking
> to the "closest line" :D, which is not desirable. I'm not sure if it's better
> to use #line5, #line10 instead of #5, #10, since in HTML4 ids are required to
> start with a letter (although most browsers tolerate that - also HTML5 is
> more
> permissive about that).

OK, makes sense. By the way, MediaWiki outputs HTML5 now, so numeric anchors
should not be an issue. Browsers don't seem to choke on them, although older
ones like IE6 would have to be checked.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to