This is the talk page for discussing improvements to the Portal template. |
|
Archives: Index, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10Auto-archiving period: 9 months ![]() |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||
|
![]() | Template:Portal is permanently protected from editing because 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. |
Could this template be wrapped in a <div>? Using <ul> for a self-contained box of this sort is an abuse of semantic HTML. Other templates similar to this one tend to use <div> or <table> elements (although I don't recommend the latter in this case). I noticed this issue when some code I wrote to extract the "text content" of a Wikipedia article was failing to filter out this template. Ioaxxere (talk) 04:11, 2 October 2024 (UTC)
![]() | This edit request to Module:Portal/images/t has been answered. Set the |answered= parameter to no to reactivate your request. |
Hi, File:EF4DaltonMNtornadoJuly2020.png was deleted from commons 3 December 2024 and now causing 100+ file errors in articles. A possible alternate is file:F5 tornado Elie Manitoba 2007.jpg as currently used on Tornado. Regards KylieTastic (talk) 19:31, 3 December 2024 (UTC)
Several portals do not exist and need removal, including the African diaspora portal and the Yoruba portal. Ukabia - talk 17:11, 11 December 2024 (UTC)
Hello, can you add an icon image to my newly created Portal:2020s? The existing portal box still uses the old icon image.
Ibrahim Muizzuddin 💬 15:18, 24 December 2024 (UTC)
![]() | This edit request to Module:Portal/images/s has been answered. Set the |answered= parameter to no to reactivate your request. |
Please change the icon for Portal:Seoul from File:Flag of Seoul cropped.gif to File:Flag of Seoul.svg. --Namoroka (talk) 10:40, 29 December 2024 (UTC)
{{Edit template-protected}}
template. —andrybak (talk) 13:19, 5 January 2025 (UTC)Greetings and felicitations. Would someone please be so kind as to modify the template so that when it is positioned on the left the rest of the content in the section is below it as with the {{subst:Commons}} template, rather than having the content start next to the Portal template box? See USNS_Yukon_(T-AO-202)#External_links for an example. (I am in desktop mode; more information upon request.) —DocWatson42 (talk) 11:19, 31 December 2024 (UTC)
|left=
. I'll investigate to make sure we don't break those with any change in the behavior.![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
.portalleft
that set clear: left
and float: left
|left=yes
back to the pre-2022 behavior.@Pppery: who offered to review edits for this module. — hike395 (talk) 17:41, 1 January 2025 (UTC)
![]() | This edit request to Module:Portal/images/p has been answered. Set the |answered= parameter to no to reactivate your request. |
I request to change
["paleontology"] = "Allosaurus Jardin des Plantes.png|link=|alt=icon",
to
["paleontology"] = "Pleuroceras ammonite with no background.png|link=|alt=icon",
Reason: We just discussed at the WikiProject Palaeontology that the current image is inappropriate and has to be changed. The image page has a warning template marking it as "inaccurate" and saying that it should only be used to illustrate "obsolete paleontological views". It is also very difficult to see at small thumb size. Our proposed replacement image, which has just been prepared by user:FunkMonk, instead shows an iconic paleontological fossil that is easily recognisable. Thank you. --Jens Lallensack (talk) 01:39, 17 January 2025 (UTC) Jens Lallensack (talk) 01:39, 17 January 2025 (UTC)
![]() | This edit request to Module:Portal/images/s has been answered. Set the |answered= parameter to no to reactivate your request. |
The file File:Marquette, Kansas EF4 tornado on April 14, 2012.png, formerly used as the icon for the Severe weather portal, has been deleted from Commons. Could someone do something about that? Sumanuil. (talk to me) 06:02, 5 February 2025 (UTC)
![]() | This edit request to Module:Portal/images/p has been answered. Set the |answered= parameter to no to reactivate your request. |
File:A coloured voting box with South Korea gorvernment emblem.svg|thumb|A yellow coloured voting box with South Korea government emblem.
May i add this image?
it used at Politics of South Korea portal]]
["politics of south korea"] = "A coloured voting box with South Korea gorvernment emblem.svg|link=|alt=icon"
Whatback11 (talk) 10:07, 6 May 2025 (UTC)
{{Edit template-protected}}
template. P.I. Ellsworth , ed. put'er there 18:36, 6 May 2025 (UTC)When viewing Template:Education in the U.S., there is a black icon for the Education portal, which in dark mode is very hard to see on a dark grey background. Normally I'd just set "class=skin-invert-image" on the image, which would make it white when viewed in dark mode, but I don't see a way to do that with the portal template system. Perhaps images that need this should be set in the image database and the module should handle that? -- Beland (talk) 18:56, 21 May 2025 (UTC)
![]() | This edit request to Module:Portal has been answered. Set the |answered= parameter to no to reactivate your request. |
Action requested: Please copy Module:Portal/sandbox to Module:Portal
Description of suggested change:
Currently, portal icons are not responsive to dark mode, which is a serious problem for portals like Education portal.
A good way to fix this is to allow editors to add class=skin-invert-image
to the filespec in Module:Portal/images (see, e.g., [2]). However, the current code in Module:Portal interferes with this, because it appends class=noviewer
to the filespec which overrides any class specified in Module:Portal/images.
The fix is contained in the new function noviewer(), which examines the filespec. If there is already a class specified, it adds "noviewer" to the list of classes. Otherwise, it just appends class=skin-invert-image
. I added this to both p._portal() and p._demo().
In addition, I decided to centralize the handling of image classes here in Module:Portal. Thus, I added noviewer() to p._image(), and will edit Module:Portal-inline and Module:Portal bar appropriately if this change gets approved.
The change is tested in Template:Portal/testcases and Template:Portal image/testcases, where the behavior is as-expected.
Pinging @Pppery for their attention. Thanks for considering!
Diff: compare Module:Portal to Module:Portal/sandbox — hike395 (talk) 15:11, 24 May 2025 (UTC)
Lua error in Module:Portal at line 211: assign to undeclared variable 'hasClass'.
) in articles, including Chinese characters and Rodrigo Duterte (these are just some of the pages I looked at). I have no thoughts on the change itself, but I've undone the it pending a fix, since this is a very high-profile module. Feel free to reinstate it once the issue is solved. Thanks, Giraffer (talk) 17:57, 24 May 2025 (UTC)