Template talk:Portal

Latest comment: 1 month ago by Ioaxxere in topic Edit request: HTML output

Image edit request on 3 May 2024

edit

Add

["african cinema"] = "Africa-map-TAN.svg|link=|alt=map"

to Module:Portal/images/a to show up as the portal's icon in the WikiProject's banner and template. Assem Khidhr (talk) 01:20, 3 May 2024 (UTC)Reply

  Done, except icon requires a link because it is CC licensed. — hike395 (talk) 11:42, 3 May 2024 (UTC)Reply

Image edit request on 4 May 2024

edit

Please add the following: ["washington, d.c."] = "Flag_of_Washington,_D.C.svg|link=|alt=", Thanks! '''[[User:CanonNi]]''' (talk|contribs) 07:55, 4 May 2024 (UTC)Reply

  Completed. P.I. Ellsworth , ed. put'er there 08:53, 4 May 2024 (UTC)Reply

Template-protected edit request on 9 May 2024

edit

Please change the icon for Portal:Psychiatry from File:American Lady Against The Sky.jpg to File:Psi and Caduceus.svg. Jeaucques Quœure (talk) 06:03, 9 May 2024 (UTC)Reply

  Donehike395 (talk) 08:46, 9 May 2024 (UTC)Reply

Template-protected edit request on 30 July 2024

edit

["risk"] = "Warning icon.svg|link=|alt=icon",
Add the above line to Module:Portal/images/r for use on {{User WP Risk}}. Tule-hog (talk) 19:31, 30 July 2024 (UTC)Reply

  Done Sohom (talk) 20:13, 30 July 2024 (UTC)Reply

Urgent: Please fix this template for printed content Module:Portal/styles.css.

edit
  Moved from Module talk:Portal

Firstly, apologies for writing in English if this is not your first language (this is an automated message).

This template has been detected as one of 436 pages using styles that break the page when printed when the user is using dark mode. The fix is very straightforward - all your styles relating to dark mode must be scoped to. Since there is a high risk of this templates being copied to other wikis it is important this notice is acted on ASAP.

To fix this:

  1. Update `@media (prefers-color-scheme: dark` to `@media screen and (prefers-color-scheme: dark`
  2. Wrap any styles relating to `html.skin-theme-clientpref-night` in `@media screen`

If this message has not been acted on in 7 days, this will be fixed by an automated script. Thank you for your help fixing this important issue.

For any questions feel free to ask them at phab:T369874.

Jon (WMF) (talk) 18:22, 2 August 2024 (UTC) on behalf of the web team.Reply

Fixed, and a typo. Izno (talk) 22:13, 3 August 2024 (UTC)Reply

Image edit request on 25 August 2024

edit

Hello everyone: can someone please set the portal icon for Portal:Peace? I propose PeaceAndLoveBus.svg which well encapsulates activism, nonviolent resistance, and historical demonstrations which is a primary feature of the category; or the more generic Peace dove icon.svg or Peace button.svg. Thank you very much. Evedawn99 (talk) 20:29, 25 August 2024 (UTC)Reply

I have implemented the dove because it is vectorized and works in dark mode..... that said if this is not ideal a discussion could take place if a change warranted or wanted. Moxy🍁 01:51, 26 August 2024 (UTC)Reply
edit

In Module:Portal/images/other, some decade portals have

|link=

included, and some do not. The list of decade portals that have this property are:

  • 1920s
  • 1930s
  • 1940s
  • 1950s
  • 1960s
  • 2000s
  • 2020s (in some other file)

The list of decade portals that do not have this property are:

  • 1970s
  • 1980s
  • 1990s
  • 2010s

The effect of including the link parameter or not is that the picture associated with the portal becomes a link to the File: page on Wikipedia of that image if it is not included, or it becomes just a static image with no link if the link parameter is explicitly set as an empty string. The inconsistency is apparently unintentional, as these specific decade portals are commonly linked together on many pages, such as at Zillennials#See_also, leading to inconsistent behaviour of Portal images in the same Portals box.

A decision should be made whether or not it is ever desirable to link to the File namespace (maybe desirable, but it seems that perhaps sometimes the decision has been made to intentionally not link to it). In either case, a change should be made that the link parameter be included or omitted consistently in the definitions of these specific decade portals.

However, this issue may alternatively be handled at the top Module:Portal level, if it is determined appropriate to never link to File namespace by default. It could be done to implement the same behaviour as link=[nothing] if the parameter is not included. This would reduce the risk of editors forgetting to include the parameter, handling it properly by default, if Portal images are never intended to link to File namespace. Thanks, Hubcapp (talk) 08:23, 18 September 2024 (UTC)Reply

Edit request 1 October 2024

edit

The use of "File:" in Module:Portal/images/b has broken the icon file link in every instance of every template that calls for that icon, because that's implied already and it's accordingly trying to load File:File:Dharma Wheel (2).svg, which does not exist and never will. Please remove the "File:" from the module. - Sumanuil. (talk to me) 04:44, 1 October 2024 (UTC)Reply

  Fixed --- removed "File:" from Module:Portal/images/bhike395 (talk) 09:48, 1 October 2024 (UTC)Reply

Edit request: HTML output

edit

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)Reply