English Wikipedia @ Freddythechick:Manual of Style/Accessibility/dl tests
Essay on editing Wikipedia
![]() | This is an essay on Wikipedia:Manual of Style/Accessibility. It contains the advice or opinions of one or more Wikipedia contributors. This page is not an encyclopedia article, nor is it one of Wikipedia's policies or guidelines, as it has not been thoroughly vetted by the community. Some essays represent widespread norms; others only represent minority viewpoints. |
When using MediaWiki parser's built-in description/definition/association list shorthand markup (the ;
and :
syntax), there cannot be blank lines between any "terms" or "definitions" in the list, or it breaks the list markup.
Contiguous association list in MediaWiki markup
View source to behold the semantic markup.
- Term 1
- Definition 1A
- Definition 1B
- Term 2 (UK)
- Term 2 (US)
- Definition 2
Wiki source
|
---|
<syntaxhighlight lang="wikitext">
</syntaxhighlight> |
Resulting HTML
|
---|
<syntaxhighlight lang="html">
</syntaxhighlight> |
Association list in MediaWiki markup with blank lines
View source to behold to MW vomit.
- Term 1
- Definition 1A
- Definition 1B
- Term 2 (UK)
- Term 2 (US)
- Definition 2
Wiki source
|
---|
<syntaxhighlight lang="wikitext">
</syntaxhighlight> |
Resulting HTML
|
---|
<syntaxhighlight lang="html">
</syntaxhighlight> |
This is a semantic HTML and Web accessibility nightmare.
Association list in HTML with blank lines
View source to behold the semantic markup's return
- Term 1
- Definition 1A
- Definition 1B
- Term 2 (UK)
- Term 2 (US)
- Definition 2
Wiki source
|
---|
<syntaxhighlight lang="wikitext">
</syntaxhighlight> |
Resulting HTML
|
---|
<syntaxhighlight lang="html">
</syntaxhighlight> |