![]() | Lists Template‑class | ||||||
|
![]() | Text and/or other creative content from this version of Template:Plainlist was copied or moved into incubator:Template:Wp/nod/plainlist with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. |
Nice work. Do we need ((Endplainlist))? Under what circumstances would the alternative method not work? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:09, 22 November 2011 (UTC)
|
|
Presumably, the class plainlist
will be available for use in infoboxes, or other containers, without the need for this template, in the manner of hlist
? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:17, 22 November 2011 (UTC)
Hello. Is there a way to use this template in a more compact fashion, e.g.
((plainlist |((flagcountry|Russia)) |((flagcountry|Finland)) |((flagcountry|Poland)) |((flagcountry|Estonia)) |((flagcountry|Latvia)) |((flagcountry|Lithuania)) |((flagcountry|Belarus)) |((flagcountry|Moldova)) |((flagcountry|Ukraine)) |((flagcountry|Georgia)) |((flagcountry|Armenia)) |((flagcountry|Azerbaijan)) |((flagcountry|Kazakhstan)) |((flagcountry|Uzbekistan)) |((flagcountry|Turkmenistan)) |((flagcountry|Kyrgyzstan)) |((flagcountry|Tajikistan)) ))
rather than the space-consuming
((plainlist | * ((flagcountry|Russia)) * ((flagcountry|Finland)) * ((flagcountry|Poland)) * ((flagcountry|Estonia)) * ((flagcountry|Latvia)) * ((flagcountry|Lithuania)) * ((flagcountry|Belarus)) * ((flagcountry|Moldova)) * ((flagcountry|Ukraine)) * ((flagcountry|Georgia)) * ((flagcountry|Armenia)) * ((flagcountry|Azerbaijan)) * ((flagcountry|Kazakhstan)) * ((flagcountry|Uzbekistan)) * ((flagcountry|Turkmenistan)) * ((flagcountry|Kyrgyzstan)) * ((flagcountry|Tajikistan)) ))
...?
213.246.91.158 (talk) 11:53, 24 November 2012 (UTC)
Please move this Template from Plainlist to "Plain list". At the time of writing both versions work. Some web browsers include spell checking and the first instance "Plainlist" is marked as an error by the spell checker. This is distracting and unhelpful. It is a bad API that includes deliberate spelling errors. Unfortunately many works in Wikipedia are marked by the spell checker. So many words are marked that it makes it more difficult to see and correct the true spelling mistakes (and there are also many horrid neologisms, jargon words and various other junk many editors are so very fond of using). So please change the default to be "Plain list" the version that does not add yet another spelling error that editors have to pretend not to see. I've been doing this already, I've only had one person actually complain about my wanting less to see spelling mistakes, but one was too many so I'm now making a formal request to make the default be the version that does not annoy the spell checker. -- 109.77.17.179 (talk) 01:39, 22 April 2014 (UTC)
The markup:
((Plainlist|
# foo
# bar
# bas
))
renders as:
The numbers should not show. Can somone fix this, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:55, 2 June 2014 (UTC)
<ol>
? — Edokter (talk) — 21:22, 2 June 2014 (UTC)
Why is it "plainlist" and not "plain list"? Why is it "unbulleted list" and not "unbulletedlist"?
My preference is for spaces but these should be all be named consistently. -- 109.76.86.206 (talk) 02:56, 22 November 2014 (UTC)
((plain list))
works; it is set up as a redirect to ((plainlist))
. --Redrose64 (talk) 10:52, 22 November 2014 (UTC)
I didn't say there was anything objectively wrong with using "plainlist" but you asserted it was "correct" and that it was somehow wrong to use "Plain list"- You arbitrarily changed the spelling in an article to suit your personal preference, which was not the correct spelling for the template name. We don't do that. If everybody edited according to their personal preferences there would be chaos.
as it doesn't get flagged yet another as a spelling mistake- Personally, I've never had that problem in the 12 years that I've been editing so I don't understand why you are. --AussieLegend (✉) 22:01, 2 April 2018 (UTC)
@Edokter: I added the bit about starting this template on a new line because it doesn't work when indented. Clearly the correct solution is to use the indent=
parameter, but I thought it was worth explaining why this doesn't work:
:((plainlist| * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] ))
See:
Mark Hurd (talk) 11:51, 24 December 2014 (UTC)
-- [[User:Edokter]] ((talk))
12:42, 24 December 2014 (UTC)Hi. Is it possible to leave an empty line or additional white space between items in a list using this template? I want to use the plainlist template in the infobox of an organization to display their motto in 2 different languages, but when I do, the words in the 2 mottos look like they're running together making them difficult to read. If I use <br /> then they are spaced in a way that makes them much easier to read but I'm trying to avoid using line breaks in infoboxes. Any suggestions? Thank you in advance. Rystheguy (talk) 16:43, 25 March 2015 (UTC)
Hello, I notice there is only one oprning <div>, but two closing </div>s... is that intended? 37.152.251.226 (talk) 21:24, 25 June 2016 (UTC)
(({1))}
is present so it closes itself. -- [[User:Edokter]] ((talk))
21:38, 25 June 2016 (UTC)
-- [[User:Edokter]] ((talk))
07:07, 26 June 2016 (UTC)Hello. I would like to know why this template and ((Unbulleted list)) formats incorrectly with printable versions. For example, the printable version of Barack Obama shows his parents and alma maters indented, whereas with the non-printable version there isn't any indentation. Is there any way to fix this? Thanks.--Nevé–selbert 22:15, 21 October 2016 (UTC)
@Redrose64 and EEng: Sorry to bother (again), but do you know anything about this?--Nevé–selbert 08:43, 22 October 2016 (UTC)
I recently tried to use plainlist to match a set of group references at Jacques Cousteau #Legend. There is a mismatch between the indent used for the footnotes and the indent produced by plainlist. So I experimented in the sandbox and found that a better match occurred when 1.8em was used as the unit for indents, rather than the 1.6em supplied by plainlist. That set me wondering just where the 1.6em comes from, and where it is actually used? Was this just a guess at the size of a "standard" indent, or is it actually accurate for some indents?
No [A] | Year (Fr/En) [B] | French | English [C] | Cousteau Film |
---|
No [A] | Year (Fr/En) [B] | French | English [C] | Cousteau Film |
---|
I can work around the misalignment in Jacques Cousteau #Legend by using |indent=1.2
so it's not a big deal (although the documentation could mention that non-integer indent sizes are usable), but I wondered whether we might be better off just increasing the "standard indent" used here, if it doesn't actually match any real indents. Thoughts? --RexxS (talk) 23:38, 23 December 2017 (UTC)
1.2 * 1.6em = 1.92em
and I think that aligns exactly in all the browsers I have.![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Looks to me like there is a stray </div>
following the <noinclude>
... Anomalocaris (talk) 22:40, 1 January 2018 (UTC)
</div>
is for when |1=
is empty, which means it should be followed by ((endplainlist))
(</div>
). — JJMC89 (T·C) 22:58, 1 January 2018 (UTC)I mostly use this template inside infoboxes. When I do so, I typically put the terminating brackets on the same line as the last entrant. I've seen many edits where the inexperienced (and possibly vandalistic) editor will see the double-brackets on its own line and carelessly treat it as the end of an infobox, and I've not seen that happen when the )) accompany the last list item. I've recenly encountered several IP editors who insist on putting the brackets on their own line because the examples here show that. Are there any reasons we can't include an explanatory line at template:plainlist/doc to explain the harmlessness and potential helpfulness of my habit? Thanks, all. — Fourthords | =Λ= | 17:23, 22 July 2021 (UTC)
it doesn't make a scrap of difference whether there is a newline before the closing double brace […] or not.— Fourthords | =Λ= | 19:11, 23 July 2021 (UTC)
So just discovered centered lists can't be done with ((plainlist))
in tables because there's no way to set the CSS for the <ul>
element generated by ((plainlist))
and the CSS for <ul>
and <ol>
elements is explicitly set in the "wikitable" class to be left aligned (why, I do not know):
.wikitable td ul,.wikitable td ol,.wikitable td dl { text-align: left
As a result, setting style="text-align:center;"
for the <ul>
or <ol>
elements is necessary to have a list render its <li>
elements centered in a cell in a table of class "wikitable" (which is most tables in Wikipedia). You can do this with ((ubl))
already:
((ubl|list_style=text-align:center;|item 1|item 2|item 3))
in a table cell renders as:
Header 1 | Header 2 wide | Header 3 |
---|---|---|
cell 1 |
|
cell 3 |
but there's no equivalent way to set the style of the <ul>
element using the ((plainlist))
template:
((plainlist|list_style=text-align:center;| * item 1 * item 2 * item 3 ))
in a table cell renders as:
Header 1 | Header 2 wide | Header 3 |
---|---|---|
cell 1 |
|
cell 3 |
and setting the |style=
parameter in ((plainlist))
does nothing (since it is passed to the containing <div>
and not the <ul>
element:
((plainlist|style=text-align:center;| * item 1 * item 2 * item 3 ))
renders as:
Header 1 | Header 2 wide | Header 3 |
---|---|---|
cell 1 |
|
cell 3 |
So since in the documentation we describe ((plainlist))
and ((ubl))
as pretty much equivalent other than how you format the list elements (separating elements using *
and newlines vs. |
), I was hoping someone could add support in ((plainlist))
for all of ((ubl))
parameters, namely:
|class = class |style = style |list_style = style for ul tag |item_style = style for all li tags |item1_style = style for first li tag |item2_style = style for second li tag |...
I would attempt to do so myself but a) I don't have template editor privileges, b) I'm not familiar with Lua, and c) I am definitely not experienced enough to be comfortable editing a template that's used on ~1% of all pages. 😅 —Joeyconnick (talk) 19:58, 25 June 2023 (UTC)