Help talk:List

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Lists (Rated NA-class, High-importance)
WikiProject icon This page is within the scope of WikiProject Lists, an attempt to structure and organize all list pages on Wikipedia. If you wish to help, please visit the project page, where you can join the project and/or contribute to the discussion.
 NA  This page does not require a rating on the project's quality scale.
 High  This page has been rated as High-importance on the project's importance scale.
 
the Wikipedia Help Project (Rated B-class, High-importance)
WikiProject icon This page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the help menu or help directory.
B-Class article B  This page does not require a rating on the project's quality scale.
 High  This page has been rated as High-importance on the project's importance scale.
 

From Meta:Help talk:List[edit]

Outline Numbered List[edit]

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:

  1. element 1 level 1
    1. subelement 1 level 2
    2. subelement 2 level 2
      1. subsubelement 1 level 3
    3. subelement 3 level 2
  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!

--Rkausch (talk) 16:54, 17 December 2007 (UTC)

Came hear with a same question. Any results, Rkausch? —Preceding unsigned comment added by Skfd (talkcontribs) 13:40, 12 December 2009 (UTC)

alphabetically[edit]

Is there any way to make a list that uses abc… as bullets instead of numbers or bullets? Without using HTML, i.e:

. -- Henriok (talk) 10:28, 25 April 2008 (UTC)

Question[edit]

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[edit]

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?[edit]

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[edit]

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[edit]

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)?[edit]

VitaliyFilippov (talk) 16:31, 30 January 2012 (UTC)

The following example works here:

#<li value="9">Amsterdam</li>
#Rotterdam
#The Hague
  1. Amsterdam
  2. Rotterdam
  3. 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:

  1.  
  2. Amsterdam</li>
  3. Rotterdam
  4. 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):

  1. Phase 1: Collect underpants
  2. 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 inline CSS list-style-type for unordered list HTML[edit]

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
--173.13.177.204 (talk) 01:13, 31 January 2013 (UTC)


I can't seem to style an unordered list, but an ordered list works. The margin is different. I need to check the stylesheets. --— Gadget850 (Ed) talk 03:20, 31 January 2013 (UTC)

Markup Renders as
<ul style="list-style-type:square;">
<li>Stuff</li>
<li>More stuff</li>
</ul>
  • Stuff
  • More stuff

<ol style="list-style-type:square;">
<li>Stuff</li>
<li>More stuff</li>
</ol>
  1. Stuff
  2. More stuff

CSS contains:

ul {
line-height: 1.5em;
list-style-type: square;
margin: .3em 0 0 1.6em;
padding: 0;
}
ol {
line-height: 1.5em;
margin: .3em 0 0 3.2em;
padding: 0;
list-style-image: none;
}

That explains the margin difference, but I don't understand the intent of setting the style in site CSS. --— Gadget850 (Ed) talk 03:42, 31 January 2013 (UTC)

The Vector (and Monobook/Modern) core skin CSS uses images to style unordered list bullets: Vector-bullet-icon.png and Bullet.png. That is by design (as are the margins).
ul {
list-style-type: disc;
list-style-image: url(//bits.wikimedia.org/static-1.21wmf7/skins/vector/images/bullet-icon.png);
}
To get a square, you must override the list-style-image to none:
Markup Renders as
<ul style="list-style-type:square; list-style-image:none;">
<li>Stuff</li>
<li>More stuff</li>
</ul>
  • Stuff
  • More stuff
Edokter (talk) — 09:39, 31 January 2013 (UTC)
Thanks: I knew you were the one to ping on this. I was starting to pick through the other CSS. Why is there a difference in margins? --— Gadget850 (Ed) talk 09:53, 31 January 2013 (UTC)
Ordered list items have a wider margin to accomodate for (larger) numbers:
  1. Item 1
  2. Item 9999
The margin is twice as wide as those for unordered list items, so you can still line them up with wiki-markup. Edokter (talk) — 10:01, 31 January 2013 (UTC)
Aha! Again thanks.
To the original poster: why do you want to change the list-style-type? --— Gadget850 (Ed) talk 12:36, 31 January 2013 (UTC)

Alumni of unestablished notability listed for a college[edit]

List of Brock University people says it includes notable alumni, but it has only 25 bluelinked names who have their own Wikipedia articles, and about 52 names with no article linked. Some likely would satisfy WP:BIO, but should such a list include mostly names without articles? Is it appropriate to leave them in if some claim to fame is mentioned for them? In lists of "people from a town" the non-bluelink names are typically removed. Edison (talk) 22:03, 2 February 2014 (UTC)

This is not the right place to ask this; this page of for technical list issues. Edokter (talk) — 22:11, 2 February 2014 (UTC)
Suggestions as to what the correct forum is? Something beyond "GO AWAY!" would be helpful in improving Wikipedia. Edison (talk) 22:19, 2 February 2014 (UTC)
Notability is determined by the list editors, so ask on the article talk page. At List of Eagle Scouts we decided that all entries must have an article- this has cut down on the interminable discussions over whether someone is notable. Other lists just require a citation. --  Gadget850 talk 22:41, 2 February 2014 (UTC)