Template talk:Ordered list
Add topicSimple example of usage:
The Book of the Thousand Nights and One Night/Volume 1
List items that split over a page break
[edit]Can the module cope with a list item that continues over a page break? ShakespeareFan00 (talk) 10:07, 22 June 2018 (UTC)
- @ShakespeareFan00: Yes, see Page:The Pālas of Bengal.djvu/80. -- Hrishikes (talk) 10:29, 22 June 2018 (UTC)
- Erm that page is using {{numbered list}} a different template, that's using intense wikimarkup over this one which is LUA code? ShakespeareFan00 (talk) 10:32, 22 June 2018 (UTC)
I had in mind this situation:
4. Item 4 - when formatting a list , it's important to <!--- page break --> correctly format when a list item is split between two pages. 5. The style of a list item can be changed using ... ....
I'm not entirely certain either template can cope cleanly with that situation at present.
- The template seems to be using table syntax (pipe mark at start of every line). So it should be like page-spanning table. Or, there should be something like {{dotted TOC page listing/top}}, {{dotted TOC page listing/suspend}}, {{dotted TOC page listing/resume}}, {{dotted TOC page listing/bottom}} for this kind of thing. If I get a suitable page with this kind of issue, then let's see. Hrishikes (talk) 11:10, 22 June 2018 (UTC)
- Okay lets back up a little.. Which template is (wrongly) using a table style approach to lists? Lists and tables are NOT the same thing, and whilst using a table to do a list is reasonable it seems to me to be setting up problems for the future.ShakespeareFan00 (talk) 11:43, 22 June 2018 (UTC)
- If you needed an example to work on, see the tables at the start of the Ruffhead Statutes of large.. If I recall I ended up coding some of those with inline HTML directly, which is ugly (And I was of the view that inline HTML in 'content' pages was undesirable for portablity reasons.)
ShakespeareFan00 (talk) 11:46, 22 June 2018 (UTC)
- Start here for example Page:Ruffhead - The Statutes at Large - vol 2.djvu/9, So far I've not found 'split-list' items but I am checking..ShakespeareFan00 (talk) 11:48, 22 June 2018 (UTC)
- And found a specfic example: Page:Ruffhead_-_The_Statutes_at_Large_-_vol_9.djvu/31 to Page:Ruffhead_-_The_Statutes_at_Large_-_vol_9.djvu/32 contains a 'split-over-page break list item'. The current approach works but is ugly and cleaner wiki markup compatible way of doing it would be better.
ShakespeareFan00 (talk) 11:50, 22 June 2018 (UTC)
- @ShakespeareFan00: OK, I'll have a look. Now, about Page:1909historyofdec04gibbuoft.djvu/278, I had tried double column with the line in between by using {{multicol}}, but the start parameter of {{ordered list}} seems to be non-functional. Hrishikes (talk) 12:39, 22 June 2018 (UTC)
- Intresting.. Where I'd replaced it already and I will check it was working. ShakespeareFan00 (talk) 12:40, 22 June 2018 (UTC)
- @ShakespeareFan00: Done it. Did you notice that there is no serial "j"? Hrishikes (talk) 16:10, 22 June 2018 (UTC)
- This is why I don't 'validate' stuff I've proofread. :) Thanks. ShakespeareFan00 (talk) 16:32, 22 June 2018 (UTC)
- @ShakespeareFan00: -- I have attempted the Ruffhead pages. The page break is problematic with the templates. Page-break variants of the templates (like dtpl variants) required. You can revert my edits if you wish (it now looks uglier, I think). -- Hrishikes (talk) 16:54, 22 June 2018 (UTC)
- Yes definitely, want to figure out how to write them, so we can resolve this?ShakespeareFan00 (talk) 16:57, 22 June 2018 (UTC)
- @ShakespeareFan00: -- Did it, please check. Not much elegant, I fear. Hrishikes (talk) 18:13, 22 June 2018 (UTC)
- @ShakespeareFan00, @Hrishikes:--
- Yes definitely, want to figure out how to write them, so we can resolve this?ShakespeareFan00 (talk) 16:57, 22 June 2018 (UTC)
- @ShakespeareFan00: -- I have attempted the Ruffhead pages. The page break is problematic with the templates. Page-break variants of the templates (like dtpl variants) required. You can revert my edits if you wish (it now looks uglier, I think). -- Hrishikes (talk) 16:54, 22 June 2018 (UTC)
Using 'start' element and specifying the integer worked for me. https://te.m.wikisource.org/wiki/%E0%B0%AA%E0%B1%81%E0%B0%9F:AntuVyadhulu.djvu/39
merge function or migrate ?
[edit]- Note, I am thinking that depending on usage, that {{numbered list}} should be merged with {{ordered list}} ?
Ordinal numbers list
[edit]I would like to have an option for formatting at list like:
- 1st. ababababababbabb
- 2nd. ababababababbabb
- 3rd. ababababababbabb
Eievie (talk) 02:00, 3 July 2022 (UTC)
Parenthesis numbers
[edit]- (1) ababababababbabb
- (2) ababababababbabb
- (3) ababababababbabb
For a book that contains this kind of list as well as the normal kind, and contrasts between the two.
Eievie (talk) 02:02, 3 July 2022 (UTC)
- Agreed. And, it's important for line breaks to work properly...so, for instance, the following is not ideal, because the additional lines are not left-aligned properly: -Pete (talk) 08:04, 4 July 2022 (UTC)
- (1) ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb
- (2) ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb ababababababbabb
- (3) ababababababbabb
- You can set up handling for a parenthetical list by using CSS on the 'marker', and the list-item counter. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters
ol.__ourclass li.::marker{
content:"(" counter(list-item)")"
}
However, I'm not sure how portable that is to older browsers. ShakespeareFan00 (talk) 10:32, 4 July 2022 (UTC)