Wiki-howto
From skinetwork
Contents |
[edit] Mediawiki Quick Tips
[edit] Purging the cache in mediawiki
To force mediawiki to load the new page and not the cache at the end of link in the address bar append ?action=purge
for example index.php?action=purge will load the new index.php
[edit] Editing the navigation bar
Example: http://www.skinetwork.org/mediawiki/index.php/MediaWiki:Sidebar
[edit] Quick link to monobook.js for wikiEd installation
http://skinetwork.org/mediawiki/index.php?title=User:Root/monobook.js&action=edit
[edit] Embedding external URL in mediawiki page
1. Create extensions/EmbedURL.php page ref: http://meta.wikimedia.org/wiki/EmbedURL
2. Enter the php code
<?php
# To activate the extension, include it at the end from your LocalSettings.php at
# with: include("extensions/EmbedURL.php");
#
# Syntax:
# <embedurl>http://www.my-url.com/</embedurl>
#
$wgExtensionFunctions[] = "wfEmbedURL";
function wfEmbedURL() {
global $wgParser;
$wgParser->setHook( "embedurl", "renderEmbedURL" );
}
# The callback function for converting the input text to HTML output
function renderEmbedURL( $input ) {
# Building the code
# $output = "<iframe src='$input' style='width:800px;height:600px;' scrolling='no' marginwidth='0' marginheight='0' frameborder='5'></iframe>";
$output = "<iframe src='$input' style='width:100%;height:700px;' scrolling='yes' marginwidth='0' marginheight='0' frameborder='0'></iframe>";
return $output;
}
?>
#To use,
#use <embedurl>http://www.skinetwork.org/webmail</embedurl>
[edit] Remove formatting or specified code as it
Use pre tags between the code.
Use nowiki tags for disable wiki formatting
Use <pre> Any code or wiki text goes here and close with slash pre
