Numbered MediaWiki list with pre, source or code tags inside
The other answer is incorrect. This can be done using the line
option:
# First
# Second <source line lang="CSharp">Some
Multi
Line C Sharp
Code </source>
# Third
Look, the output is correct: https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=1915324