Wiki Formatting Cheat Sheet

From Wiki
Revision as of 20:30, 2 June 2011 by Scott (talk | contribs) (Tables)
Jump to navigation Jump to search

General Help: http://meta.wikimedia.org/wiki/Help:Contents#For_editors

Formatting: http://www.mediawiki.org/wiki/Help:Formatting

Images

http://www.mediawiki.org/wiki/Help:Images

[[Image: myfile.gif]]

Tables

http://meta.wikimedia.org/wiki/Help:Table

convert CSV to wiki table: http://area23.brightbyte.de/csv2wp.php

Math

<math>\lambda = n^2 \sqrt{x}</math>

makes <math>\lambda = n^2 \sqrt{x}</math>

Code

generic block of code with the pre tag

sudo apt-get update

inline code with code tag

Here is some inline code: sudo apt-get update

syntax highlighting with the source tag

(requires installation/enabling of SyntaxHighlighting_GeSHi extension)

<source lang="php">
<?php
    $v = "string";    // sample initialization
?>
html text
<?
    echo $v;         // end of php code
?>
</source>

gives

<?php
    $v = "string";    // sample initialization
?>
html text
<?
    echo $v;         // end of php code
?>