Sandbox
From PDEwiki
Contents |
Some basic editing examples
- You can create a link by enclosing a word or phrase in double brackets. Example: [[Partial Differential Equation]] => Partial Differential Equation
- You can italicize using double apostrophes, and boldface using triple apostrophes. Examples: ''ad hoc'' => ad hoc; '''Fourier transform''' => Fourier transform.
- LaTeX-style equations can be created using the <math> and </math> tags. Example: <math>M(u(t)) = \int_{\R^d} |u(t,x)|^2\ dx</math> =>
.
- Bulleted un-numbered lists (like this one) can be created by placing an asterisk * at the beginning of each item. Numbered lists are similar but use #. One can nest lists using ** and ##, etc.
- Create new sections using two equality signs = on each side of the section name (edit this sandbox for some examples).
- You can sign your name using three or four tildes: ~~~ or ~~~~.
Sandbox
Welcome to the sandbox! Please feel free to edit this page as you please by clicking on the "edit" tab at the top of this page. Colliand 12:44, 12 September 2006 (EDT)
$x^y$
xy
Adding Images
Embedding a Calendar
<?php
- Google Calendar Extension
- Purpose:
- Embed a Google Calendar in a MediaWiki page
- Tag/Wikitext :
- style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
- Instructions :
- set $input to the Google Account that owns the calendar you want to embed
- set $width & $height to the proportions appropriate for your wiki page
- Credits
- This code is adapted from Kasper Souren's original extension, sometimes available at
- http://wiki.couchsurfing.com/wiki/index.php?title=Google_Calendar_MediaWiki_plugin
- License
- GNU Public
$wgExtensionFunctions[] = 'wfGoogleCalendar'; $wgExtensionCredits['parserhook'][] = array(
'name' => 'Google Calendar',
'description' => 'Display Google Calendar',
'author' => 'Libby Hemphill',
'url' =>
);
function wfGoogleCalendar() {
global $wgParser;
$wgParser->setHook('googlecalendar', 'renderGoogleCalendar');
}
- The callback function for converting the input text to HTML output
function renderGoogleCalendar($input) {
$input = htmlspecialchars($input);
//$input = "umhappyhours@gmail.com"
$width = 425;
$height = 350;
$output = '<iframe src="http://www.google.com/calendar/embed?src=' . $input; $output .= '" style="border: 0" width="' . $width; $output .= '" height="' . $height . '" frameborder="0" scrolling="no"></iframe>';
return $output;
} ?>


