Starting a counter in mediawiki without extension

⇠ Back to Blog:Hacks
m
m
Line 1: Line 1:
Say you want to count like this in [[mediawiki]] (not starting at 1):
 
 
<div style="color:white;">
 
# <ol start=3><div style="color:black; position:relative; left:-50px;">
 
# Three
 
# Four
 
# Five</div></ol></div>
 
 
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]]).
 
 
--more--
 
 
<pre><nowiki>
 
<div style="color:white;">
 
# <ol start=3><div style="color:black; position:relative; left:-50px;">
 
# Three
 
# Four
 
# Five</div></ol></div>
 
</nowiki></pre>
 
 
I use that often in multicol environment:
 
 
which gives me a nicely-ordered, neatly-displayed list of my [[Mathematics]]'s [[The_Wolverhampton_Lectures_of_Physics/Mathematics|Wolverhampton lectures of Physics]]:
 
  
 
{{multicol}}
 
{{multicol}}

Revision as of 10:26, 25 January 2021

</div>
Fabrice • 10:10, 25 January 2021

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