Actions

Dev/mediawiki

From Whonix

< Dev


test

Mediawiki Replacement Discussion[edit]

CodeSelect with pipes[edit]

Use

{{!}}

rather than

|

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

Exec=cat file | grep something

https://phabricator.whonix.org/T614 [archive]

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 [archive] 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

sdShowDetailed

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

Caching[edit]

Varnish[edit]

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

Cookies[edit]

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

Fixing[edit]

Sometimes this helps.

https://www.whonix.org/wiki/Tor_Controller?action=purge [archive]

https://www.whonix.org/wiki/Tor_Controller?useformat=mobile?action=purge [archive]

sudo service apache2 restart && sudo service varnish restart

Test[edit]

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]

apc_cache_clear

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.

misc notes[edit]

mediawiki server[edit]

Forum discussion[edit]

https://forums.whonix.org/t/short-and-detailed-buttons-in-the-wiki-html-help-wanted [archive]



We are looking for help in managing our social media accounts. Are you interested?

https [archive] | (forcing) onion [archive]
Follow: Twitter.png Facebook.png 1280px-Gab text logo.svg.png Rss.png 1024px-Telegram 2019 Logo.svg.png Discourse logo.svg

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation.

Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee [archive] of the Open Invention Network [archive]. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian [archive]. Debian is a registered trademark [archive] owned by Software in the Public Interest, Inc [archive].

Whonix ™ is produced independently from the Tor® [archive] anonymity software and carries no guarantee from The Tor Project [archive] about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint.

Monero donate whonix.png