Wiki Edit Cheat Sheet

From FSU Fox's Lab Wiki
Revision as of 21:36, 26 February 2024 by Rtang (talk | contribs) (→‎Using color)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

New page

To create a new page, simply use double square bracket like

[[ new page name ]]

Yes, space is allowed. If the page does not exist, it will be red in color like this:

new page name

Formatting

Link to Formatting.

Wiki language supports HTML and CSS.

To change the default css template, visit MediaWiki:Common.css.

Level 2

Level 3

Level 4

Level 5
Level 6
  1. List 1
    1. List 1a
    2. Lis3 1b
  2. List 2
    1. List 2a
      1. List 2ai

Links

interWiki Link Tandem Accelerator

interWiki Link to a subsection Tandem Accelerator#Terminal_Foil_Band_Changer

interWiki Link to a subsection, with simplified name Foil Band Changer

OuterWiki Link FSU Nuclear Physics Home


Tandem_Accelerator#Venting_the_Tandem_to_Air

Using color

<span style="color:red">'''NEED PROOF READING'''</span>

NEED PROOF READING

List of colors

Table

A simple bordered table can be started by using

Wikicode:
{| class="wikitable" style="margin:auto"
|+ Table Captions
|-
! header1 !! header2
|-
| Dirac || apple
|-
| Fermi || banana
|}
Result:
Table Captions
header1 header2
Dirac apple
Fermi banana

Math example

using <math> can start Latex:

<math> \left( -\frac{\hbar^2}{2m}\nabla + V(r) \right) \phi = \frac{\partial}{\partial t}\phi </math>

The result is:

More detail: https://www.mediawiki.org/wiki/Extension:Math/Help:Formula

Syntax highlight

Wikicode:

<syntaxhighlight lang="C++" line>
#include "stdio"
int main(){

printf("Hello.\n");
return 0;

}
</syntaxhighlight>

Result:
#include "stdio"

int main(){
   printf("Hello.\n");
   return 0;
}

Supported language can be found in here

Collapsed Section

<div class="toccolours mw-collapsible mw-collapsed">
<div style="line-height:1.6;">Collapsed heading text</div>
<div class="mw-collapsible-content">
collapsed text. </div></div>


Collapsed heading text

collapsed text.

Template

For detail, https://www.mediawiki.org/wiki/Help:Templates .

Template is just a wiki page under the spacename Template.

I created 2 for this wiki.

And there usage are:

{{Warning|don't do that}}

Warning Warning :   don't do that


{{Notice | Notice here}}

Notice Notice :   Notice here