Jump to content

User:Uranographer/sandbox

From Wikipedia, the free encyclopedia
<!-- __NOTOC__ -->

= Simple Tests =

= &lt;nowiki&gt; and &lt;pre&gt; =

<div style="color: blue">
A &lt;pre&gt; element is a parser element that works like its HTML counterpart, with one notable difference: HTML markup is parsed in HTML &lt;pre&gt; blocks; however, neither HTML nor wiki markup
is parsed in a wiki &lt;pre&gt; block. 
</div>

<pre style="background-color: #cfcfff">
&lt;pre&gt;  This  block of    text {{void}}
  is "preformatted", so '''wikitext''' and <q>HTML</q>
  are not parsed  &lt;/pre&gt;
</pre>
<pre>  This  block of    text {{void}}
  is "preformatted", so '''wikitext''' and <q>HTML</q>
  are not parsed  </pre>

<div style="color: blue">
Leading and trailing space are stripped, apparently.  A &lt;pre&gt;
block is a block element that is displayed, even if it appears inline:
</div>

<pre style="background-color: #cfcfff">
This is what would be a &lt;pre&gt;preformatted block&lt;/pre&gt; within inline text
</pre> 
This is what would be a <pre>preformatted block</pre> within inline text

<div style="color: blue">
A &lt;nowiki&gt; element is similar, but it merely inhibits wiki markup and
also HTML markup, and doesn't display the text
</div>

<pre style="background-color: #cfcfff">
&lt;nowiki&gt;<q>nowiki</q> '''text'''{{void}}&lt;/nowiki&gt;
</pre>
<nowiki><q>nowiki</q> '''text'''{{void}}</nowiki>

<div style="color: blue">
Compared to the same text in &lt;pre&gt;:
</div>

<pre style="background-color: #cfcfff">
&lt;pre&gt;<q>pre</q> '''text'''{{void}}&lt;/pre&gt;
</pre>
<pre><q>pre</q> '''text'''{{void}}</pre>

<div style="color: blue">
The empty &lt;nowiki /&gt; escapes the start of the line, but I'm not sure
what else:
</div>

<pre style="background-color: #cfcfff">
&lt;nowiki /&gt;== '''this''' is not a heading ==
</pre>
<nowiki/>== '''this''' is not a heading ==

<pre style="background-color: #cfcfff">
&lt;nowiki /&gt;'''this''' is wikified?
</pre>
<nowiki />'''this''' is wikified?


=== Mixing &lt;nowiki&gt; and &lt;pre&gt; ===

<pre style="background-color: #cfcfff">
&lt;nowiki&gt;&lt;pre&gt;<q>pre</q> in '''nowiki'''&lt;/pre&gt;&lt/nowiki&gt;
</pre>
<nowiki><pre><q>pre</q> in '''nowiki'''</pre></nowiki>

<pre style="background-color: #cfcfff">
&lt;pre&gt;&lt;nowiki&gt;'''nowiki''' in <q>pre</q>&lt/nowiki&gt;&lt;/pre&gt;
</pre>
<pre><nowiki>'''nowiki''' in <q>pre</q></nowiki></pre>

= Space Blocks =

<div style="color: blue">
A run of lines that start with space forms a space block, in which the text is treated as "preformatted' (meaning spacing is taken literally).  Unlike a (wiki) &lt;pre&gt; block, markup ''is'' parsed:
</div>

<pre style="background-color: #cfcfff">
 Line <q>''starting''   with a '''space'''</q>
Next ''line'' of   <q>text</q>.
</pre>
 Line <q>''starting''   with a '''space'''</q>
Next ''line'' of   <q>text</q>.

<div style="color: blue">
A run of such lines is collected into a single block, which in fact is essentially the same as an
HTML &lt;pre&gt; block, in that markup is parsed but spacing and newlines are respected.
</div>

<pre style="background-color: #cfcfff">
 Line <q>''starting''   with a '''space'''</q>
   Next ''line'' of   <q>text</q>.
</pre>
 Line <q>''starting''   with a '''space'''</q>
   Next ''line'' of   <q>text</q>.

<div style="color: blue">
A blank line that starts with a space continues the space block (an empty
line ends it).
</div>

