Template talk:WikiProject Physics

This template can be used to add articles to Version 1.0 Editorial Team/Physics articles by quality, a list automatically created by Oleg Alexandrov's WP 1.0 bot.

Template cleanup
just made some modifications to this template, which I have reverted because they broke some of the functionality - see for an example of what's broken. I haven't got the time to do much on the template right now, but when I have I'll try to incorporate some of Centrx's changes into the current version of the template in a non-broken way. I know that there are problems with this template causing excess whitespace - I will admit that I'm fairly new to complex templates, so if anyone can spot what's causing this whitespace please could you fix it (as long as you don't break the template at the same time...) Thanks. Mike Peel 07:51, 23 September 2006 (UTC)
 * Yes, aside from the whitespace issue, the template needs to be shorter (tighter) because it is used atop talk pages that are already really crowded. See Template:Chemistry for an example. It may not seem like a big deal, but I have been doing this for most all talk page headers and it really does save a lot of space in sum, and it also looks much nicer. The changes I was making here now were just trying to fix the whitespace issue, which remains a mystery. —Centrx→talk &bull; 07:59, 23 September 2006 (UTC)

The template's been following the style of Template:WPBiography thus far. I'll do my best to shrink it when I get the time. Mike Peel 08:06, 23 September 2006 (UTC)
 * That template has the same problem, but it is even harder to fix because the template is very complicated—which would be another reason not to follow it. —Centrx→talk &bull; 16:49, 23 September 2006 (UTC)

I've now put together an updated version, which takes up a little less space. See User:Mike_Peel/template for an example of how it looks on normal pages - the talk page shows an in-use example. User:Mike_Peel/test shows the template in use in a few more configurations. Note that the longest version is on the talk page of the test page, but most of that should only be temporary content anyway. The whitespace problems should also be fixed. Are there any other modifications that you would suggest, or am I OK to make the updated version live? Mike Peel 21:31, 23 September 2006 (UTC)
 * This isn't a high-use template (that is, high enough that it frequent changes would be a burden on the server) so you can just make changes right on the template. I think it looks great. —Centrx→talk &bull; 22:06, 23 September 2006 (UTC)
 * I used to do that, but I found that I tended to break the template a lot while making modifications. Hence the alternative location, to keep from breaking a few hundred talk pages. I'll move it over to this page shortly. Mike Peel 06:27, 24 September 2006 (UTC)

Way to big
This template is way to big, someone should design a new one that is more compact. --Sadi Carnot 11:15, 22 January 2007 (UTC)
 * it's not as big as PeruProjectBanner -- Andersmusician  $  20:34, 19 June 2007 (UTC)

Could it be possible to add this to the banner code?
But perhaps it should be this code (or something similar):

This would allow the categorization of physics article according to both importance and quality ratings. Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 15:26, 18 June 2008 (UTC)

And this code too
This is now superceded by the section below

To handle featured lists, could it be possible to change this section of code?

to

As well as this section of code

to

Removing template physics from the template page
It's already on the talk page where it belongs.

Rewriting the banner code
I'm no programmer, but I think this code would be better:

{{hidden |headercss=background:#00FF26; border:1px 1px solid #000000; |contentcss=border:1px 1px solid #000000;|header=Proposed code |content=

Portal This {{#switch: |NA|Na|na=page |CAT|Cat|cat|Category|category=category |#default=article }} is within the scope of WikiProject Physics, which collaborates on articles related to physics. {{#switch:{{{class|}}} |NA|Na|na |CAT|Cat|cat|Category|category= |#default= {{!}} This article has been rated as {{{class}}}-Class on the assessment scale. |= {{!}} {{-Class}} {{!}} This article has not yet received a rating on the assessment scale. [FAQ] }} {{#switch: |NA|Na|na |CAT|Cat|cat|Category|category= |#default= {{!}} {{{{{importance}}}-importance}} {{!}} This article is on a subject of {{{importance}}} importance within physics. |= {{!}} {{-importance}} {{!}} This article has not yet received an importance rating within physics. }} {{#ifeq:{{{attention|}}}|yes| {{!}} {{!}} This {{#ifeq:{{{class|}}}|NA|Na|na|non-article page|article}} has been marked as needing urgent attention. {{!}}- }} {{#ifeq:|yes| {{!}} {{!}} An appropriate Infobox templates{{!}}infobox needs to be added to this article, or the current infobox needs to be updated. Once this has been done, please remove {{Template:Physics{{!}}Physics}}'s infobox=yes parameter from this talk page. {{!}}- }}
 * {{{{{class}}}-Class}}

{{#switch: {{{class|}}} {{!}}colspan="2" align="left" style="font-size: 80%;" {{!}} Help with this template {{#ifexist:{{FULLPAGENAME}}/Comments| Comments:  [{{fullurl:{{FULLPAGENAME}}/Comments|action=edit}} edit] – [{{fullurl:{{FULLPAGENAME}}/Comments|action=history}} history] – [{{fullurl:{{FULLPAGENAME}}/Comments|action=watch}} watch] – [{{fullurl:{{FULLPAGENAME}}|action=purge}} refresh]
 * FA|Fa|fa|FL|Fl|fl|A|a|GA|Ga|ga|B|b|Start|start|Stub|stub|List|list|Template|template|Temp|temp=

{{{{FULLPAGENAME}}/Comments}}

{{#ifeq: {{{class|}}}| | Please rate this article, and then leave comments to explain the ratings and/or to identify its strengths and weaknesses. | This article has been rated but has no comments. If appropriate, please review the article and leave comments {{FULLPAGENAME}}/Comments{{!}}here to identify the strengths and weaknesses of the article and what work it will need. }} }} }}

{{#switch:{{{class|}}} |FA|Fa|fa= |FL|Fl|fl= |A|a= |GA|ga= |B|b= |Start|start= |Stub|stub= {{#ifeq: |yes| {{Stubclass |List|list= |Template|template|Temp|temp= }} }} |Dab|dab= |Cat|cat= |NA|Na|na= |#default= }} {{#switch:{{{importance|}}} |Top|top= |High|high= |Mid|mid= |Low|low= |NA|Na|na= |#default= }} {{#ifeq:{{{needs-infobox|}}}|yes|}}
 * }
 * assessment=Wikipedia:Version 1.0 Editorial Team/Assessment|assessment scale
 * project=Wikipedia:WikiProject Physics{{!}}WikiProject Physics
 * template=Physics
 * category=Automatically assessed physics articles
 * remove='s auto=yes parameter

}}

Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 16:14, 18 June 2008 (UTC)
 * 1) Handles a wider array of input
 * 2) Handles list class
 * 3) Handles featured list class
 * 4) Category and Template class stop being "unassessed"

Note that I'm not a programmer, so it would be a good idea to have someone review the code.Headbomb {ταλκ – WP Physics: PotW} 15:56, 20 June 2008 (UTC)


 * Code diff looks fine at a glance, so I've implemented it. If there are any problems, I can revert or fix the changes. { { Nihiltres | talk|log } } 17:33, 20 June 2008 (UTC)


 * The documentation needs to be updated to indicate what classes are now allowed. I don't see anywhere where "template" is identified unambiguously as a valid class.--Srleffler (talk) 00:03, 21 June 2008 (UTC)

Fixing some minor things

 * ✅ Cheers, PeterSymonds (talk)  09:55, 24 June 2008 (UTC)

Category and category not fully recognised
Replace this (after the "End of comments" section:

With this:

and remove the first three instances of :

Headbomb {ταλκ – WP Physics: PotW}

Autorating of importance
Replace this section of code (towards the end)

with

Headbomb {ταλκ – WP Physics: PotW} 15:29, 21 June 2008 (UTC)

Editprotected
editprotected

I need to do a similar update than what I did for WPAstronomy.Headbomb {ταλκ – WP Physics: PotW} 16:15, 8 July 2008 (UTC)
 * If you can drop your changes into a sandbox of mine at User:Lifebaka/Sandbox/Tl Physics, I'd be happy to update it for you. But without a suggested change, I'm not sure something will happen here.  Cheers.  --lifebaka (Talk - Contribs) 21:13, 8 July 2008 (UTC)
 * It's down to semi for as long as you need. Ping me when you're done so I can put it back up.  Cheers.  --lifebaka (Talk - Contribs) 21:28, 8 July 2008 (UTC)


 * Thanks a bunch!

Banner is generating superfluos space above/below
For some reason, the template adds unnecessary blank space before and after the template. This screws up the formatting when more then one project banner is present. There are probably some extra breaks in the code. Somebody more familiar with the code should check it out. (TimothyRias (talk) 10:03, 9 July 2008 (UTC))


 * I'll take a look at it. I've not tested multiple banners on one page. Can you link to an example? Headbomb {ταλκ – WP Physics: PotW} 11:47, 9 July 2008 (UTC)


 * I removed some whitespace. Is it better now? Headbomb {ταλκ – WP Physics: PotW} 11:54, 9 July 2008 (UTC)


 * Problem is fixed as far as I can tell. Headbomb {ταλκ – WP Physics: PotW} 13:04, 9 July 2008 (UTC)


 * It seems to be fixed now. I'll let you know if I find problems again. (TimothyRias (talk) 08:25, 10 July 2008 (UTC))

Cats and Temps categories not working
Please replace |Category|category|CAT|Cat|cat| |Template|template|TEMP|Temp|temp|

by

|Category|category|CAT|Cat|cat= |Template|template|TEMP|Temp|temp=

Thanks. Headbomb {ταλκ – WP Physics: PotW} 06:06, 12 July 2008 (UTC)

I also have some modifications for categorizations that are a hassle to details. If you could please semi-protect the page for a day, it would allow me to make the changes. Headbomb {ταλκ – WP Physics: PotW} 06:06, 12 July 2008 (UTC)


 * [[Image:Yes check.svg|20px]] Y Both done. { { Nihiltres | talk|log } } 15:24, 12 July 2008 (UTC)

Physics template and TOC
At Talk:Lift (force) the use of this template seems to be the cause for the "table of contents" (TOC) not showing up. -- Crowsnest (talk) 00:46, 10 October 2008 (UTC)


 * The problem has to do with the Talk:Lift (force)/Comments page existing and being transcluded. The TOC is availible in the blue bar. I'm not quite sure how to circumvent this. Try asking at the village pump. Headbomb {ταλκ – WP Physics: PotW} 07:07, 10 October 2008 (UTC)


 * I removed all section headings from Talk:Lift (force)/Comments, and that solves the problem (with respect to the TOC) on this page (Talk:Lift (force)) for the moment. -- Crowsnest (talk) 07:38, 10 October 2008 (UTC)


 * There is also something on this in . But before I removed the section heads I experimented with including in  Talk:Lift (force). That did not work (maybe caused by the "reflist" tag in the Comments subpage?), as far as I remember and I only saw that using the preview (so no "hard" evidence). -- Crowsnest (talk) 08:10, 10 October 2008 (UTC)


 * I moved the text from Talk:Lift (force)/Comments to Talk:Lift (force), since it did not belong there anyway. Thanks for helping and pointing to the source of the problem! -- Crowsnest (talk) 07:57, 10 October 2008 (UTC)

Metabanner problems
Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 20:57, 11 November 2008 (UTC)
 * Whenever the template is placed within WikiProjectBanners, the article isn't tagged with the custom categories don't show up.


 * At second glance, that's not the problem. However, there is a problem with it as some tagged and fully assessed articles are listed as ???-importance. See WikiProject Physics/Assessment categories and click on any ???-importance categories.Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 00:10, 12 November 2008 (UTC)
 * It appears to be articles that have been assessed with an Uppercase letter at the start of "low - mid - high - top", etc. I tested one by converting to lowercase and worked fine. The code on this banner just needs to be updated to allow case sensitivity. —Borgardetalk 04:34, 12 November 2008 (UTC)


 * TimothyRias seems to have fixed this. Now it's just a matter of waiting a few days.Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 19:26, 12 November 2008 (UTC)

Quality-Importance intersection
I just found out that the WPBannerMeta template has a hook for creating the quality-importance intersection categories. Adding the following lines should yield the same result as the current custom code in our template.

|class = {{{class|}}} |importance = {{{importance|}}} |category = {{{category|¬}}} |ASSESSMENT_CAT = physics articles |BANNER_NAME = Template:Physics |FULL_QUALITY_SCALE = yes
 * HOOK_ASSESS = {{WPBannerMeta/hooks/qualimpintersect

Doing this would clean up this template and keep the core maintenance central. What do other people say? (And also can somebody double check that this is the correct code?) (TimothyRias (talk) 09:11, 15 April 2009 (UTC))


 * If this achieves the same thing as it does now, I got no problem with it. I could take a look at the code to see if its equivalent, but I don't have time right now. If one of the folks from the Metabanner says making the switch won't freeze hell over, then I have no problem with it.Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 04:56, 16 April 2009 (UTC)

5 or 6 criteria for B-class
The link on the template links to a page which lists 6 criteria, however, the template itself appears only to support 5. __meco (talk) 14:26, 26 April 2009 (UTC)
 * At the moment this template doesn't support B class criteria at all. (TimothyRias (talk) 09:43, 28 April 2009 (UTC))


 * My apology. I think I must have posted to the wrong page. __meco (talk) 13:19, 28 April 2009 (UTC)

Quality scale
At present, the template links to WikiProject Physics/Quality Control, a section of that page that doesn't exist. Should this link be changed to point somewhere else, say a more generic quality scale? Can this link be changed easily, since the banner is generated through WPBannerMeta? Or should the "Quality scale" section be created in the WikiProject Physics/Quality Control page? I'm afraid this isn't my area of expertise. -David Schaich Talk/Cont 16:33, 27 July 2009 (UTC)
 * Good point. I don't think it is possible to control the importance and quality links separately. So, it would be best to actual create that section and made just transclude the WP1.0 scale there. (TimothyRias (talk) 17:06, 27 July 2009 (UTC))

Comments section
The link to the /Comments page from this template seems to be causing some new users to leave comments about improving the article on the /Comments page. Could that subpage be phased out to avoid this confusion? All messages currently on Comment pages could be moved to article talk pages, including rating rationales. Pecos Joe (talk) 21:14, 4 September 2009 (UTC)

ro.WikiProject Physics
Please Insert in Template:WikiProject Physics a interwiki: ro:Format:Proiect Fizică (Terraflorin (talk) 07:54, 4 May 2012 (UTC)).

Edit request on 16 July 2013
Please remove the following lines: |AUTO_ASSESS_CAT    = Automatically assessed physics articles Following this CfD, the category "Automatically assessed physics articles" (among many others) was deleted. This caused the complaint now appearing on this template's page that the category needs to be created for the banner to work correctly. Since bots are not currently used to assess WikiProject Physics articles, nor does future use seem likely (essentially all articles are already assessed, with new ones also continuously being assessed), the sensible thing to do seems to be to remove bot support from the template. Thank you.
 * auto=

786b6364 (talk) 14:52, 16 July 2013 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 15:20, 16 July 2013 (UTC)

Change photo requests to image requests
As part of a nearly-completed shift to distinguish requests for photos from requests for images in general, it is requested that this template be modified to place talk pages in "Wikipedia requested images of..." categories, rather than the old "Wikipedia requested photographs of..." categories. As such, please supplement all references to "photo(s) of..." and "photograph(s) of..." with "image(s) of..." in both the template and its documentation, while maintaining backwards compatibility for the old "photo" parameters. In particular, change "photograph or picture" to simply "image". Note that the "Wikipedia requested images of..." categories have already been created. Thank you! — s w p b T 19:18, 8 December 2015 (UTC)

PAGE''' ]]) 00:45, 17 December 2015 (UTC)
 * Mock-up in sandbox. — s w p b T 14:55, 9 December 2015 (UTC)
 * Red information icon with gradient background.svg Not done for now: per moratorium proposed at Category_talk:Wikipedia_requested_images_by_subject. Ahecht ([[User_talk:Ahecht|'''TALK

No definite articles for task forces?

 * Moved to Template talk:WPBannerMeta/hooks/taskforces/templatepage. — xaosflux  Talk 05:20, 24 December 2018 (UTC)

"Template:PHYSICS" listed at Redirects for discussion
An editor has asked for a discussion to address the redirect Template:PHYSICS. Please participate in the redirect discussion if you wish to do so. Magioladitis (talk) 08:02, 23 August 2019 (UTC)

Template-protected edit request on 26 August 2021
Please change: |IMAGE_LEFT           = BlackHole.jpg to |IMAGE_LEFT           = Black hole (NASA).jpg Same image, but moved on Commons. File:BlackHole.jpg → File:Black hole (NASA).jpg  (see sandbox: Template:WikiProject Physics/sandbox) -Christian75 (talk) 09:55, 26 August 2021 (UTC)
 * ✅ firefly  ( t · c ) 11:10, 26 August 2021 (UTC)

Collapsed option?
I noticed that if the Wikiproject physics is in a banner shell, it appears collapsed: But alone it does no seem to support collapsed, eg this fails:

Is there a simple way to enable the collapsed feature without the banner shell? Thanks Johnjbarton (talk) 15:58, 29 November 2023 (UTC)