Mediawiki help

From regional-training

markup

This is a mediawiki.

If you want to see an example markup have a squiz at this page's markup using the main edit tab control at the top of the page and press it. You can easily cancel by going back with the browser.

The media wiki also supports flexible table formats:

heading1 heading 2 heading 3
column1 column 2 column 3
next col 1 col2 col3
another sub heading
head 1 head 2 head 3
1 2 2
long fat blue centred row

by the following markup:

{| class="wikitable"
! heading1 !! heading 2 !! heading 3
|-
| column1 || column 2 || column 3
|-
| next col 1|| col2 || col3
|-
! colspan=3 | another sub heading
|-
! head 1 !! head 2 !! head 3
|-
| 1 || 2 || 2
|-
| colspan=3 style="color:blue; height:100px; width:100px; text-align:center;" | long fat blue centred row
|}

The class="wikitable sortable" will provide a table with sortable columns. And instead of class you can say border="1" to obtain borders, or omit it complete for a blank table arrangement, which is useful for placing images or text into columns and rows. The special class="wikitable" conveniently provides alternate shading for rows. The styling of mediawiki tables is performed by css, and no doubt there are other styles.

You can also centre all the text, see Help:Tables.

images

Images may be included via [[image:some-image-file-name.png]] or .jpg etc.

media

Media files may be included via [[media:some-media.pdf]] acceptable suffixes are:

  • .doc
  • .xls
  • .zip
  • .pdf
  • .mp3
  • .mp4
  • .zip
  • .tar
  • .exe // because I white-listed it

If you try to upload an unacceptable MIME encoding it will complain, and I may be able to add it to the white-list. However, I can't get .docx to work, and the zip'd .xslx extensions because the MIME detector complains they are an invalid zip encoding.

The way around unacceptable MIME encoding it to put the file into a .zip file. It is double handling but at least it will get preserved in the wiki.

references

  • [[page reference]]
  • [[image:some-image-format<.extension>]] there are styles like: left|right|none|1000px|thumb|some caption]] that can be applied
  • [[media:some-media-file<.extension>]] you can also include |some name]]
  • embedded http://hyperlink
  • replaced hyperlink [http://hyperlink Some name]
  • reference <ref>Some text http://hyperlink</ref> - this will make a [1]
  • which will appear underneath <references/>

headings

=heading 1=
==heading 2==
===heading 3===

font stuff

colour

You can set the colour via <font color="red">red</font>

bold

You can '''bold'''

italics

You can set ''italics''

strike-through

You can <s>strike-through</s> text.

super script

You can <sup> superscript<sup/>.

subscript

You can <sub>subscript<sub/>.

entity encodings

This wiki uses HTML so if you literally want to include < and > these are marked up via &lt; and &rt; respectively. There are also other escapes such as &amp; for ampersand, and &nsp; that is used to introduce a non-blanking space, all other white space is compressed to a single space, except two newlines that will result in a line-break in the wiki. You can use <br/> for a line break instead.

Here is a more complete set of entity encodings:

Entity Encodings used in mediawikia/HTML
encoding
sequence
expansion encoding
sequence
expansion
&amp; & (&nbsp;) ( )
&lt; < &gt; >
&apos; ' &quot; "
&copy; © &reg; ®
&euro; &pound; £
&alpha; α &Alpha; Α
&beta; β &Beta; Β
&gamma; γ &Gamma; Γ
&delta; δ &Delta; Δ
&epsilon; ε &Epsilon Ε
&zeta; ζ &Zeta; Ζ
&eta; η &Eta; Η
&theta; θ &Theta; Θ
&iota; ι &Iota; Ι
&kappa; κ &Kappa; Κ
&lambda; λ &Lambda; Λ
&mu; μ &Mu; Μ
&nu; ν &Nu; Ν
&xi; ξ &Xi; Ξ
&omicron; ο &Omicron; Ο
&pi; π &Pi; Π
&rho; ρ &Rho; Ρ
&sigma; σ &Sigma; Σ
&tau; τ &Tau; Τ
&upsilon; υ &Upsilon; Υ
&phi; φ &Phi; Φ
&chi; χ &Chi; Χ
&psi; ψ &Psi; Ψ
&omega ω &Omega; Ω
use <nowiki>...</nowiki> around text to prevent mediawiki interpretting markup

icons

There are some handy unicode icons [2] that can be used for attention:

&#x2713; check
&#x237B; not check
&#x2714; heavy check
𐄂 &#x10102; agean tick (cross)
&#x2A2F; cross product
&#x2716; heavy multiply
&#x274C; cross mark emoji
˟ &#x02DF; cross accent
🚧 &#x1f6A7; working
&#x2753; red question
&#x26A0; warning
&#x26D4; stop
🚫 &#x1F6AB; stop
&#x270B; hand-stop
🚩 &#x1F6A9; red flag
🏴 &#x1F3F4; black flag
💣 &#x1F4A3; bomb
&#x2620; pirate flag
🔴 &#x1F534; red circle
🟠 &#x1F7E0; orange circle
🟡 &#x1F7E1; yellow circle
🟢 &#x1F7E2; green circle
🔵 &#x1F535; blue circle
🟣 &#x1F7E3; purple circle
🟤 &#x1F7E4; brown circle
&#x26AA; white circle
&#x26AB; black circle
&#x2622; radioactive
&#x2623; biohazard
&#x2695; medical

cheat sheet

There is also a convenient cheatsheet.

Better still: Help:Formatting.

magic words

There is a list of magic words e.g. {{CURRENTTIMESTAMP}} they may be used to output values in this case 20260111094719.

other help

See

For more mediawiki markup help consult the User's Guide for information on using the wiki software and MediaWiki FAQ.

references

categories