Jump to content

MediaWiki Markup: Difference between revisions

From Bonfire Star Wiki
Phidao (talk | contribs)
Created page with "== Introduction == Cheat sheet on MediaWiki Markup. Also known as wiki code. == Basic == === Bold === <pre> '''bold''' </pre> === Headers === Use header 2 (<code>== Header 2==</code>), 3 (<code>=== Header 3 ===</code>), or 4 (<code>==== Header 4 ====</code>) in documents. Avoid going deeper, if you feel you need to, it could mean you should separate contents into another page. It is recommended to skip header 1 as it matches the header of the document on top of t..."
 
Phidao (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 34: Line 34:


== Category ==
== Category ==
Categories are like tags. You can mark several pages with a category. The marker would appear on the bottom of the page. You can click on the category to see a list of pages marked with the same category.


<pre>
<pre>
Line 151: Line 153:
Allows you to link to an external page. You'll see an outward arrow indicating that you're leaving the website.  
Allows you to link to an external page. You'll see an outward arrow indicating that you're leaving the website.  


== Reference ==
== See Also ==
 
Example wiki code:
 
<pre>
Sigmund Freud dissected hundreds of eels hoping to find one with a male sex organ<ref>[https://en.wikipedia.org/wiki/Sigmund_Freud Sigmund Freud]</ref>
</pre>
 
Result:
 
Sigmund Freud dissected hundreds of eels hoping to find one with a male sex organ<ref>[https://en.wikipedia.org/wiki/Sigmund_Freud Sigmund Freud]</ref>
 
Note: If your page has references, the references, will automatically pool to the bottom of the page. It is recommended that you add a dedicated section for your references like so:


<pre>
* [[MediaWiki Cite Extension]]
== References ==
* [[MediaWiki YouTube Extension]]
<references />
</pre>


== References ==
== References ==

Latest revision as of 18:00, 6 December 2025

Introduction

Cheat sheet on MediaWiki Markup. Also known as wiki code.

Basic

Bold

'''bold'''

Headers

Use header 2 (== Header 2==), 3 (=== Header 3 ===), or 4 (==== Header 4 ====) in documents. Avoid going deeper, if you feel you need to, it could mean you should separate contents into another page.

It is recommended to skip header 1 as it matches the header of the document on top of the page.

Italic

''italic''

Alias

Allows you to put words on the page that is searchable by the search bar but doesn't actually appear on the page.

<div style="display: none">
MediaWiki Markup Guide
</div>

Category

Categories are like tags. You can mark several pages with a category. The marker would appear on the bottom of the page. You can click on the category to see a list of pages marked with the same category.

[[Category:Certificate]]

Images

Template:

[[File:filename.extension|options|caption]]

Extension have been added allowing you to reference any image from Wikimedia Commons[1]

Example wiki code:

[[File:Ramsau_bei_Berchtesgaden_(DE),_Milchstraße_über_Hochkalter_&_Hintersee_--_2024_--_1018-50.jpg|100px|center|Night sky]]

Result:

Night sky
Night sky
<gallery widths=700 heights=600 mode="packed-hover">
File:Zelle-age-error.png|frame|center|Have to be above 16
File:Invalid Address.png|frame|center|Invalid address error
</gallery>
  • packed-hover
  • slideshow

Tables

Example wiki code:

{| class="wikitable" style="margin:auto" 
|+ Caption text 
|- 
! Header text !! Header text !! Header text 
|- 
| Example || Example || Example 
|- 
| Example || Example || Example 
|- 
| Example || Example || Example 
|}

Result:

Caption text
Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example

Example wiki code:

[[Link Name]]

Result:

Link Name

Links to a page. If the page doesn't exist, the link text will be red. In this scenario, you can still click on the link to navigate to the page and start adding content to the page.

Example wiki code:

[[Java (Programming Language)|Java]]

Result:

Java

Use in cases where the context of the link makes sense with a shorter name. Also, if you want to format the text to make it fit better in a sentence, utilizing to change capitalization and pluralization.

Example wiki code:

[https://www.mediawiki.org/wiki/MediaWiki MediaWiki]

Result:

MediaWiki

Allows you to link to an external page. You'll see an outward arrow indicating that you're leaving the website.

See Also

References