Dev/mediawiki
From Whonix
< Dev
banner[edit]
donate
Production[edit]
Testing[edit]
Mediawiki Replacement Discussion[edit]
CodeSelect[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]
- ../MediaWiki:Common.css [archive]
- ../MediaWiki:Mobile.css [archive]
- ../MediaWiki:Common.js [archive]
- ../MediaWiki:Mobile.js [archive]
- ../MediaWiki:Foreground.css [archive]
- Mediawiki skin strapping does not use ../MediaWiki:Common.css [archive] but
/var/www/wiki/skins/strapping/theme.css
- ../Widget:Sd-start-short [archive]
- ../Widget:Sd-end-short-start-detailed [archive]
- ../Widget:Sd-end-detailed [archive]
- ../Template:Sd-start-short [archive]
- ../Template:Sd-end-short-start-detailed [archive]
- ../Template:Sd-end-detailed [archive]
Check if scripts are loaded[edit]
Using a dektop browser with mobile skin these scripts get loaded (the bold one contains the mobile.js):
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=obJk0fES [archive]
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=jquery.accessKeyLabel%2Cclient%7Cmediawiki.RegExp%2Cnotify%2Ctemplate%2Cutil%7Cmediawiki.page.startup%7Cmediawiki.template.hogan%7Cmobile.browser%2CmainMenu%2Cmodules%2Coo%2Cview%7Cmobile.loggingSchemas.mobileWebMainMenuClickTracking%7Coojs%7Cskins.minerva.scripts.top&skin=minerva&version=2bcd7ee968a7 [archive]
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=jquery.cookie%2Cthrottle-debounce%7Cmediawiki.api%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Cstorage%2Ctoc%2Cuser%2Cviewport%7Cmediawiki.api.user%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.ui.input%7Cmobile.ajax%2Cbetaoptin%2Ccontext%2Cdrawers%2Cissues%2CmodifiedBar%2Coverlays%2Cpagelist%2Creferences%2Csearch%2Csettings%2Csite%2Cstartup%2Ctoast%2Ctoggle%2Cuser%2Cwatchstar%7Cmobile.editor.api%7Cmobile.issues.images%7Cmobile.loggingSchemas.edit%2CmobileWebLanguageSwitcher%2CmobileWebSearch%7Cmobile.overlay.images%7Cmobile.pagelist.scripts%2Cstyles%7Cmobile.pagesummary.styles%7Cmobile.references.gateway%2Cimages%7Cmobile.toggle.images%7Cskins.minerva.editor%2Cscripts%2Ctoggling%2Cwatchstar%7Cskins.minerva.icons.images.scripts%7Cuser.defaults&skin=minerva&version=4409fb4608cb [archive]
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=mobile.toc%7Cmobile.toc.images%7Cskins.minerva.tablet.scripts&skin=minerva&version=6b1c9eeeb881 [archive]
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile [archive]
But using the emulated mobile device with the same skin only these get loaded:
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=obJk0fES [archive]
- https://www.whonix.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=minerva&target=mobile [archive]
search for
sdShowDetailed
the error only occurs when a mobile device is used and the mobile theme is active
Caching[edit]
Cookies[edit]
curl --cookie test=yes ../Tor_Controller
Fixing[edit]
Sometimes this helps.
../Tor_Controller?action=purge [archive]
../Tor_Controller?useformat=mobile?action=purge [archive]
Test[edit]
curl ../Tor_Controller?useformat=mobile > 1
curl --user-agent "android.mobile" ../Tor_Controller?useformat=mobile > 2
curl ../Tor_Controller?useformat=mobile > 3
curl --user-agent "android.mobile" ../Tor_Controller > 4
curl --user-agent "android.mobile" ../Tor_Controller?useformat=mobile > 5
curl ../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:Signupstart
- MediaWiki:Anoneditwarning
- MediaWiki:Shoutwiki-loginform-tos
- MediaWiki:shoutwiki-must-accept-tos
- MediaWiki:Useragreement
- MediaWiki:Cookiewarning-info
- MediaWiki:Cookiewarning-moreinfo-label
- MediaWiki:Cookiewarning-more-link
- MediaWiki:Cookiewarning-ok-label
mediawiki server[edit]
- https://github.com/Whonix/Whonix-Wiki [archive]
- https://github.com/Whonix/Whonix-Wiki/blob/master/LocalSettings.php [archive]
- sudo systemctl restart php7.2-fpm
- /usr/local/bin/wiki-deploy.sh
Links[edit]
pagespeed[edit]
- https://forums.whonix.org/t/speeding-up-whonix-org-through-caching/8733/3 [archive]
- https://www.whonix.org [archive]
- https://www.whonix.org?PageSpeedFilters=+debug [archive]
- https://www.whonix.org [archive]
- ../Documentation [archive]
- ../Hardened-kernel?PageSpeedFilters=-SupportNoScriptEnabled#Upstreaming [archive]
- https://github.com/apache/incubator-pagespeed-ngx/issues/1684 [archive] (fixed by setting
pagespeed SupportNoScriptEnabled false;
)
load.php caching[edit]
- https://www.mediawiki.org/wiki/Topic:Vanoebois3bfqxd1 [archive]
- https://www.mediawiki.org/wiki/Topic:Runnesgxgk2nc68f [archive]
- https://www.mediawiki.org/wiki/Talk:ResourceLoader [archive]
- https://serverfault.com/questions/677229/setting-expires-headers-for-things-retrieved-via-query-string [archive]
load.php debug mode[edit]
- https://www.whonix.org/w/index.php?title=Documentation [archive]
- https://www.whonix.org/w/index.php?title=Documentation&PageSpeed=off&debug=false [archive]
- https://www.whonix.org/w/index.php?title=Documentation&PageSpeed=off&debug=true [archive]
- ../Documentation&debug=false [archive]
- ../Documentation&debug=true [archive]
?pagespeed has no effect on css or js loads
https://github.com/jthingelstad/foreground/issues/370 [archive]
- debug=true
49 js 12 css
- debug=false
26 js 1 css
instead of
- load.php?[...]modulename.namespace.tool,tool2,tool3|differentmodule.tool,tool2
we have
- load.php?[...]modulename.namespace.tool
- load.php?[...]modulename.namespace.tool2
- load.php?[...]modulename.namespace.tool3
- load.php?[...]differentmodule.tool
Forum discussion[edit]
https://forums.whonix.org/t/short-and-detailed-buttons-in-the-wiki-html-help-wanted [archive]
Redirect[edit]
Whonix ™ is Supported by Evolution Host DDoS Protected VPS. Stay private and get your VPS with Bitcoin or Monero.
100px | |
Fosshost | About Advertisements |
Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki
Have you contributed to Whonix ™? If so, feel free to add your name and highlight what you did on the Whonix ™ authorship page.
Priority Support | Investors | Professional Support
Whonix ™ | © ENCRYPTED SUPPORT LP | Freedom Software / Open Source (Why?)
The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.