Starting a counter in mediawiki without extension

⇠ Back to Blog:Hacks
m
m
Line 47: Line 47:
 
# [https://www.youtube.com/watch?v=Eh_UbQdddIg Wronskians]
 
# [https://www.youtube.com/watch?v=Eh_UbQdddIg Wronskians]
 
# [https://www.youtube.com/watch?v=uKtNA_P_-ho Jacobians]
 
# [https://www.youtube.com/watch?v=uKtNA_P_-ho Jacobians]
# [https://www.youtube.com/watch?v=T7k17Ct5FeM The Equations of Physics]</ol><div>
+
# [https://www.youtube.com/watch?v=T7k17Ct5FeM The Equations of Physics]
 +
<div><div>
 
{{multicol-end}}
 
{{multicol-end}}
  
 
{{wl-publish: 2021-01-25 10:10:13 +0000 | Fabrice }}
 
{{wl-publish: 2021-01-25 10:10:13 +0000 | Fabrice }}

Revision as of 10:23, 25 January 2021

Say you want to count like this in mediawiki (not starting at 1):

    1. Three
    2. Four
    3. Five

The internet tells you it's not possible natively and that you need an extension. Here's an ugly hack to do it anyway! (keeping the # rather than going full HTML).

<div style="color:white;">
# <ol start=3><div style="color:black; position:relative; left:-50px;">
# Three
# Four
# Five</div></ol></div>

I use that often in multicol environment:

which gives me a nicely-ordered, neatly-displayed list of my Mathematics's Wolverhampton lectures of Physics:

Fabrice • 10:10, 25 January 2021

Retrieved from "http://laussy.org/index.php?title=Blog:Hacks/Starting_a_counter_in_mediawiki_without_extension&oldid=27554"