TechDocs/Wiki/MoinWikiSyntax/SyntaxExamples

Additional Examples for the wiki syntax

Headings

= heading 1st level =
== heading 2nd level ==
=== heading 3rd level ===
==== heading 4th level ====
===== heading 5th level =====
====== no heading 6th level ======

Table of contents:
<<TableOfContents()>>

Table of contents (up to 2nd level headings only):
<<TableOfContents(2)>>

heading 1st level

heading 2nd level

heading 3rd level

heading 4th level

heading 5th level

no heading 6th level

Table of contents:

Table of contents (up to 2nd level headings only):

Tables

A

B

C

1

2

3

Markup

||'''A'''||'''B'''||'''C'''||
||1      ||2      ||3      ||

Cell Width

minimal width

maximal width

Markup

||minimal width ||<99%>maximal width ||

Spanning Rows and Columns

cell spanning 2 rows

cell in the 2nd column

cell in the 2nd column of the 2nd row

cell spanning 2 columns

use empty cells as a shorthand

Markup

||<|2> cell spanning 2 rows ||cell in the 2nd column ||
||cell in the 2nd column of the 2nd row ||
||<-2> cell spanning 2 columns ||
||||use empty cells as a shorthand ||

Alignment of Cell Contents

||<^|3> top (combined) ||<:99%> center (combined) ||<v|3> bottom (combined) ||
||<)> right ||
||<(> left ||

top (combined)

center (combined)

bottom (combined)

right

left

Coloured Table Cells

blue

green

red

cyan

magenta

yellow

Markup

||<#0000FF> blue ||<#00FF00> green    ||<#FF0000> red    ||
||<#00FFFF> cyan ||<#FF00FF> magenta  ||<#FFFF00> yellow ||

HTML-like Options for Tables

A

like <|2>

like <#00FF00>

like <-2>

Markup

||A ||<rowspan="2"> like <|2> ||
||<bgcolor="#00FF00"> like <#00FF00> ||
||<colspan="2"> like <-2>||

Icons

Markup Display Markup Display Markup Display Markup Display
X-( X-( :D :D <:( <:( :o :o
:( :( :) :) B) B) :)) :))
;) ;) /!\ /!\ <!> <!> (!) (!)
:-? :-? :\ :\ >:> >:> |) |)
:-( :-( :-) :-) B-) B-) :-)) :-))
;-) ;-) |-) |-) (./) (./) {OK} {OK}
{X} {X} {i} {i} {1} {1} {2} {2}
{3} {3} {*} {*} {o} {o}    

TechDocs/Wiki/MoinWikiSyntax/SyntaxExamples (last edited 2016-04-21 15:24:30 by paul)