Template talk:WikiProject Physics

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Physics (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Physics, a collaborative effort to improve the coverage of Physics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.
 

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

Discussion[edit]

Template cleanup[edit]

Centrx (talk · contribs) just made some modifications to this template, which I have reverted because they broke some of the functionality - see [1] 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. —Centrxtalk • 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. —Centrxtalk • 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. —Centrxtalk • 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[edit]

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?[edit]

{{#switch:{{lc:{{{class|}}}}}
 |na|disambig|dab|template|category|cat|list|redirect|redir|image|img|portal=
 |fa|fl|a|ga|b|stub|start={{#switch:{{lc:{{{importance|}}}}}
 |top|high|mid|low=[[Category:{{ucfirst:{{{class|}}}}}-Class Physics articles of {{ucfirst:{{{importance|}}}}}-importance|{{PAGENAME}}]][[Category:{{ucfirst:{{{importance|}}}}}-importance Physics articles|{{PAGENAME}}]]
 |#default=[[Category:{{ucfirst:{{{class|}}}}}-Class Physics articles of unknown-importance|{{PAGENAME}}]]
}}}}

But perhaps it should be this code (or something similar):

{{#switch:{{lc:{{{class|}}}}}
 |NA|Na|na|disambig|dab|Category|category|Cat|cat|redirect|redir|image|img|portal=
 |FA|fa|Fa|FL|fl|Fl|A|a|GA|ga|Ga|B|b|Stub|stub|Start|start|List|list|Template|template|Temp|temp={{#switch:{{lc:{{{importance|}}}}}
 |Top|top|High|high|Mid|mid|Low|low=[[Category:{{ucfirst:{{{class|}}}}}-Class Physics articles of {{ucfirst:{{{importance|}}}}}-importance|{{PAGENAME}}]][[Category:{{ucfirst:{{{importance|}}}}}-importance Physics articles|{{PAGENAME}}]]
 |#default=[[Category:{{ucfirst:{{{class|}}}}}-Class Physics articles of unknown-importance|{{PAGENAME}}]]
}}}}

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

And this code too[edit]

This is now superceded by the section below

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

<!------------------- start of article grading comments section ------------------->
{{#switch: {{{class|}}} <!-- this detects articles, rated or unrated (NOTE: could do this with a NAMESPACE test) -->
| GA | ga | Ga | FA | Fa | fa | A | a | B | b | Start | start | Stub | stub |=

to

<!------------------- start of article grading comments section ------------------->
{{#switch: {{{class|}}} <!-- this detects articles, rated or unrated (NOTE: could do this with a NAMESPACE test) -->
| GA | ga | Ga | FA | Fa | fa | FL | fl | Fl | A | a | B | b | Start | start | Stub | stub |=

As well as this section of code

<includeonly>{{#switch:{{{class|}}}
 |FA|fa|Fa=[[Category:FA-Class physics articles]]
 |A|a=[[Category:A-Class physics articles]]
 |GA|ga=[[Category:GA-Class physics articles]]
 |B|b=[[Category:B-Class physics articles]]
 |Start|start=[[Category:Start-Class physics articles]]
 |Stub|stub=[[Category:Stub-Class physics articles]]

to

<includeonly>{{#switch:{{{class|}}}
 |FA|fa|Fa=[[Category:FA-Class physics articles]]
 |FL|fl|Fl=[[Category:FL-Class physics articles]]
 |A|a=[[Category:A-Class physics articles]]
 |GA|ga=[[Category:GA-Class physics articles]]
 |B|b=[[Category:B-Class physics articles]]
 |Start|start=[[Category:Start-Class physics articles]]
 |Stub|stub=[[Category:Stub-Class physics articles]]

Removing template physics from the template page[edit]

It's already on the talk page where it belongs.

Rewriting the banner code[edit]

{{editprotected}}

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

  1. Handles a wider array of input
  2. Handles list class
  3. Handles featured list class
  4. Category and Template class stop being "unassessed"

Headbomb {ταλκκοντριβς – WP Physics} 16:14, 18 June 2008 (UTC)

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[edit]

{{editprotected}}

Yes check.svg Done Cheers, PeterSymonds (talk) 09:55, 24 June 2008 (UTC)

Category and category not fully recognised[edit]

Replace this (after the "End of comments" section:

 |Dab|dab=[[Category:Disambig-Class physics articles]]
 |Template|template|Temp|temp=[[Category:Template-Class physics articles]]
 |Cat|cat=[[Category:Category-Class physics articles]]
 |NA|Na|na=
 |#default=[[Category:Unassessed physics articles]]

With this:

 |DAB|Dab|dab=[[Category:Disambig-Class physics articles]]
 |Template|template|Temp|temp=[[Category:Template-Class physics articles]]
 |Category|category|Cat|cat=[[Category:Category-Class physics articles]]
 |NA|Na|na=
 |#default=[[Category:Unassessed physics articles]]

and remove the first three instances of :

 |CAT|Cat|cat|Category|category=category

Headbomb {ταλκWP Physics: PotW}

Autorating of importance[edit]

Replace this section of code (towards the end)

}} {{#switch:{{{importance|}}}
 |Top|top=[[Category:Top-importance physics articles]]
 |High|high=[[Category:High-importance physics articles]]
 |Mid|mid=[[Category:Mid-importance physics articles]]
 |Low|low=[[Category:Low-importance physics articles]]
 |NA|Na|na=
 }}

with

}} {{#switch:{{{importance|}}}
 |Top|top=[[Category:Top-importance physics articles]]
 |High|high=[[Category:High-importance physics articles]]
 |Mid|mid=[[Category:Mid-importance physics articles]]
 |Low|low=[[Category:Low-importance physics articles]]
 |NA|Na|na=
 |#default=[[Category:Unranked-importance physics articles]]
 }}

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

Editprotected[edit]

{{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!

[edit]

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[edit]

{{editprotected}}

Please replace

 |Category|category|CAT|Cat|cat|[[Category:Category-Class physics articles]] 
 |Template|template|TEMP|Temp|temp|[[Category:Template-Class physics articles]] 

by

 |Category|category|CAT|Cat|cat=[[Category:Category-Class physics articles]] 
 |Template|template|TEMP|Temp|temp=[[Category:Template-Class physics articles]] 

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)

Yes check.svgY Both done. {{Nihiltres|talk|log}} 15:24, 12 July 2008 (UTC)

Physics template and TOC[edit]

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 #Leave comments to explain the rating. But before I removed the section heads I experimented with including __TOC__ 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[edit]

  • Whenever the template is placed within {{WikiProjectBanners}}, the article isn't tagged with the custom categories don't show up.

Headbomb {ταλκκοντριβςWP Physics} 20:57, 11 November 2008 (UTC)

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 Wikipedia:WikiProject Physics/Assessment categories and click on any ???-importance categories.Headbomb {ταλκκοντριβς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 {ταλκκοντριβςWP Physics} 19:26, 12 November 2008 (UTC)

Quality-Importance intersection[edit]

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.

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

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 {ταλκκοντριβς – WP Physics} 04:56, 16 April 2009 (UTC)

5 or 6 criteria for B-class[edit]

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[edit]

At present, the template links to Wikipedia:WikiProject Physics/Quality Control#Quality scale, 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[edit]

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[edit]

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[edit]

Please remove the following lines:

|auto={{{WikiProject Automobiles|}}}
  |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. 786b6364 (talk) 14:52, 16 July 2013 (UTC)

Done --Redrose64 (talk) 15:20, 16 July 2013 (UTC)