MediaWiki customization for AfjWiki
|
[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_rewriteApache 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:
- ParserFunctions.php (MediaWiki)
- StringFunctions.php (MediaWiki)
- Labeled Section Transclusion (MediaWiki) allows selective transclusion of marked-off sections of text (lst.php and lsth.php).
- Cite.php (MediaWiki) ads two parser hooks to MediaWiki,
<ref>and<references>; these operate together to add citations to pages - CodeSyntaxHighlight.php adds code syntax highlighting for most computer languages (including xml, html, css, sql) (version 3, 2006-04-05], Swinburne)
AfjWiki uses the following custom extensions:
- Extended version of DynamicFunctions adds the
#useridfunction - Extended version of Cite.php
- Extended version of Labeled Section Transclusion
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
- 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
- Reference: style classes for Disjecta membra references etc.
- HTML::WikiConverter html2wiki - Convert HTML text to wiki markup
- BigDump: Staggered MySQL Dump Importer
- PHP classes: convert_timezone.php
- jQuery Pseudo Plugin plugin for :before and :after in Internet Explorer.
- Nuvola icons
- How To Set Up Database Replication In MySQL This is a "copy & paste" HowTo
- Eliminating index.php from the url
- Apache 1.3 URL Rewriting Guide
- Apache HOWTO documentation
- Redirect Visitors To a New Page or Site
- Synchronize Mediawiki + Wordpress registration
- MediaWiki
- MediaWiki Admin Notes
- Extension:ExtensionClass base class for extension developpers
- BlueCortex Mediawiki Extensions
- Extension:Google Sitemap
- Extension:Variables
- Extension:Labeled Section Transclusion
- Cite/Cite.php
- Extension:Fotonotes
- Extension:Send2Wiki
- Help talk:Section TOC issues
- User:CitationTool a semi-bot for finding citation errors and fixing them
- Wikipedia:Footnotes
- WikiFilter a wiki text parser and a web filter. It converts wiki text stored in a wiki data-base (dump) file into html text, and sends the html text to the web browser
- FAQ: How do I change default user preferences?
- FAQ: How do I remove the article/edit etc tabs for users who are not logged in?
- 1911 Encyclopædia Britannica/Header
- SimplePie Plugin for MediaWiki adds the
<nowiki><feed></nowiki>tag, along with a few attributes, to MediaWiki installations. - Help:User rights
- Removing Red links for non logged in users
- DuesenTools for wiki analysis, search, maintenance
- Great MediaWiki Tools