Difference between revisions of "Mediawiki Cheatsheet"

From LSS Mocks
Jump to navigation Jump to search
Line 1: Line 1:
 
===Links===
 
===Links===
  
* For portability of this wiki, please format pages and uploaded files as <span style="color:#ff0000">internal links</span> like this:
+
* For portability of this wiki, please format pages and uploaded files as <span style="color:#ff0000">double bracket <nowiki>[[ link ]]</nowiki></span> internal links format like this:
  
 
{|class="wikitable"
 
{|class="wikitable"
Line 84: Line 84:
 
<math>E=m_0c^2\sqrt{1+(\frac{p}{m_0c})^2}</math>
 
<math>E=m_0c^2\sqrt{1+(\frac{p}{m_0c})^2}</math>
 
|}
 
|}
 +
 +
===Image and File Upload===
 +
 +
* Use the [[Special:Upload | Upload file]] link on the sidebar
 +
* View uploaded files on [[Special:ListFiles]] page
 +
* To link to an uploaded file or image, double bracket the file name only, eg <pre>[[File:Ionization.jpg]]</pre>.
 +
* If an image is too big, specify dimensions like <pre>[[File:Ionization.jpg | 150px]]</pre>.

Revision as of 16:11, 13 December 2016

Links

  • For portability of this wiki, please format pages and uploaded files as double bracket [[ link ]] internal links format like this:
wikitext rendering

Internal page: [[Main Page]]

Internal page: Main Page

Uploaded file: [[File:Ionization.jpg | 150px]]

Uploaded file: Ionization.jpg

  • External link
wikitext rendering

External link: [https://cita.utoronto.ca CITA]

External link: CITA

More on link format

Make lists

wikitext rendering
* Lists are easy to do:
** start every line
* with a star
** more stars mean
*** deeper levels
  • Lists are easy to do:
    • start every line
  • with a star
    • more stars mean
      • deeper levels
# Numbered lists are good
## very organized
## easy to follow
  1. Numbered lists are good
    1. very organized
    2. easy to follow
; Definition lists
; item : definition
; semicolon plus term
: colon plus definition
Definition lists
item
definition
semicolon plus term
colon plus definition

More on list format

Type Math Formula

  • This wiki supports Latex math formula rendering.
wikitext rendering

<math>E=m_0c^2\sqrt{1+(\frac{p}{m_0c})^2}</math>

[math]\displaystyle{ E=m_0c^2\sqrt{1+(\frac{p}{m_0c})^2} }[/math]

Image and File Upload

  • Use the Upload file link on the sidebar
  • View uploaded files on Special:ListFiles page
  • To link to an uploaded file or image, double bracket the file name only, eg
    [[File:Ionization.jpg]]
    .
  • If an image is too big, specify dimensions like
    [[File:Ionization.jpg | 150px]]
    .