MediaWiki customization for AfjWiki

MediaWiki customization for AfjWiki
Jump to: navigation, search

Contents

[edit] Configuration

[edit] Skin - Gumax

This site uses a tweaked version of Paul Gu's gumax 3.0 MediaWIki skin. Paul's design is bright, clean and professional. It maximizes the page's content and minimizes the wiki-specific clutter, while still providing easy navigation and access to all the MediaWiki facilities. Changes include:

  • switch to a blue color scheme instead of yellow
  • tighter fonts

[edit] Styles - MediaWiki:Common.css

The Common.css page contains the custom styles used to color and indent the flight journal transcripts. It also tweaks MediaWiki's styles to suppress the automatic section numbers in tables of contents.

It's possible to automatically use a different icon for links to external pdf files. Pure CSS works for browsers other than Internet Explorer (even IE7!).

I had this working, and now it's not. Odd.

[edit] Messages

LanguageEn.php is modified to display "Rename" and "Rename page" instead of "Move" and "Move page". Most of us aren't *nix geeks.

[edit] Navigation - MediaWiki:Sidebar

The Sidebar menu uses the #if and #userid extensions to build different tabs for logged-in and anonymous users:

        {{ {{ #if:  {{#userid:}} | MediaWiki:Sidebar (users) | MediaWiki:Sidebar (anonymous)  }} }}
  • The outer brackets tell MediaWiki that the result of the expression should be used as a template (The contents have to be loaded from separate pages because the sidebar format requires a | character, which would otherwise interfere with the conditional function).
  • The UNIQ8bac2fd6ca3ed9-code-00000002-QINU function returns the logged-in user's ID, or an empty string if the user is anonymous.
  • The #if: function selects the appropriate sidebar contents.

[edit] Short URLs

Short URLs that hide ugly PHP mechanics from the browser location bar are good user interface.

  • GoDaddy installs the mod_rewrite Apache web server module on all Linux severs. All you need to do is add the desired code to the body of your .htaccess file.

[edit] Extensions

AfjWiki uses the following MediaWiki extensions by other authors:

AfjWiki uses the following custom extensions:

Along the way, I've had a chance to experiment with other ways to generalize this wiki. These are no longer used:

  • CustomMenus.php Custom navigation menu
  • PageTransform.php adds a parser hook to MediaWiki, <nowiki><PageTransform></nowiki> that supports regular expression search and replace and/or XSL transformation of XML content, with optional wikitext rendering in the output of the transformation

Finally, as a place to keep my research on MediaWiki internals,


[edit] Sources

This page is still under development.
  • Talkright extension makes the editing of talk pages a distinct action from the editing of articles to create finer permissions, by adding the talk right.
  • etc.

[edit] Wiki setup and administration