Wiki Edit Cheat Sheet: Difference between revisions
No edit summary |
|||
(39 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= New page = | |||
To create a new page, simply use double square bracket like | |||
[ | <nowiki> [[ new page name ]] </nowiki> | ||
Yes, space is allowed. If the page does not exist, it will be red in color like this: | |||
[[ new page name ]] | |||
Math example : | = Formatting = | ||
[https://www.mediawiki.org/wiki/Help:Formatting Link to Formatting]. | |||
Wiki language supports [https://www.w3schools.com/html/default.asp HTML] and [https://www.w3schools.com/css/default.asp CSS]. | |||
To change the default css template, visit [https://fsunuc.physics.fsu.edu/wiki/index.php/MediaWiki:Common.css MediaWiki:Common.css]. | |||
== Level 2 == | |||
=== Level 3 === | |||
==== Level 4 ==== | |||
===== Level 5 ===== | |||
====== Level 6 ====== | |||
# List 1 | |||
## List 1a | |||
## Lis3 1b | |||
# List 2 | |||
## List 2a | |||
### List 2ai | |||
= [https://www.mediawiki.org/wiki/Help:Links Links] = | |||
interWiki Link [[Tandem Accelerator]] | |||
interWiki Link to a subsection [[Tandem Accelerator#Terminal_Foil_Band_Changer]] | |||
interWiki Link to a subsection, with simplified name [[Tandem Accelerator#Terminal_Foil_Band_Changer|Foil Band Changer]] | |||
OuterWiki Link [https://fsunuc.physics.fsu.edu FSU Nuclear Physics Home] | |||
[[Tandem_Accelerator#Venting_the_Tandem_to_Air]] | |||
= [https://en.wikipedia.org/wiki/Help:Using_colours Using color] = | |||
<nowiki> <span style="color:red">'''NEED PROOF READING'''</span> </nowiki> | |||
<span style="color:red">'''NEED PROOF READING'''</span> | |||
[https://www.w3schools.com/colors/colors_names.asp List of colors] | |||
= [https://www.mediawiki.org/wiki/Help:Tables Table] = | |||
A simple bordered table can be started by using | |||
<div style="display:flex"> | |||
<div style="width:45%; border:1px solid black; padding:0.5em"> | |||
<h5 style="text-align:center">Wikicode:</h5> | |||
{<nowiki/>| class="wikitable" style="margin:auto" | |||
|+ Table Captions | |||
|- | |||
! header1 !! header2 | |||
|- | |||
| Dirac || apple | |||
|- | |||
| Fermi || banana | |||
|} | |||
</div> | |||
<div style="width:45%; border:1px solid black; padding:0.5em; margin-left:2ex"> | |||
<h5 style="text-align:center; margin-bottom:1em">Result:</h5> | |||
{| class="wikitable" style="margin:auto" | |||
|+ Table Captions | |||
|- | |||
! header1 !! header2 | |||
|- | |||
| Dirac || apple | |||
|- | |||
| Fermi || banana | |||
|} | |||
</div> | |||
</div> | |||
= Math example = | |||
using <nowiki><math></nowiki> can start Latex: | |||
<nowiki><math> \left( -\frac{\hbar^2}{2m}\nabla + V(r) \right) \phi = \frac{\partial}{\partial t}\phi </math></nowiki> | |||
The result is: | |||
<math> \left( -\frac{\hbar^2}{2m}\nabla + V(r) \right) \phi = \frac{\partial}{\partial t}\phi </math> | <math> \left( -\frac{\hbar^2}{2m}\nabla + V(r) \right) \phi = \frac{\partial}{\partial t}\phi </math> | ||
More detail: https://www.mediawiki.org/wiki/Extension:Math/Help:Formula | |||
= Syntax highlight = | |||
<div style="display:flex"> | |||
<div style="width:45%; border:1px solid black; padding:0.5em"> | |||
<h5 style="text-align:center">Wikicode:</h5> | |||
<nowiki><syntaxhighlight lang="C++" line></nowiki><br> | |||
<nowiki>#include "stdio"</nowiki><br> | |||
int main(){ | |||
:printf("Hello.\n"); | |||
:return 0; | |||
}<br> | |||
</syntaxhighlight> | |||
</div> | |||
<div style="width:45%; border:1px solid black; padding:0.5em; margin-left:2ex"> | |||
<h5 style="text-align:center; margin-bottom:1em">Result:</h5> | |||
<syntaxhighlight lang="C++" line> | |||
#include "stdio" | |||
int main(){ | |||
printf("Hello.\n"); | |||
return 0; | |||
} | |||
</syntaxhighlight> | |||
</div> | |||
</div> | |||
Supported language can be found in [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages here] | |||
= Collapsed Section = | |||
<nowiki><div class="toccolours mw-collapsible mw-collapsed"></nowiki><br> | |||
<nowiki><div style="line-height:1.6;">Collapsed heading text</div></nowiki><br> | |||
<nowiki><div class="mw-collapsible-content"></nowiki><br> | |||
collapsed text. | |||
<nowiki></div></div></nowiki><br> | |||
<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> | |||
= 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. | |||
*[[Template:Warning]] | |||
*[[Template:Notice]] | |||
And there usage are: | |||
<nowiki>{{Warning|don't do that}}</nowiki> | |||
{{Warning | don't do that}} | |||
<nowiki>{{Notice | Notice here}}</nowiki> | |||
{{Notice | Notice here}} |
Latest revision as of 21:36, 26 February 2024
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:
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
- List 1
- List 1a
- Lis3 1b
- List 2
- List 2a
- List 2ai
- List 2a
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
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:
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 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}}
{{Notice | Notice here}}
![]() | Notice here |