Jump to content

User:Waldyrious

From mediawiki.org

Waldir@meta.wikimedia

Projects

[edit]

Installation

[edit]

Useful stuff

[edit]
  • Local development quickstart
  • Writing an extension for deployment
  • http://shorturls.redwerks.org (see Manual:Short URL)
  • Manual:JS/API/UI Extension Developer Library
  • Git/TLDR and PHPunit/TLDR
  • investigate withJS url param (possibly only enabled in commons, i.e. not a mediawiki feature)
  • Lua: slideshow, tutorial
  • Check commons:MediaWiki:Gadget-Hotcatcheck.js (also Cat-a-lot) for direct, non-refresh, no-edit-view editing
  • patch that enabled direct linking to diffs: 63395
  • Help:CirrusSearch for documentation on search operators/prefixes.
    • insource: for searching in wikicode rather than rendered text
  • Subscribe to patches in Gerrit to review: Git/Reviewers
  • Customizing the WikiEditor toolbar: adding new buttons (Krinkle's more convenient alternative)
  • Parameters for URL address bar:
    • ?safemode=1 to load the page without gadgets/common.css/common.js (src)
    • ?uselang=xx to load the page using the given language in the MediaWiki interface messages. Use the special value qqx to display the name of the interface messages instead.
    • ?useskin=xx to load the page using the given skin for the MediaWiki interface style.
    • ?debug=true to disable CSS and JavaScript minification
    • ?safemode=true to disable all non-core styling and scripts: user-specific CSS and JS customizations (e.g. "User:JohnDoe/common.js"), site-wide scripts and styles (e.g. "MediaWiki:Common.js/css"), and all gadgets. May help with troubleshooting visual issues
      • Could there be a middle-ground mode to disable only user-specific customizations (including global scripts/styles), but keep site-wide ones and default gadgets?
  • For finding things in the API, open api.php?action=help&recursivesubmodules=1 and search that page using the browser's search function (Ctrl+F)
  • Extension:DiscussionTools/Comparison — feature comparison between LiquidThreads (LQT), Structured Discussions (fka Flow), DiscussionTools and Convenient Discussions (user script).
  • Linking to code in repositories:
    • {{Git file }} produces a simple link to a file (defaults to the mediawiki repo, but can point to others)
    • {{MW file }} creates a box with more mediawiki-specific information
    • {{Github }} links to a file on the GitHub mirror of a repository (by default wikimedia/mediawiki)
    • TODO
      • {{Git }} points to git changes, not git snapshots; specifically, it links to Gerrit pages via the change number, the change ID, or the commit hash. It should therefore be subsumed into {{Gerrit }} (the latter needs to gain support for linking to Gerrit changes by commit hash), and later perhaps converted into a disambiguation for {{Git file }} vs. {{Gerrit }}.
        • As a curiosity, {{Git commit }}, which currently redirects to {{Git }}, could instead link to the diff in Gitiles instead of the Gerrit change. For example, [1].

Wikicode markup

[edit]

Developers

[edit]

Languages and internationalization

[edit]

Misc.

[edit]
  • WikiOverflow (deleted), Wikis@SE (deleted), MediaWiki IdeaTorrent (deleted; thread 1, thread 2). Also, according to my analysis at w:Talk:OSQA, a potential platform for this sort of thing could be w:Askbot.
  • It could be interesting to make diffs flattrable. See Extension:Flattr.
  • For code review in gerrit, it would be nice to have a query url that shows only changes that haven't been reviewed before (in the "my changes" view, the CR column is often empty but there's already been a lot of discussion before, but a new patch reset the CR scores). Something like https://gerrit.wikimedia.org/r/#/q/reviewer:self+status:open+-is:reviewed,n,z should work, but according to the docs it covers both Code-Review and Verified scores, and the latter is pretty much always there as it's added by Jenkins, so the query shows nothing. One can build a query to show specifically patchsets with no Code-Review score, but that still doesn't fix the "previous discussion" issue above, which would enable one to find patchsets that haven't received any external feedback since being submitted. As an alternative to find unloved patches, one can amend that search query to show patchsets whithout CR that are over a year old (there are four such ones at the time of writing). Another approach is to limit to those who don't have a +2'er in the reviwers, by using -reviewerin:mediawiki in the query (the docs say reviewerin matches changes that have been, or need to be, reviewed by a user in the specified group).
    • Update: Krinkle on IRC says: the gerrit query command line API over ssh might have a way to filter for such things. Ask hashar or Reedy maybe next time they're on.
  • History of MediaWiki version control (see also MediaWiki history and Git/Conversion). Commits graph @ Ohloh. Commits graph @ GitHub (empty before 2009-11-14 although the graph does go all the way back to 2003-04-13, how come?).
  • Since gerrit:921379 it is possible to set wgSVGNativeRendering to make MediaWiki render SVGs natively
    • Reasons why we might not want to activate it:
      • Font rendering (positioning, presence of glyphs for less popular languages, etc.)
      • Non-guaranteed proper SVG rendering by the user's browser