Jump to: navigation, search


< Dev

Mediawiki Replacement Discussion[edit]

CodeSelect with pipes[edit]



rather than


Or simply have a look at the mediawiki markup for the following example.

Exec=cat file | grep something


pre tag with white spaces[edit]

Try making the opening tag

<pre style="white-space: pre-wrap;">

instead of normal pre>.

There are a number of other wrapping/whitespace options if that doesn't work for what you need.

Locations to Edit[edit]

Check if scripts are loaded[edit]

Using a dektop browser with mobile skin these scripts get loaded (the bold one contains the mobile.js):

But using the emulated mobile device with the same skin only these get loaded:

search for


the error only occurs when a mobile device is used and the mobile theme is active



We are using Varnish devicedetect.vcl. When a mobile device is detected (using a known user agent), we transparently add ?useformat=mobile to the apache backend request.


curl --cookie test=yes https://www.whonix.org/wiki/Tor_Controller


Sometimes this helps.



sudo service apache2 restart && sudo service varnish restart


curl https://www.whonix.org/wiki/Tor_Controller?useformat=mobile > 1
curl --user-agent "android.mobile" https://www.whonix.org/wiki/Tor_Controller?useformat=mobile > 2
curl https://www.whonix.org/wiki/Tor_Controller?useformat=mobile > 3
curl --user-agent "android.mobile" https://www.whonix.org/wiki/Tor_Controller > 4
curl --user-agent "android.mobile" https://www.whonix.org/wiki/Tor_Controller?useformat=mobile > 5
curl https://www.whonix.org/wiki/Tor_Controller?useformat=mobile?useformat=mobile > 6
meld 1 2

cache clear[edit]


rm -r /var/www/w/cache/*

varnishadm 'ban req.url ~ "."'

mediawiki Mobile Frontend[edit]

There is no Table of Contents (TOC) when using MobileFrontend with javascript disabled.

Forum discussion[edit]


Random News:

Join us in testing our new AppArmor profiles for improved security! (forum discussion)

https | (forcing) onion

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! See Conditions for Contributions to Whonix, then Edit! IP addresses are scrubbed, but editing over Tor is recommended. Edits are held for moderation.

Whonix is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Libre Software license as Whonix itself. (Why?)