Jump to content

PCGamingWiki will use a Single Sign On (SSO) system to bridge wiki and forum accounts which is ready for testing. You may login using the 'Login with PCGamingWiki' button on both the wiki and the forum, which will soon be the only option. If you have any issues please message Andytizer on Discord.

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. 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

http://pcgamingwiki.com/wiki/User:Marioysikax/Sandbox 

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. 

Share this post


Link to post
Share on other sites

  • Who's Online   4 Members, 0 Anonymous, 76 Guests (See full list)

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Forum Statistics

    1,200
    Total Topics
    6,739
    Total Posts
×