MediaWiki cheat sheet: Difference between revisions

From MediaWiki
Jump to navigation Jump to search
Line 46: Line 46:
===Test===
===Test===
# hello
# hello
Text Text
# hello
# hello
Text Text
# hello
===Test===
# hello
Text Text
# hello
# hello



Revision as of 11:33, 10 July 2024

Overview

A list of commonly used MediaWiki formats.

Tips

To create a newline, you need to press Enter twice:

This must
be on a new line

This must be on a new line

This must

be on a new line

This must

be on a new line

Lists

* One
** Two
*** Three
   One
   ** Two
   *** Three
# One
# Two
## Two.one
### Two.one.one

One Two Two.one Two.one.one


Test

  1. hello

Text Text

  1. hello

Text Text

  1. hello

Test

  1. hello

Text Text

  1. hello

Bold and italic

'' This is italic''
'''This is bold'''
'''''This is bold and italic'''''

This is italic

This is bold

This is bold and italic

Headings

= One =
== Two ==
=== Three ===
==== Four ====

One

Two

Three

Four

Links

Link:

https://www.stepping-stone.ch/en/

https://www.stepping-stone.ch/en/

Cool link:

[https://www.stepping-stone.ch/en/ Homepage]

Homepage

Link within the wiki

[[Main_Page | Main Page]]

Main Page

Text blocks

<syntaxhighlight lang="text">
This is text
</syntaxhighlight>
This is text

Source code

<syntaxhighlight lang="bash">
#!/bin/bash

echo "Hello world!"
</syntaxhighlight>
#!/bin/bash

echo "Hello world!"

Create tabs within a page

<tabber>
|-|OpenStack CLI=
<syntaxhighlight lang='bash'>
openstack server show ${server_id}
</syntaxhighlight>
|-|OpenStack Dashboard=
gugus (dashboard)


[[File:Debian VM Creation Dashboard manual 01.png|400px]]
|-|OpenTofu=
gugus (tofutofu)
</tabber>

This results in:

openstack server show ${server_id}

gugus (dashboard)


Debian VM Creation Dashboard manual 01.png

gugus (tofutofu)