<pre style="background-color: #cfcfff">
 Line <q>''starting''   with a '''space'''</q>
   Next ''line'' of   <q>text</q>.
 
  Another line.
</pre>
 Line <q>''starting''   with a '''space'''</q>
   Next ''line'' of   <q>text</q>.
  
  Another line.

<div style="color: blue">
(Note that the formatting seems to align segments separated by multiple
spaces like table cells).
</div>

====&lt;nowiki&gt; in space blocks==== 

<div style="color: blue">
If the space-prefixed line starts with &lt;nowiki&gt;, the block apparently
continues to the next &lt;nowiki&gt;: even if the lines don't start with
spaces:
</div>

<pre style="background-color: #cfcfff">
 &lt;nowiki&gt;Line <q>''starting'' with a '''space'''</q>
Next ''line'' of <q>text</q>.&lt;/nowiki&gt;
</pre>
 <nowiki>Line <q>''starting'' with a '''space'''</q>
Next ''line'' of <q>text</q>.</nowiki>


<div style="color: blue">
If there is a &lt;nowiki&gt; somewhere in the line, the same thing
happens.
</div>

<pre style="background-color: #cfcfff">
 Line <q>''starting'' &lt;nowiki&gt;with a '''space'''</q>
Next ''line'' of <q>text</q>.&lt;/nowiki&gt;
</pre>
 Line <q>''starting'' <nowiki>with a '''space'''</q>
Next ''line'' of <q>text</q>.</nowiki>

