Jump to content

User:PerfektesChaos/js/WikiSyntaxTextMod/usage

From Wikipedia, the free encyclopedia

Usage of WikiSyntaxTextMod.

  • Application object: mw.libs.WikiSyntaxTextMod
  • Language support
  • User-defined replacements

Load

[edit]

Put the following lines into your personal JavaScript configuration (like common.js or skin-dependant):

mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
               "text/javascript");

This is sufficient to run the basic version.

Codes

[edit]
Source code see technical details
ResourceLoader
  • user:PerfektesChaos/WikiSyntaxTextMod for mw:Extension:Gadgets
  • Dependencies: user, user.options, mediawiki.user, mediawiki.util
Namespaces
  • main space (articles), or any even namespace number
  • -1 (Gadgets)
Cookies
  • (WikiSyntaxTextMod_rvIDs [one week] – if localStorage unavailable)
  • sessionStorage:
    • WikiSyntaxTextMod_errors – current error message
  • localStorage:
    • WikiSyntaxTextMod_rvIDs – version management
    • preferencesGadgetOptions – options for anonymous users
mw.libs WikiSyntaxTextMod
mw.hook WikiSyntaxTextMod.ready
MediaWiki
  • 1.26 (mw.storage) for anonymous users
  • 1.23 for registered users

[ German page ]