Jump to content

Recommended Posts

Many games fixbox use <pre> tag with list, mostly to show what needs to be changed in config etc. This doesn't work with numbered list as it breaks and even with regular list style breaks as <pre> content is bit more to left than list itself. 


Most of the time I see it's done by manually faking formatting and putting 1. 2. etc. instead of # and using spaces and enters to make it look OK but makes it much harder to actually modify and read as wikitext afterwards. 


I don't think it's possible to make changes to MediaWiki code and make <pre> work with lists. Only legit way of doing this as far as I know is to use HTML and <ol> <li> tags. 


Is there other way of doing this? If not then that HTML variation should be included in example article. 

Link to post
Share on other sites
  • 3 months later...

Manual numbering with : results in same style as automatic numbering with #:

:1. Go there
:2. Open this
:3. Add this
<pre>line 1
line 2
last line</pre>
:4. Save
Link to post
Share on other sites


Upper is HTML, lower is your example. With basic HTML it works wonderfully. 


Your example doesn't work optimally. : isn't actually starting or continuing list but simply moves starting point slightly right, but not the same amount as numbered list. <pre> content is also starting from very left. 


I know this is mostly nitpicking but as <pre> is used with fixboxes all the time it starts to irritate. 

Link to post
Share on other sites
  • Found PCGamingWiki useful? Please consider making a Donation or visiting our Patreon.
  • Who's Online   0 Members, 0 Anonymous, 279 Guests (See full list)

    There are no registered users currently online

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Forum Statistics

    Total Topics
    Total Posts
  • Create New...