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

This, that and the other <at.li...@live.com.au> changed:

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

--- Comment #9 from This, that and the other <at.li...@live.com.au> ---
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
          number-step=5
          number-show-first
          number-class="fancyLetters">

- 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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to