Help talk:List: Difference between revisions
Alphabetical |
|||
Line 36: | Line 36: | ||
Is there any way to make a list that uses abc… as bullets instead of numbers or bullets? Without using HTML, i.e: <ol style="list-style-type:lower-latin">. -- [[User:Henriok|Henriok]] ([[User talk:Henriok|talk]]) 10:28, 25 April 2008 (UTC) |
Is there any way to make a list that uses abc… as bullets instead of numbers or bullets? Without using HTML, i.e: <ol style="list-style-type:lower-latin">. -- [[User:Henriok|Henriok]] ([[User talk:Henriok|talk]]) 10:28, 25 April 2008 (UTC) |
||
</ol> |
</ol> |
||
This template may not have even existed when the question was asked but ... |
|||
{{Ordered list | type=lower-alpha |
|||
| See [[Template:Ordered list]] |
|||
| See [[Template:Ordered list]] |
|||
| See [[Template:Ordered list]] |
|||
}} |
|||
... in case anyone comes looking her for answers. -- [[Special:Contributions/109.77.223.109|109.77.223.109]] ([[User talk:109.77.223.109|talk]]) 04:24, 14 January 2020 (UTC) |
|||
== Question == |
== Question == |
||
Line 53: | Line 63: | ||
== Alphabetical == |
== Alphabetical == |
||
There is no hit on this page for the word " |
There is no hit on this page for the word "alphabetical". A list should be ordered by date (if particularly significant) or in alphabetical order. Is this not previously considered? <font color="green" size="2" face="Impact">~ [[User:RTG|R]].[[User_Talk:RTG|T]].[[Special:Contributions/RTG|G]]</font> 18:22, 13 April 2010 (UTC) |
||
{{Ordered list | type=upper-alpha |
|||
| Item One |
|||
| Item Two |
|||
| Item Three |
|||
}} |
|||
: See [[Template:Ordered list]] which can do various types of ordered lists including alphabetical lists. -- [[Special:Contributions/109.77.223.109|109.77.223.109]] ([[User talk:109.77.223.109|talk]]) 04:24, 14 January 2020 (UTC) |
|||
== Avoiding paragraphs breaking bullet points? == |
== Avoiding paragraphs breaking bullet points? == |
Revision as of 04:24, 14 January 2020
Lists NA‑class | |||||||
|
Wikipedia Help B‑class High‑importance | ||||||||||
|
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)
same for mew, seems no option even with CSS. TiloWiki (talk) 18:56, 19 December 2019 (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:
This template may not have even existed when the question was asked but ...
... in case anyone comes looking her for answers. -- 109.77.223.109 (talk) 04:24, 14 January 2020 (UTC)
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 "alphabetical". 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)
- Item One
- Item Two
- Item Three
- See Template:Ordered list which can do various types of ordered lists including alphabetical lists. -- 109.77.223.109 (talk) 04:24, 14 January 2020 (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 inline CSS list-style-type for unordered list HTML
- 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
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> |
|
<ol style="list-style-type:square;"> <li>Stuff</li> <li>More stuff</li> </ol> |
|
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: and . 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
tonone
:
Markup | Renders as |
---|---|
<ul style="list-style-type:square; list-style-image:none;"> <li>Stuff</li> <li>More stuff</li> </ul> |
|
- — 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:
- Item 1
- 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)
- 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)
Alumni of unestablished notability listed for a college
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)
- 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)
template breaking number list
is there a way to insert a template without breaking the numbered list order?
Example:
; Steps:
# step 1
# step 2
#* step 2.1
# step 3
#: {{lorem}}
# step 4
# step 5
which shows up as:
- Steps
- step 1
- step 2
- step 2.1
- step 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- step 4
- step 5
instead of:
- Steps
- step 1
- step 2
- step 2.1
- step 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- step 4
- step 5
— Preceding unsigned comment added by 12.106.197.114 (talk) 14:59, 26 June 2015 (UTC)
Backwards markup
A couple days ago, I wrote a new section concerning (in part) the effects of getting the order wrong in nested list markup—an error that I routinely see from experienced editors on discussion pages. For instance, this is wrong:
# ... :# ... *:# ...
As is this:
* ... :* ... ::* ...
The portions of my contribution concerning this were reverted because “There is documentation”
; where is this common error discussed? And is there something we can do to increase its visibility? Also, the same edit summary claims that “nested lists are handled below,”
which I don’t believe is the case. —67.14.236.50 (talk) 02:22, 3 August 2015 (UTC)
Also, shouldn’t this be the main page for WP:LISTGAP, rather than vice versa? It’s a matter of properly constructing your lists, not something specific to accessibility. —67.14.236.50 (talk) 04:24, 4 August 2015 (UTC)
Anyway, I’m sure both my prose and examples could be improved. Please do so! But I’m also pretty sure that this is the only place where most of what I’ve added is discussed, and I’m positive that the help page for wikilists should discuss it. Where else would someone look? Maybe Help:Markup, but that page’s section on lists directs readers here (and we should naturally give more information on the subject here than is there). —67.14.236.50 (talk) 04:41, 4 August 2015 (UTC)
SVG Bullet (as of 2016-02-10) doesn't scale properly with text size
I've done some brief searching but haven't found a more appropriate place to mention this. The current svg used for bullet points (list-style-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A)
) doesn't scale well.
I use a high-res monitor, and so I usually have Wikipedia zoomed to 200%. At that zoom level, the bullet looks like a period, so the bullet list entries look like:
. Some element . Some other element
—192.225.213.20 (talk) 22:00, 10 February 2016 (UTC)
Spacing and bullets
The examples all seem to place a space between between the asterisk and first word in a list entry, and AutoEd adds them if they're not there, but is it actually incorrect to not insert a space (as in *Skyscrapers)? I know the bullets will render with an appropriate space either way. I ask because an editor has systematically removed the spaces from certain articles, and this could be an endless back and forth if only one way is "correct".— TAnthonyTalk 19:13, 24 June 2016 (UTC)
- Both are correct. Some will find that the space makes lists easier to read (while editing). Some automated tools usually add a space for readability. But one shouldn't add/remove spaces wholesale by hand.
-- [[User:Edokter]] {{talk}}
19:30, 24 June 2016 (UTC)- Great, thanks.— TAnthonyTalk 20:59, 24 June 2016 (UTC)
Replace standard bullet with another character or symbol?
Using the same bullet character for elements and subelements doesn't look very professional. Using an en dash for subelements is an improvement. It can be done like this:
Markup | Renders as |
---|---|
*element 1 :– subelement 1 :– subelement 2 *element 2 |
|
but is there a better way? (The method above doens't provide correct hanging indent when words wrap to the next line.) GPS Pilot (talk) 21:52, 23 November 2016 (UTC)
Question: Two line breaks before a list
Markup | Renders as |
---|---|
One line break gives * the same amount of whitespace before the list * as two line breaks |
One line break gives
whitespace before the list
|
Is there a preference for one of the two? --NBarto (talk) 19:53, 6 September 2017 (UTC)
Proposal on overly long entries in lists
Please see: Wikipedia talk:Manual of Style/Lists#Overly long list items
Gist: Add brief advice about what to do about excessively large items in lists, to either WP:Manual of Style/Lists or WP:Summary style. — SMcCandlish ☏ ¢ 😼 23:28, 20 November 2018 (UTC)
Preformatted block in text in a list item
Can a list item be text containing a preformatted block? The objective is to make a list of instructions constituting a procedure to install software. Some of the instructions should include small blocks of code. Thanks, ... PeterEasthope (talk) 01:03, 3 December 2018 (UTC)
RfC on permitting "List of foo" mainspace titles to redirect to categories instead
Please see: Wikipedia talk:Stand-alone lists#RfC about redirects to categories
— SMcCandlish ☏ ¢ 😼 06:49, 10 December 2018 (UTC)
Requesting help
Could someone please get me going on number this list with # signs instead of typing in the actual numbers? If something is added or deleted, then the # signs keep the numbers in order. I have tried so many things before requesting help here. Thank you--Wyn.junior (talk) 18:46, 3 March 2019 (UTC)