<div style="color: blue">
(I don't know where that last " came from)
</div>

=== Inhibited Space Block Lines ===

<div style="color: blue">
If the line starts with a &lt;p&gt;, &lt;blockquote&gt;, or &lt;div&gt; element, or &lt;th&gt; or &lt;td&gt; in a table, the preformatting seems to be inhibited.
</div>

<pre style="background-color: #cfcfff">
 <p>Line ''starting'' with a '''space''' then "&lt;p&gt;".</p>
Next ''line'' of <q>text</q>.&lt;/nowiki&gt;
</pre>
 <p>''starting'' with a '''space''' then "&lt;p&gt;".</p>
Next ''line'' of <q>text</q>.

<pre style="background-color: #cfcfff">
 <p>Line ''starting'' with a '''space''' then &lt;p&gt;.
    Next ''line'' of <q>text</q>.</p>
</pre>
 <p>Line ''starting'' with a '''space''' then &lt;p&gt;.
    Next ''line'' of <q>text</q>.</p>

<div style="color: blue">
But none of the other recognized HTML element have that effect.  &lt;q&gt; does something strange
though:
</div>

<pre style="background-color: #cfcfff">
 <q>Line ''starting'' with a '''space''' then "&lt;p&gt;".</q>
 Next ''line'' of <q>text</q>.&lt;/nowiki&gt;
</pre>
 <q>''starting'' with a '''space''' then "&lt;p&gt;".</q>
 Next ''line'' of <q>text</q>.

<div style="color: blue">
Inside one of the same list of elements, space blocks are not recognized:
</div>

<pre style="background-color: #cfcfff">
 <p>
 Line ''starting'' with a '''space''' then &lt;p&gt;.
   Next ''line'' of <q>text</q>.</p>
</pre>
 <p>
 Line ''starting'' with a '''space''' then &lt;p&gt;.
   Next ''line'' of <q>text</q>.</p>

<div style="color: blue">
But space blocks are recognized in the others (again, &lt;q&gt; is strange)
</div>

<pre style="background-color: #cfcfff">
 <q>
 Line ''starting'' with a '''space''' then &lt;p&gt;.
   Next ''line'' of <q>text</q>.</q>
</pre>
 <q>
 Line ''starting'' with a '''space''' then &lt;p&gt;.
   Next ''line'' of <q>text</q>.</q>

=== Space Blocks in Wiki Markup ===

<div style="color: blue">
The first line in a space block ends a list.  Space blocks are allowed inside tables, if the
first non-space character is not a table mark:
</div>
<pre style="background-color: #cfcfff">
{| class="wikitable"
|-
|Table cell 1, 1 || Table cell 1, 2
 (line starting with a space)
   (another line starting with spaces)
  |-
  |Table cell 2, 1 || Table cell 2,2
    |}
</pre>
{| class="wikitable"
|-
|Table cell 1, 1 || Table cell 1, 2 
 (line starting with a space)
   (another line starting with spaces)
  |-
  |Table cell 2, 1 || Table cell 2,2
    |}


=== Preformatted vs. &lt;pre&gt; ===
<div style="color: blue">
(Check the HTML output for this: they are both in &lt;pre&gt; blocks.)
</div>

<pre style="background-color: #cfcfff">
 A <q>preformatted</q> '''line'''

&lt;pre&gt;A &lt;pre&gt; block.&lt;/pre&gt;
</pre>
 A <q>preformatted</q> ''line''

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

=== Parser Elements ===

<pre style="background-color: #cfcfff">
<gallery>gallery.<gallery>More<i>gallery<i>.</gallery></gallery>
</pre>
<gallery>gallery.<gallery>More<i>gallery<i>.</gallery></gallery>


=== Other Tests ===

 This line starts with a space.
 <p>This line starts with &lt;p&gt;
 This line also starts with a space.

= Links =

=== Internal Links ===

<pre style="background-color: #cfcfff">
[[hello]]
</pre>
[[hello]]

<div style="color: blue">
It seems to depend on where the template is in a link, whether it is
expanded.
</div>

<pre style="background-color: #cfcfff">
[[hello|Hello!]]
</pre>
[[hello|Hello!]]

<pre style="background-color: #cfcfff">
[[hello|{{void}}]]
</pre>
[[hello|{{void}}]]

<pre style="background-color: #cfcfff">
[[hello{{void}}]]
</pre>
[[hello{{void}}]]

<pre style="background-color: #cfcfff">
[[{{void}hello{{void}}]]
</pre>
[[{{void}hello{{void}}]]


<div style="color: blue">
Badly formatted lists?
</div>

<pre style="background-color: #cfcfff">
# ITEM
## Item
 ## item
## Item
</pre>
# ITEM
## Item
 ## item
## Item

=== External Links ===

<div style="color: blue">
Apparently external links do have to be recognized as URIs
</div>

<pre style="background-color: #cfcfff">
[http://en.wikipedia.org]
</pre>
[http://en.wikipedia.org]

<div style="color: blue">
but
</div>

<pre style="background-color: #cfcfff">
[hello]
</pre>
[hello]

<div style="color: blue">
Templates are not expanded, apparently
</div>

<pre style="background-color: #cfcfff">
[[hello{{void}}]]
</pre>
[[hello{{void}}]]



= Headings =

<div style="color: blue">
Leading/trailing spaces are removed in headings
</div>

<pre style="background-color: #cfcfff">
=====   spaced    out      =====
</pre>
=====   spaced    out      =====

<div style="color: blue">
Markup is recognized in headings
</div>

<pre style="background-color: #cfcfff">
===== ''wikimarkup'' and <q>HTML</q> is recognized in [[heading|headings]] =====
</pre>
===== ''wikimarkup'' and <q>HTML</q> is recognized in [[heading|headings]] =====


=== Not-Quite-Right Headings ===

<div style="color: blue">
Extra "=" characters are subsumed into the text, usually
</div>

<pre style="background-color: #cfcfff">
===== extra at beginning ====
</pre>
===== extra at beginning ====

<pre style="background-color: #cfcfff">
===== extra at end ======
</pre>
===== extra at end ======

<div style="color: blue">
The heading normally ends at the end of the line,
</div>

<pre style="background-color: #cfcfff">
===== subheading ===== no? =====
</pre>
===== subheading ===== no? =====

<div style="color: blue">
even if there is a "better" heading delimiter in the middle:
</div>

<pre style="background-color: #cfcfff">
===== subheading ===== no? ===
</pre>
===== subheading ===== no? ===

<div style="color: blue">
Extra text after the last "=" run prevents it from being interpreted as
a heading.
</div>

<pre style="background-color: #cfcfff">
===== subheading ===== no?
</pre>
===== subheading ===== no?

<div style="color: blue">
Templates work as expected: they are removed, so if they appear at the start
of the line, whatever follows appears at the start of the line.
</div>

<pre style="background-color: #cfcfff">
{{void}}===== still a heading? =====
</pre>
{{void}}===== still a heading? =====

<pre style="background-color: #cfcfff">
{{void
}}===== still a heading? =====
</pre>
{{void
}}===== still a heading? =====



= Horizontal Rule =

<pre style="background-color: #cfcfff">
---- line
</pre>
---- line

<div style="color: blue">
A run of more than four "-" is still taken as a horizontal rule:
</div>

<pre style="background-color: #cfcfff">
----------------------
</pre>
----------------------

<div style="color: blue">
Text after the horizontal rule starts after it
</div>

<pre style="background-color: #cfcfff">
---- extraneous text
</pre>
---- extraneous text

<pre style="background-color: #cfcfff">
---- ----
</pre>
---- ----

<div style="color: blue">
The "----" has to be at the start of the line
</div>

<pre style="background-color: #cfcfff">
   ----
</pre>
   ----

<pre style="background-color: #cfcfff">
some text ---- more text
</pre>
some text ---- more text

<div style="color: blue">
Let's see about templates
</div>

<pre style="background-color: #cfcfff">
--{{void}}--
</pre>
--{{void}}--

<pre style="background-color: #cfcfff">
--{{void}--
</pre>
--{{void}--

= Lists =

<pre style="background-color: #cfcfff">
# Numbered item 1
# Numbered item 2
## subnumbered item 2-1
### sub-subnumbered item 2-1-1
##* bulleted
##* bulleted
## subnumbered item 2-2
</pre>
# Numbered item 1
# Numbered item 2
## subnumbered item 2-1
### sub-subnumbered item 2-1-1
##* bulleted
##* bulleted
## subnumbered item 2-2

<pre style="background-color: #cfcfff">
; term
; term : definition
: definition
</pre>
; term
; term : definition
: definition

<div style="color: blue">
Lists items cannot break lines
</div>

<pre style="background-color: #cfcfff">
# bullet in a bulleted list
## is this a '''continuation?''' <p>Not even paragraphs
 are allowed to continue lines</p>
## no
## is this a '''continuation?''' But paragraphs seem to inhibit 
 preformatted lines that start with a space.
#: what about this?
# next
</pre>
# bullet in a bulleted list
## is this a '''continuation?''' <p>Not even paragraphs
 are allowed to continue lines</p>
## no
## is this a '''continuation?''' But paragraphs seem to inhibit 
 preformatted lines that start with a space.
#: what about this?
# next

<div style="color: blue">
Badly formatted lists?
</div>

<pre style="background-color: #cfcfff">
# ITEM
## Item
 ## item
## Item
</pre>
# ITEM
## Item
 ## item
## Item


<div style="color: blue">
By the way indentation with ":" just uses definition lists.
(Check out the generated HTML)
</div>

<pre style="background-color: #cfcfff">
:indented
::double-indented
* bulletted item
*: indented bulletted item doesn't have the bullet
#: indented numbered item does
::# I wonder how this works?
::# (another item)
</pre>
:indented
::double-indented
* bulletted item
*: indented bulletted item doesn't have the bullet
#: indented numbered item does
::# I wonder how this works?
::# (another item)

==== Other ====

##anything : everything!

##* ol, ol, ul
##* ol, ol, ul
##** ol, ol, ul, ul

::*    ol, ol, ul
::* ol, ol, ul
::** ol, ol, ul, ul

;term : definition
;another term
: definition
;another term yet
: definition
;yet another term
;:definition

;;;term
;:;:definition

= Tables =

<div style="color: blue">
A simple table
</div>

<pre style="background-color: #cfcfff">
{|
|+ this is the caption
! heading 1 !! heading 2 !! heading 3
|-
| cell 1,1 || cell 1,2 || cell 1,3
|-
| cell 2,1
| cell 2,2 || cell 2,3
|}
</pre>
{|
|+ this is the caption
! heading 1 !! heading 2 !! heading 3
|-
| cell 1,1 || cell 1,2 || cell 1,3
|-
| cell 2,1
| cell 2,2 || cell 2,3
|}

==== Syntax flexibility ====
<div style="color: blue">
Interestingly, the table marks don't have to start at the beginning of the
line:
</div>

<pre style="background-color: #cfcfff">
  {| (start table text is ignored)
   |+ this is the caption
 ! heading 1 !! heading 2 !! heading 3
  |- (row text is ignored)
      | cell 1,1 || cell 1,2 || cell 1,3 
 |-
  | cell 2,1
    | cell 2,2
 | cell 2,3
       |}(post-table text)
</pre>
  {| (start table text is ignored)
   |+ this is the caption
 ! heading 1 !! heading 2 !! heading 3
  |- (row text is ignored?) 
      | cell 1,1 || cell 1,2 || cell 1,3 
 |-
  | cell 2,1
    | cell 2,2
 | cell 2,3
       |}(post-table text)

<div style="color: blue">
But something to watch out for:
"||" at the start of the line is taken as "|" followed by empty attributes,
followed by the requisite "|".
So without attributes it appears to be the same as "|", and
"||" indented might appear to be a continuation line; it is not:
</div>

<pre style="background-color: #cfcfff">
{|
|-
! cell 1,0
| cell 1,1 || style="color: green" | cell 1,2 || cell 1,3
|-
! cell 2,0
| cell 2,1 
  || style="color: green" | cell 2,2 
| cell 2,3
|}
</pre>
{|
|-
! cell 1,0
| cell 1,1 || style="color: green" | cell 1,2 || cell 1,3
|-
! cell 2,0
| cell 2,1 
  || style="color: green" | cell 2,2 
| cell 2,3
|}

====Multiline cells====
<div style="color: blue">
Evidently, cell content can continue on the next line, as if a &lt;br&gt;
appeared at the newline.  The remaining lines (before the next table mark)
are wikitext I guess.
</div>

<pre style="background-color: #cfcfff">
{|
! heading 1 !! heading 2 !! heading 3
|- (row text is ignored?)
| cell 1,1 || cell 1,2 || cell 1,3 
|-
| cell
2,1
| cell
2,
2
| cell
2,

3
|}
</pre>
{|
! heading 1 !! heading 2 !! heading 3
|- (row text is ignored?)
| cell 1,1 || cell 1,2 || cell 1,3 
|-
| cell
2,1
| cell
2,
2
| cell
2,

3
|}


==== A more complicated table (containing some errors) ====
<pre style="background-color: #cfcfff">
  {| style="color: green"
|+ with a caption
|  ... || style="color: gray" HERE | gray style="color: black" || Apple !! more
|- style="color: red" | style="color: orange" | style="color: blue"
! style="color: black" | header? 
|   Bread || Pie || more
|---- 
| this || row ||| has stuff
|-
|
| can it
* contain wikitext and
====== headings? ======
---- (extra) ||
| be split?
|-
! header 1 
!! header 2 !! header 3
|   Butter || Ice cream | or || and more
|}
</pre>
  {| style="color: green"
|+ with a caption
|  ... || style="color: gray" HERE | gray style="color: black" || Apple !! more
|- style="color: red" | style="color: orange" | style="color: blue"
! style="color: black" | header? 
|   Bread || Pie || more
|---- 
| this || row ||| has stuff
|-
|
| can it
* contain wikitext and
====== headings? ======
---- (extra) ||
| be split?
|-
! header 1 
!! header 2 !! header 3
|   Butter || Ice cream | or || and more
|}

====Tables can nest, if done properly====

<pre style="background-color: #cfcfff">
{|
|+ a nesting table?
| cell 1,1 || cell 1,2 || cell 1,3
|- 
| cell 2, 1
|
{|
| a11 || a12
|-
| a21 || a22
|}
| cell 2, 3
|-
| cell 3,1 || cell 3,2 || cell 3,3
|}
</pre>
{|
|+ a nesting table?
| cell 1,1 || cell 1,2 || cell 1,3
|- 
| cell 2, 1
|
{|
| a11 || a12
|-
| a21 || a22
|}
| cell 2, 3
|-
| cell 3,1 || cell 3,2 || cell 3,3
|}

==== Other Table Stuff ====

<div style="color: blue">
I guess headers can go anywhere, but for a row header, the first column has
to start on the next line.
</div>

<pre style="background-color: #cfcfff">
{|
|+ Caption
! !! Column 1 !! Column 2 !! Column 3
|-
! Row 1
| cell 1,1 || cell 1,2 || cell 1,3
|-
! Row 2
| cell 2,1 || cell 2,2 || cell 2,3
|}
</pre>
{|
|+ Caption
! !! Column 1 !! Column 2 !! Column 3
|-
! Row 1
| cell 1,1 || cell 1,2 || cell 1,3
|-
! Row 2
| cell 2,1 || cell 2,2 || cell 2,3
|}

= Another Section =

(For reasons I do not understand, the section after a table does't show up as editable, so it takes
the entire next section when I try to edit this "Tables" section)

= Elements =

=== Parser Elements ===

<pre style="background-color: #cfcfff">
<gallery>gallery.
<i>Text</i> in '''gallery'''{{void}}
<nowiki>nowiki <i>in</i> '''gallery'''{{void}}</nowiki>
  space block
<gallery>nested gallery.</gallery>
</gallery>
</pre>
<gallery>gallery.
<i>Text</i> in '''gallery'''{{void}}
<nowiki>nowiki <i>in</i> '''gallery'''{{void}}</nowiki>
<gallery>nested gallery.</gallery>
</gallery>

<pre style="background-color: #cfcfff">
<includeonly>includeonly.
<i>Text</i> in '''includeonly'''{{void}}
<nowiki>nowiki <i>in</i> '''includeonly'''{{void}}</nowiki>
  space block
<includeonly>nested includeonly.</includeonly>
</includeonly>
</pre>
<includeonly>includeonly.
<i>Text</i> in '''includeonly'''{{void}}
<nowiki>nowiki <i>in</i> '''includeonly'''{{void}}</nowiki>
<includeonly>nested includeonly.</includeonly>
</includeonly>

<pre style="background-color: #cfcfff">
<noinclude>noinclude.
<i>Text</i> in '''noinclude'''{{void}}
<nowiki>nowiki <i>in</i> '''noinclude'''{{void}}</nowiki>
  space block
<noinclude>nested noinclude.</noinclude>
</noinclude>
</pre>
<noinclude>noinclude.
<i>Text</i> in '''noinclude'''{{void}}
<nowiki>nowiki <i>in</i> '''noinclude'''{{void}}</nowiki>
<noinclude>nested noinclude.</noinclude>
</noinclude>

<pre style="background-color: #cfcfff">
<nowiki>nowiki.
<i>Text</i> in '''nowiki'''{{void}}
<nowiki>nowiki <i>in</i> '''nowiki'''{{void}}</nowiki>
  space block
<nowiki>nested nowiki.</nowiki>
</nowiki>
</pre>
<nowiki>nowiki.
<i>Text</i> in '''nowiki'''{{void}}
<nowiki>nowiki <i>in</i> '''nowiki'''{{void}}</nowiki>
<nowiki>nested nowiki.</nowiki>
</nowiki>

<pre style="background-color: #cfcfff">
<pre>pre.
<i>Text</i> in '''pre'''{{void}}
  space block
<pre>pre <i>in</i> '''pre'''{{void}}</pre>
<pre>nested pre.</pre>
</pre>
</pre>
<pre>pre.
<i>Text</i> in '''pre'''{{void}}
<pre>pre <i>in</i> '''pre'''{{void}}</pre>
<pre>nested pre.</pre>
</pre>


=== Extension and Other Elements ===

<div style="color: blue">
There are a lot of extensions (see [[mw:Category:All extensions]]).
Two sources I could find,
([[Help:HTML in wikitext#Parser and extension tags]] and
[[mw:Parser extension tags]])
list the following
</div>

{| class="wikitable"
!Element !! Syntax !! Notes
|+
| [[mw:Extension:CategoryTree|<nowiki><categorytree></nowiki>]]
| special ||
|+
| [[mw:Extension:CharInsert|<nowiki><charinsert></nowiki>]]
| text||
|+
| [[mw:Extension:Chem|<nowiki><chem></nowiki>]]
| special||
|+
| [[mw:Extension:Graph|<nowiki><graph></nowiki>]]
| special || throws syntax errors
|+
| [[mw:Extension:Hiero|<nowiki><hiero></nowiki>]]
| special || throws syntax errors, fatal?
|+
| [[mw:Extension:ImageMap|<nowiki><imagemap></nowiki>]]
| special || throws syntax errors
|+
| [[mw:Extension:Indicator|<nowiki><indicator></nowiki>]]
| special || throws syntax errors
|+
| [[mw:Extension:InputBox|<nowiki><inputbox></nowiki>]]
| special || throws syntax errors
|+
| [[mw:Extension:MapFrame|<nowiki><mapframe></nowiki>]]
| special || displays "problems" with pink background
|+
| [[mw:Extension:MapLink|<nowiki><maplink></nowiki>]]
| special || displays sytax errors with pink background
|+
| [[mw:Extension:Math|<nowiki><math></nowiki>]]
| special||
|+
| [[mw:Extension:Math chem|<nowiki><math chem></nowiki>]]
| special || not sure this is recognized
|+
| [[mw:Extension:Poem|<nowiki><poem></nowiki>]]
| wikitext || spaces and newlines are taken literally
|+
| [[mw:Extension:Ref|<nowiki><ref></nowiki>]]
| special || recognizes templates?
|+
| [[mw:Extension:References|<nowiki><references></nowiki>]]
| special ||
|+
| [[mw:Extension:Score|<nowiki><score></nowiki>]]
| special || display syntax errors
|+
| [[mw:Extension:Section|<nowiki><section></nowiki>]]
| special ||
|+
| [[mw:Extension:SyntaxHighlight|<nowiki><syntaxhighlight></nowiki>]]
| text || as preformatted
|+
| [[mw:Extension:TemplateData|<nowiki><templatedata></nowiki>]]
| special || throws syntax errors
|+
| [[mw:Extension:TemplateStyle|<nowiki><templatestyle></nowiki>]]
| special || throws syntax errors
|+
| [[mw:Extension:Timeline|<nowiki><timeline></nowiki>]]
| special || throws syntax errors
|}

<div style="color: blue">
Also 
</div>
* [[mw:Extension:Chem|<nowiki><ce></nowiki>]] is an alias for [[mw:Extension:Chem|<nowiki><chem></nowiki>]]
*[[mw:Extension:SyntaxHighlight|<nowiki><source></nowiki>]] is an alias for [[mw:Extension:SyntaxHighlight|<nowiki><syntaxhighlight></nowiki>]]

<div style="color: blue">
<b>Note:</b> <nowiki><code></nowiki> is actually an HTML element (more precisely, an [[mw:Parser 2011/Core tag hooks|"HTML-alike"]]).
</div>

= Other =

=== &lt;p> Elements ===

<div style="color: blue">
(Check the HTML output on some of these)
</div>

<div style="color: blue">
&lt;p> tag seem to have some meaning
</div>

<pre style="background-color: #cfcfff">
Normally a blank line

starts a new paragraph
</pre>
Normally a blank line

starts a new paragraph

<pre style="background-color: #cfcfff">
<p>But not if it is contained

in a &lt;p> element.</p>
</pre>
<p>But not if it is contained

in a &lt;p> element.</p>

=== Other Stuff ===
<div style="color: blue">
Table markup out of place
</div>

<pre style="background-color: #cfcfff">
|some text
|} more
</pre>
|some text
|} more


=== Mixing wiki markup with HTML ===

<pre style="background-color: #cfcfff">
''italic</i>, '''bold</b>
</pre>
''italic</i>, '''bold</b>

<pre style="background-color: #cfcfff">
===== heading </h5>
</pre>
===== heading </h5>

<pre style="background-color: #cfcfff">
<h5> heading =====
</pre>
''starts an &lt;h5&gt; element, that has to be closed.''

=== Mixing wiki lists with HTML elements ===

<div style="color: blue">
An &lt;li> on its own line causes the list to end
</div>

<pre style="background-color: #cfcfff">
* First item
* Second item 
<li> Other item </li>
</pre>
* First item
* Second item 
<li> Other item </li>

<div style="color: blue">
But if it is on an a list item line, it becomes another item.
</div>

<pre style="background-color: #cfcfff">
* First item <li>Other item
* Second item 
</pre>
* First item <li>Other item
* Second item 


<div style="color: blue">
''Why are these not preformatted?''
</div>

 <li> Third     <q>item</q></li>
 Fourth item?

<ol>
# item 1
# item 2
</ol>

# item 1
# item 2

==== Mixing wiki and HTML tables? ====

{| class="wikitable"
|+ Wiki table with HTML subtable
| column 1,1 || column 1,2 || column 1,3
|- 
| column 2, 1
| <table><tr><td>A11<td>A12<tr><td>A21<td>A22</table>
| column 2, 3
|-
| column 3,1 || column 3,2 || column 3,3
|}

{| class="wikitable"
|+ Wiki table with HTML tags
| column 1,1 || column 1,2 || column 1,3
|- 
| column 2,1 <td>-- column 2,2 --</td>
| column 2,3 || column 2,4
|-
| column 3,1 || column 3,2 || column 3,3
  <tr> <td>C4,1<td>C4,2<td>C4,3
|- 
|column 5,1 || column 5,2 || column 5,3
|}

<table>
|+HTML table with wiki marks
  Space line!
|-
| column || column || column
</table>

=== Other Tests ===
<p>
Paragraph

Text.
</p>

<p>
===== Heading =====
</p>

<abbr> hi!
  space line
</abbr>

<table>
<caption>
<tr><th>Column</th>
<tr><td>
  space line
</table>

----

==== More Tests ====




==== List elemements ====

 <ul>&lt;ul>Space block line!</ul>

 <li>&lt;li>Space block line!</li>

<ul>
  Space block line!
</ul>

<ul>
 <li>Space block line!
</ul>

 <ul>
 <li>Space block line!
 </ul>

 <ul>
<li>Space block line!
 </ul>


 <ol>&lt;ol>Space block line!</ol>

 <li>&lt;li>Space block line!</li>

<ol>
  Space block line!
</ol>

<ol>
 <li>Space block line!
</ol>

 <ol>
 <li>Space block line!
 </ol>

 <ol>
<li>Space block line!
 </ol>


 <dl>&lt;dl>Space block line!</dl>

 <dt>&lt;dt>Space block line!</dt>

 <dd>&lt;dt>Space block line!</dd>

<dl>
  Space block line!
</dl>

<dl>
 <dt>Space block line!
 <dd>Space block line!
</dl>

 <dl>
 <dt>Space block line!
 <dd>Space block line!
 </dl>

 <dl>
<dt>Space block line!
<dd>Space block line!
* hi!
 </dl>


==== Table elements ====

 <table>
   <caption>Table caption</caption>
   <tr><td>cell 1</td><td>cell 2
 </table>

 <caption>caption out of table</caption>

 <tr>&lt;tr&gt; (ordinary text)</tr>

 <th>&lt;th&gt; (ordinary text)</th>

 <td>&lt;td&gt; (ordinary text)</td>

  Preformatted
  {|
|-
| table
  space block line
*list?
|}

=== Other ===
'''''italic-bold</b> italic</b>
{|
|- 
| cell 1,1 || cell 1,2
<tr>
<td> cell 2,1 <td> cell 2,2
|}

# item
{{-}}# another item

<data> here is some <q>data</q> </data>
<code>
for (int k = 0; k < 100; k++) {
     // <q>something wicked this way comes</q>
     ''x'' = 1;
  }
</code>

<ul>
# item 1
#item 2
</ul>

<poem>
I think that I shall never see
A poem as lovely as a ''tree''
# one
# two
# three
: Tree?
</poem>

# item
# item <poem>some ''preformatted''
# how shall I count the ways?
# (seriously!) </poem> and more text
# item

{{{{abc}}}}

X '''abc''' '''def''' '''x''

=== References? ===

# item
{{void}}# another item

 hello l'''amour'' l'''ouest''' blah{{refn|group=notes|Note Content<ref>reference for the note</ref>}}
 hello mon'''amour'' blah
 hello '''amour'' '''blah '''blah 

<ref>I guess this is a reference?</ref>

{{void}} some text that doesn't start a space block?
{{void}}##; item
##* item

<!-- <references /> -->

Notes

[edit]

References

[edit]