Help:List: Difference between revisions

Xenwolf (talk | contribs)
fixed anchor for Help:Editing #Lists
Xenwolf (talk | contribs)
added complex description list examples and referred to the list templates
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. In these cases simple wiki markup does not simplify lists but complicates them.
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.
 
MediaWiki allows for embedding HTML in these cases.


== Unordered lists ==
== Unordered lists ==
Line 107: Line 105:
</li>
</li>
</ol>
</ol>
== Description lists ==
Here are examples for huge descriptions for terms in definition lists that contain floating images as illustrations and tables.
<nowiki><dl>
<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.
Alexander J. Ellis based the measure on the acoustic logarithms decimal semitone system developed by Gaspard de Prony in the 1830s, at Robert Holford Macdowell Bosanquet's suggestion. Ellis made extensive measurements of musical instruments from around the world, using cents extensively to report and compare the scales employed,[1] and further described and employed the system in his 1875 edition of Hermann von Helmholtz's On the Sensations of Tone. It has become the standard method of representing and comparing musical pitches and intervals. (from: ''[https://en.wikipedia.org/wiki/Cent_(music) Cent (music) &#45; Wikipedia]'') </dd>
<dt>Monzo</dt>
<dd>For example, the interval 15/8 can be thought of as having 5*3 in the numerator, and 2*2*2 in the denominator. This can be compactly represented by the expression 2^-3 * 3^1 * 5^1, which is exactly equal to 15/8. We construct the monzo by taking the exponent from each prime, in order, and placing them within the {{Monzo| ... }} brackets, hence yielding {{Monzo|-3 1 1}}.
:''Practical hint:'' Because the pipe symbol and the greater sign have special meaning in wiki syntax and HTML, there is a helper template ([[Template:Monzo]]) that can be used like this {{Monzo|arguments}} to get the monzo brackets (<code>{{Monzo|arguments}}</code>) from it.
Here are some common 5-limit monzos, for your reference:
{| class="wikitable"
|-
! Ratio
! Monzo
|-
| style="text-align:center;" | [[3/2]]
| {{Monzo| -1 1 0 }}
|-
| style="text-align:center;" | [[5/4]]
| {{Monzo| -2 0 1 }}
|-
| style="text-align:center;" | [[9/8]]
| {{Monzo| -3 2 0 }}
|-
| style="text-align:center;" | [[81/80]]
| {{Monzo| -4 4 -1 }}
|}
</dd>
</dl></nowiki>
<dl>
<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.
Alexander J. Ellis based the measure on the acoustic logarithms decimal semitone system developed by Gaspard de Prony in the 1830s, at Robert Holford Macdowell Bosanquet's suggestion. Ellis made extensive measurements of musical instruments from around the world, using cents extensively to report and compare the scales employed,[1] and further described and employed the system in his 1875 edition of Hermann von Helmholtz's On the Sensations of Tone. It has become the standard method of representing and comparing musical pitches and intervals. (from: ''[https://en.wikipedia.org/wiki/Cent_(music) Cent (music) &#45; Wikipedia]'')</dd>
<dt>Monzo</dt>
<dd>For example, the interval 15/8 can be thought of as having 5*3 in the numerator, and 2*2*2 in the denominator. This can be compactly represented by the expression 2^-3 * 3^1 * 5^1, which is exactly equal to 15/8. We construct the monzo by taking the exponent from each prime, in order, and placing them within the {{Monzo| ... }} brackets, hence yielding {{Monzo|-3 1 1}}.
:''Practical hint:'' Because the pipe symbol and the greater sign have special meaning in wiki syntax and HTML, there is a helper template ([[Template:Monzo]]) that can be used like this <code><nowiki>{{Monzo|arguments}}</nowiki></code> to get the monzo brackets (<code>{{Monzo|arguments}}</code>) from it.
Here are some common 5-limit monzos, for your reference:
{| class="wikitable"
|-
! Ratio
! Monzo
|-
| style="text-align:center;" | [[3/2]]
| {{Monzo| -1 1 0 }}
|-
| style="text-align:center;" | [[5/4]]
| {{Monzo| -2 0 1 }}
|-
| style="text-align:center;" | [[9/8]]
| {{Monzo| -3 2 0 }}
|-
| style="text-align:center;" | [[81/80]]
| {{Monzo| -4 4 -1 }}
|}
</dd>
</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 ==