Template talk:Plainlist
Add topic| This is the talk page for discussing improvements to the Plainlist template. |
|
| Archives: 1Auto-archiving period: 12 months |
| Template:Plainlist is indefinitely protected from editing as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
| Text 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 as long as the latter page exists. |
Class
[edit]Hello
I think there is a mistake in the code for the div class.
The code is presently div class="plainlist {{{class|}}}", but shouldn't it be div class="{{{class|plainlist}}}" ?
This is probably the reason for Joeyconnick's problems in the topic above.
Kind regards, Şÿℵדαχ₮ɘɼɾ๏ʁ 13:53, 19 May 2025 (UTC)
- Why would you want to override the
plainlistclass? It would defeat the purpose of this template. --Redrose64 🌹 (talk) 22:45, 19 May 2025 (UTC)
Edit request 23 December 2025
[edit]This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Description of suggested change: Please sync code from sandbox that adds the Module:check for unknown parameters.
Diff: (compare page here)
| − | ...
| + | ...
</div>}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using plainlist with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Plainlist]] with unknown parameter "_VALUE_"|ignoreblank=y| class | style | indent | 1 }}<noinclude></div>
.... |
Zackmann (Talk to me/What I been doing) 01:02, 23 December 2025 (UTC)
Indented nested lists
[edit]Would it be reasonable to allow for nested lists to be visually indented? Something like .plainlist li ol, .plainlist li ul { padding-left: 1em; } would do it, I think. Note, per bolding, this should target lists that are children of list items, not the other way around. — HTGS (talk) 07:16, 5 March 2026 (UTC)
- They already are indented. --Redrose64 🌹 (talk) 18:09, 5 March 2026 (UTC)
- Why am I not seeing that? Eg:
- Level 1
- Level 2
- Level 2
- Level 1
- Level 1
- Why am I not seeing that? Eg:
- — HTGS (talk) 09:03, 6 March 2026 (UTC)
- Oh, sorry, misunderstood. I just read
Would it be reasonable to allow for nested lists to be visually indented?
But how often is such nesting needed? --Redrose64 🌹 (talk) 11:16, 6 March 2026 (UTC)- Probably not often. And I don’t think it should be encouraged broadly, but I’ve been looking at some history sidebars like Template:History of Azerbaijan which use some absurd wikitext to get a pseudo list layout, obviously against accessibility guidelines. Perhaps even another class could be created for plain lists that allow nesting if we wanted to make sure nesting is deliberate and necessary? — HTGS (talk) 22:00, 6 March 2026 (UTC)
- this is actually something that I find myself needing quite a lot in infoboxes! Juwan 🕊️🌈 22:46, 13 March 2026 (UTC)
- Oh, sorry, misunderstood. I just read
- — HTGS (talk) 09:03, 6 March 2026 (UTC)
On list-style inheriting
[edit]the following piece of code may be the cause of a behaviour that has bugged me for some time. given a a table or div that has the text aligned in the center/right, the plainlist needs to manually be set to be centered (list_style=text-align: center;).
.plainlist ol,
.plainlist ul {
list-style: none;
}