Wiki reference notes

From w.mfi
Jump to: navigation, search

These are notes to myself about things I use, to remind my addled brain about them. Have at.


You can highlight something like this:

You can <span style="background:yellow">highlight something</span> like this

There are lots of different colors to choose from, for both background and foreground (font) color.


I like listing data, but I don't like default wiki tables. Here's an overall example I'll pick apart, from my No Man's Sky page:

Metal Units per




U/p vs.


U/p vs.


Emeril 275.00 +186% 100.0%
Gold 220.00 55 +129% 80.0%

In code:

   {| class="wikitable collapsible autocollapse sortable" style="text-align: center;" 
   ! Metal
   ! <strike>U</strike>nits per
   ! Δ
   ! <strike>U</strike>/p vs.
   ! <strike>U</strike>/p vs.
   | Emeril || 275.00 ||  || +186% || 100.0%
   | Gold || 220.00 || 55 || +129% || 80.0%


Everything Centered (unless otherwise specified)

The style="text-align: center; does this. When part of the table intro, it applies to the entire table.


Put "sortable" in the table intro.


I used <strike> to turn a simple "U" into the special Unit (money symbol) of that game.

Header Line Breaks

As you can see, you can start header text on a new row to make entries be two lines tall to essentially force a word-wrap within the column header itself. I like to keep columns tight, so eyes don't have tons of left to right movement to read a row. Maybe I went a little overboard here, but I hate it when a very long table has very wide header text, even though the text in each column is very narrow. What a waste of space.

Unfortunately, I haven't found a way to have the column header row be bottom-centered vertically.

A tight ASCII table

ASCII tables

Every now and then, you want to forget all the built-in wiki table sophistry and just make a super-tight ASCII table. Here is a super tight table I made for XCOM 1994.

These tables are made very simply: Just put three spaces at the beginning of each line like so:

  <--- three spaces here

This over-rides all formatting and creates straight text. Strictly speaking, MediaWiki doesn't know or care that you're making a table.

This be straight-up fixed-width characters and spaces. Because sometimes it's perfect.

You can still put in, e.g., underlining codes and hotlinks, like I did.

Special Characters

Here are some special characters, especially math, taken from e.g. this page:

Punctuation: ¿ ¡ « » § ¶ † ‡ • - – —
Commercial symbols: ™ © ® ¢ € ¥ £ ¤
Greek characters: α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω
Math characters: ∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ø ∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ ↑ ℵ ∉ °

You don't need to look at the source code here. Just directly cut and paste them into your wiki text.

Collapsible Elements

Used on my wiki home page and elsewhere. Here's the wiki manual for it. Especially see its section on Custom Toggle Links.

Formed as follows:

  <span class="mw-customtoggle-TOC_SmartHome"><h2>Smart Home Tech</h2></span>
   <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-TOC_SmartHome">
    ''insert expanding text here''

The custom collapsible i.d. can actually be called from anywhere. But be careful not to copy the i.d. when cutting and pasting, or all your "different" collapsible elements will reference the same text. You must use a unique i.d. for each unique element.

MediaWiki Version

Just go to page

    Special:Version (

Hidden Text

Just put the text to hide where Comment is here:

  <!--- Comment -->