Media Wiki Editing: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 57: Line 57:
=Code Section in a Box=
=Code Section in a Box=


<nowiki>
<pre>


  <pre>...</pre>
  &lt;pre&gt;...&lt;/pre&gt;
 
</pre>


</nowiki>
or simply start the line with a space.


or
=In-line no-formatting==


<pre>
<pre>
  &lt;nowiki&gt;...&lt;/nowiki&gt;
  &lt;nowiki&gt;...&lt;/nowiki&gt;
</pre>
</pre>
or simply start the line with a space.


=Paragraph Indentation=
=Paragraph Indentation=

Revision as of 03:23, 5 January 2016

External

Internal

Overview

Links

Internal links:

  [[ThisIsALink]]

External links that are rendered verbatim:

http://cnn.com

External links that get a label:

[http://something.com/something/else Local Label]

Note that "http:" can be omitted:

[//something.com/something/else Local Label]

Lists

* List item

Italics

''italics''

Bold

'''bold'''

Code Section in a Box


 <pre>...</pre>

or simply start the line with a space.

In-line no-formatting=

 <nowiki>...</nowiki>

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.

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.

Tables


{|
| topleft || topmiddle || topright
|-
| middleleft || middlemiddle || middleright
|-
| bottomleft || bottommiddle || bottomright
|}