Help:List: Difference between revisions

Xenwolf (talk | contribs)
Description lists: table column alignment possible without per-cell addition of inline style
ArrowHead294 (talk | contribs)
m Spaced <nowiki> is harder to read than <pre>
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
:''See [[Help:Editing #Lists]] for basic list syntax.''
: ''See [[Help:Editing #Lists]] for basic list syntax.''


Lists can get complicated, if they are nested in other lists, items get longer than just one line, for instance whole paragraphs. Items contain images and so on. The wiki markup is optimized for simple lists, for complex lists MediaWiki allows for embedding HTML all three types of lists.
Lists can get complicated, if they are nested in other lists, items get longer than just one line, for instance whole paragraphs. Items contain images and so on. The wiki markup is optimized for simple lists, for complex lists MediaWiki allows for embedding HTML all three types of lists.


== Unordered lists ==
== Unordered lists ==
<nowiki><ul>
<pre>
<ul>
<li>
<li>
One item that contains much text even if it isn't really interesting to read all of it:  
One item that contains much text even if it isn't really interesting to read all of it:  
Line 17: Line 18:
At vero eos et accusam et justo duo dolores  
At vero eos et accusam et justo duo dolores  
</li>
</li>
</ul></nowiki>
</ul>
</pre>


<ul>
<ul>
Line 38: Line 40:
Numbered (or ordered) list show an ascending number for each item by default. It is possible to change this style, see sections [[#roman numbers]] or [[#latin letters]] for how.
Numbered (or ordered) list show an ascending number for each item by default. It is possible to change this style, see sections [[#roman numbers]] or [[#latin letters]] for how.


<nowiki><ol>
<pre>
<ol>
<li>
<li>
One item that contains much text even if it isn't really interesting to read all of it:  
One item that contains much text even if it isn't really interesting to read all of it:  
Line 51: Line 54:
accusam et justo duo dolores  
accusam et justo duo dolores  
</li>
</li>
</ol></nowiki>
</ol>
</pre>


<ol>
<ol>
Line 109: Line 113:
Here are examples for huge descriptions for terms in definition lists that contain floating images as illustrations and tables.
Here are examples for huge descriptions for terms in definition lists that contain floating images as illustrations and tables.


<nowiki><dl>
<pre>
<dl>
<dt>Cent</dt>
<dt>Cent</dt>
<dd>[[File:Test-120x60px.png|right|60px]] The cent is a logarithmic unit of measure used for musical intervals. Twelve-tone equal temperament divides the octave into 12 semitones of 100 cents each. Typically, cents are used to express small intervals, or to compare the sizes of comparable intervals in different tuning systems, and in fact the interval of one cent is too small to be heard between successive notes.
<dd>[[File:Test-120x60px.png|right|60px]] The cent is a logarithmic unit of measure used for musical intervals. Twelve-tone equal temperament divides the octave into 12 semitones of 100 cents each. Typically, cents are used to express small intervals, or to compare the sizes of comparable intervals in different tuning systems, and in fact the interval of one cent is too small to be heard between successive notes.
Line 139: Line 144:
|}
|}
</dd>
</dd>
</dl></nowiki>
</dl>
</pre>


<dl>
<dl>
Line 172: Line 178:
</dd>
</dd>
</dl>
</dl>
== List templates ==
There are two templates in this wiki for building HTML lists.
; [[Template:List]]
: for creating an unordered list with up to 50 items.
; [[Template:Numlist]]
: for creating a numbered list with up to 50 items.
Both templates were created by [[User:PiotrGrochowski]], please ask him for help and improvements.


== See also ==
== See also ==
* [[Help:Editing]]
* [[Help:Editing]]
* [[User:PiotrGrochowski/Plaintext and defined lists]] &mdash; alternative ways to build lists (under construction)
* [https://en.wikipedia.org/wiki/Help:List Help&#58;List &#45; Wikipedia]
* [https://en.wikipedia.org/wiki/Help:List Help&#58;List &#45; Wikipedia]


[[Category:Help]]
[[Category:Help]]
[[Category:todo:expand|?]]
[[Category:todo:expand|?]]