Help talk:List
Lists NA‑class | |||||||
|
Wikipedia Help NA‑class | |||||||
|
From Meta:Help talk:List
Outline Numbered List
Is there a way to create a list that is numbered as an outline? The list below is formatted how I'd like it (but not automatically numbered):
- 1. element 1 level 1
- 1.1. subelement 1 level 2
- 1.2. subelement 2 level 2
- 1.2.1. subsubelement 1 level 3
- 1.3. subelement 3 level 2
- 2. element 2 level 1
etc.
I know how to do a general list, but that only gives me:
- element 1 level 1
- subelement 1 level 2
- subelement 2 level 2
- subsubelement 1 level 3
- subelement 3 level 2
- element 2 level 1
I know that the table of contents does this automatically, and if the user has the automatic numbering preference enabled, the numbers will appear if each entry is defined as a section heading, but I couldn't find a way to force the numbering to show up either.
Any help is appreciated! Thanks!
Came hear with a same question. Any results, Rkausch? —Preceding unsigned comment added by Skfd (talk • contribs) 13:40, 12 December 2009 (UTC)
alphabetically
Is there any way to make a list that uses abc… as bullets instead of numbers or bullets? Without using HTML, i.e:
Question
Is there a way to make a numbered list within a table, to create something like below?
1. | Red | 10,000,000 |
2. | Blue | 9,000,000 |
Someone the Person (talk) 22:43, 8 February 2009 (UTC)
If someone does figure this out, make sure to check if sorting would break it (i.e. if you sort by column 2, you don't want it to renumber after it's sorted). Zephalis (talk) 02:05, 20 June 2012 (UTC)
Alphabetical
There is no hit on this page for the word "alphbetical". A list should be ordered by date (if particularly significant) or in alphabetical order. Is this not previously considered? ~ R.T.G 18:22, 13 April 2010 (UTC)
Avoiding paragraphs breaking bullet points?
From Help:List#Paragraphs_in_lists, is not clear if it's possible, when a list item has more than one paragraph, to avoid the paragraph change to break the item and the list as well. Starting the paragraphs after the first with ":" instead of "*", gives a different indentation than the first paragraph. Example were is needed: List_of_plagiarism_controversies#Literature.--Sum (talk) 11:57, 4 April 2011 (UTC)
Question: Linking a list to topics in the article
I've created a bulleted list and now I'd like to link each bullet topic with its corresponding section in the article. How can I do this? Thanks! Scfavrot (talk) 20:38, 6 May 2011 (UTC)
- See WP:ANCHOR. To create a link to section "Xyz" of article "Abc", the syntax is [[Abc#Xyz]]. To make that look nicer, use a piped link, [[Abc#Xyz|reader-friendly text goes here]]. Is that what you have in mind? -- John of Reading (talk) 21:11, 6 May 2011 (UTC)
Horizontal lists
Is anyone up for writing a section about the new horizontal lists? I'm not much of a documenter myself. — Edokter (talk) — 22:26, 19 November 2011 (UTC)
What piece of code provides #<li value="9"> syntax (removing empty list elements)?
VitaliyFilippov (talk) 16:31, 30 January 2012 (UTC)
The following example works here:
#<li value="9">Amsterdam</li> #Rotterdam #The Hague
- Amsterdam
- Rotterdam
- The Hague
But on a vanilla MediaWikis 1.16, 1.18 and trunk the same code produces an empty item before the 9th. Moreover, </li> is left in the text. I.e. it looks like:
- Amsterdam</li>
- Rotterdam
- The Hague
Also I see that in Wikimedia Wikis, empty list elements are removed (see the code, there is an empty list element between phases 1 and 3):
- Phase 1: Collect underpants
- Phase 3: PROFIT!!!
So, this evidently is how #<li value="9"> syntax works. What piece of code (extension or patch) does provide this feature?
VitaliyFilippov (talk) 14:18, 5 March 2012 (UTC) UPDATE: I've found it, it's $wgUseTidy = true; configuration setting. Tidy removes empty list items.
MediaWiki clobbers
- Looks like MediaWiki clobbers inline CSS for setting unordered list symbol type:
<ul style="list-style-type:square;">
- HTML:
<ul style="list-style-type:square; margin-left:48px;"> <li>Stuff</li> <li>More stuff</li> </ul>
- Output:
- Stuff
- More stuff