Media Wiki Editing

From NovaOrdis Knowledge Base
Jump to: navigation, search





Internal Links


Internal links that get a label:

  [[ThisIsTheLink|This is the label that shows up in text]]

External Links

External links that are rendered verbatim

External links that get a label

[ Local Label]

Note that "http:" can be omitted:

[// Local Label]

If you want to avoid a text with an external link syntax to be automatically turned into a link, use <nowiki>:



* List item





Code and Fixed Typed Fonts

Code Section in a Box


Indented Block

The alternative is to indent the block:

This is
an indented

Note that when using this method, MediaWiki is sensitive to the presence of '<source>' element. If you need to use it, use &lt immediately followed by ; to start the element.

However, this method is more flexible, as we can format the text:

This is
a block that contains bold sections and 
RED sections

In-Line Code

This is some code that shows in highlighted rectangle.

In-Line no-formatting


Fixed Type Fonts

<tt> ... </tt>

Paragraph Indentation

:One indent
::Two indents
:::Three indents
:::::: Multiple indent

Anchors and Linking to Anchors

An anchor is a in-page link target - it allows incoming links to target locations on the page other than section headings.

The anchors are automatically generated in case of the section headings. For example, a section named "Section One" generates a Section_One anchor, and the heading can be linked to by prepending "#Section_One" to the usual wiki #Links. In case of multiple sections with identical headings, the anchor names have a "_2", "_3", etc appended starting from the second occurrence.

Manual anchors can be also inserted and used in links:

<span id="anchor_name">text to anchor to</span>


<span id="anchor_name"></span>

Do not use:

<span id="anchor_name"/>

it won't work.

Anchor Names

Heading Name Anchor
Test #Test
Section One #Section_One
Capitalization does Matter Capitalization_does_Matter

Special Anchors

#toc links to the table of contents.

Preserving Old Anchors when a Heading Changes

If you want to change a heading to a more appropriate name, but want keep all existing links working, use the old anchor in a span inside the new heading, as follows:

=<span id='Old_Heading'></span>New Heading=

More Details on Anchors


| topleft || topmiddle || topright
| middleleft || middlemiddle || middleright
| bottomleft || bottommiddle || bottomright

| . || . || . || . || .
|  . || . || . || . || .
| . || . || . || . || .

More about tables:


Internal Link

Use this as a border for in-wiki links

<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">

Internal Link Template

Alternatively, use this parameterized template: Template:Internal. The first parameter is the target wiki page name, optionally followed by # an the anchor. The second parameter is the name of the link, as it will be rendered in the page.

Example: {{Internal|WildFly Concepts|Concepts}}

External Link

Use this as a border for an external link (on blueish background).

<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">

External Link Template

Alternatively, use this parameterized templates: Template:External and Template:External2.

For External, the first and only parameter is the external link, or text and link:


{{External|something, something else:}}

External2 allows for two stacked links.

If the link is to be hidden and exposed as a label:


Important Note or Observation, Warning

Use this as a border for important notes and observations on gold background.

<blockquote style="background-color: Gold; border: solid thin Goldenrod;">
:<br>Some content on gold<br><br>

Some content on gold

Important Note, Observation, Warning Template

Alternatively, use this parameterized template: Template:Warn. The first and only parameter is the warning text.

Example: {{Warn|something to warn about}}


<blockquote style="background-color: Tomato; border: solid thin red;">
:<br>Some content on red<br><br>

Some content on red

Error Template

Alternatively, use this parameterized template: Template:Error. The first and only parameter is the warning text.

Example: {{Error|some error}}

Images and Media



Framed Full Size





text floating:


To Export Wiki-Ready PNG

Export Wiki-Ready PNG in OpenOffice



There are cases when the above syntax does not result in a link to "PDF". This seems to fix it - note leading colon:




Table of Contents

By default shows up after three headers. If you want to force, use:



Media Wiki Concepts - Templates

Syntax Highlighting

<syntaxhighlight lang="bash" line='line'>
1 function test() {
2   echo "this is a function"
3 }

where lang can be:

  • bash
  • java
  • xml

If the font size is too big, it can be corrected by putting the following CSS code fragment in MediaWiki:Common.css page. The page can be edited on-line at:

/* CSS placed here will be applied to all skins */
.mw-highlight pre {
	font-size: 90%;