This, that and the other <> changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED
                 CC|                            |
           Assignee|wikibugs-l@lists.wikimedia. |
                   |org                         |
            Summary|Line Numbers on Wikisource  |Add automatic line
                   |                            |numbering capability to
                   |                            |<poem> tag

--- Comment #9 from This, that and the other <> ---
I will submit a patch for MediaWiki core once bug 52061 is resolved.

The implementation/syntax I propose is as follows:

    <poem number-start=1

- Start and step are as per comment 7, although I prefer "first" and "last"
  (or "stanza-first" and "stanza-last") instead of "stanzas" and "lastline".
  The default for both is 1.

- number-show-first can be optionally specified if you want e.g.
  lines 1, 6, 11, 16... to be numbered, instead of the default 5, 10, 15...

- number-class is optional CSS class(es) to be applied to the line numbers.

To enable line numbering, you simply specify any one of these attributes.

Each line number would get an anchor (e.g. #5, #10). Lines without a visible
number get no anchor, to avoid excessive HTML clutter.

Feedback is welcome :)

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to