Parser extension tags/Demo

From mediawiki.org

Categorytree[edit]

<categorytree mode="pages">Manual</categorytree>

ce[edit]

<ce>A+B</ce>

charinsert[edit]

<charinsert>Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź</charinsert>

Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź

chem[edit]

<chem>A+B</chem>

gallery[edit]

<gallery>
File:Example.jpg
File:Example.jpg
</gallery>

graph[edit]

{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
 |type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}

hiero[edit]

<hiero>A1</hiero>
A1

imagemap[edit]

<imagemap>
File:Example2.png|150px|alt=Alt text
default [[Main Page|Go to main page]]
</imagemap>
Alt text

indicator[edit]

<indicator name="foo">[[File:Example.jpg|20px]]</indicator>

Jump to the top of the page for the result: #mw-indicator-foo.

inputbox[edit]

<inputbox>
type=create
break=no
</inputbox>

mapframe[edit]

<mapframe text="Map of [[wikipedia:London|London]]" latitude="51.505" longitude="-0.126" zoom="8" width="300" height="300" align="left"></mapframe>
地圖
Map of London

maplink[edit]

<maplink zoom="13" latitude="46.204391" longitude="6.143158"/>

46°12′16″N 6°8′35″E

math[edit]

<math> f(x) = x^2\,</math>

nowiki[edit]

<nowiki>''foo'' <b>bar</b></nowiki>

''foo'' <b>bar</b>

poem[edit]

<poem>
foo, foo
bar!
foo.
</poem>

foo, foo
bar!
foo.

‎pre[edit]

<pre>

‎ref[edit]

foo<ref>[http://www.example.com source]</ref>

foo[1]

references[edit]

<references/>

score[edit]

<score>\relative c' { f d f a d f e d cis a cis e a g f e }</score>
\relative c' { f d f a d f e d cis a cis e a g f e }

section[edit]

See Extension:Labeled Section Transclusion

syntaxhighlight[edit]

<syntaxhighlight lang=javascript>
if ( foo == 'bar' ) { bar = foo; }</syntaxhighlight>
if ( foo == 'bar' ) { bar = foo; }

templatedata[edit]

See Extension:TemplateData

timeline[edit]

<timeline>
ImageSize  = width:90 height:120
PlotArea   = width:65 height:80 left:20 bottom:20
AlignBars  = early

DateFormat = yyyy
Period     = from:1 till:5
TimeAxis   = orientation:vertical
ScaleMajor = unit:year increment:1 start:1

PlotData=
  color:red width:10
  bar:A from:start till:end
  bar:B from:start till:end
  bar:C from:start till:end
  bar:D from:start till:end
</timeline>