| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Talking Watch, Talking Watches, Talking Clock, Talking Bible, Talking... independentliving.com | ARC - Advanced Radiotherapy Consulting - Physics, Medical Physics,... arcphysics.net |
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. [edit] Discussion[edit] Template cleanupCentrx (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)
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)
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)
[edit] Way to bigThis template is way to big, someone should design a new one that is more compact. --Sadi Carnot 11:15, 22 January 2007 (UTC)
[edit] Could it be possible to add this to the banner code? {{#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) [edit] And this code tooThis is now superceded by the section below
[edit] Removing template physics from the template pageIt's already on the talk page where it belongs. [edit] Rewriting the banner code{{editprotected}} I'm no programmer, but I think this code would be better: Proposed code {{DEFAULTSORT:{{{listas|{{PAGENAME}}}}}}}{| class="messagebox {{#ifeq:{{lc:{{{nested|}}}}} |yes |collapsible collapsed nested|{{#ifeq: {{lc:{{{small|}}}}} |yes |small|standard}}}}-talk" {{#ifeq:{{lc:{{{nested|}}}}}|yes| ! colspan="2" style="text-align: center" {{!}} [[Wikipedia:WikiProject Physics|WikiProject Physics]] {{#if:{{{class|}}} | (Rated {{ucfirst:{{{class}}}}}-Class)}} }} |- | valign="middle" | [[Image:2006-01-14 Surface waves-2.jpg|{{#ifeq:{{{small|}}}|yes|105px|55px}}|WikiProject Physics]] | style="text-align:center;font-style:italic;" | <div style="text-align: center; float:right; font-size:95%; background:#ffffff; border: solid 2px #0047AB; margin:0em 0.2em 0em 0.2em; padding:0.4em 0.7em 0em 0.7em;"><imagemap> Image:BlackHole.jpg|32x32px|Portal:Physics default [[Portal:Physics]] desc none</imagemap><small>[[Portal:Physics|Portal]]</small></div> This {{#switch:{{{class|}}} |NA|Na|na=page |CAT|Cat|cat|Category|category=category |#default=article }} is within the scope of '''''[[Wikipedia:WikiProject Physics|WikiProject Physics]]''''', which collaborates on articles related to [[physics]]. |- {{#switch:{{{class|}}} |NA|Na|na |CAT|Cat|cat|Category|category= <!-- do nothing --> |#default= {{!}} {{{{{class}}}-Class}} {{!}} This article has been rated as {{{class}}}-Class on the [[:Wikipedia:Version 1.0 Editorial Team/Assessment|assessment scale]]. |= {{!}} {{-Class}} {{!}} This article has not yet received a rating on the [[:Wikipedia:Version 1.0 Editorial Team/Assessment|assessment scale]]. <small>[[Wikipedia:WikiProject Council/Assessment FAQ|[FAQ]]]</small> }} |- {{#switch:{{{importance|}}} |NA|Na|na |CAT|Cat|cat|Category|category= <!-- do nothing --> |#default= {{!}} {{{{{importance}}}-importance}} {{!}} This article is on a subject of {{{importance}}} [[Wikipedia:WikiProject Physics/Projects of the Week#Importance Guidelines|importance]] within physics. |= {{!}} {{-importance}} {{!}} This article has not yet received an [[Wikipedia:WikiProject Physics/Projects of the Week#Importance Guidelines|importance rating]] within physics.</small> }} |- {{#ifeq:{{{attention|}}}|yes| {{!}} [[Image:Diamond-caution.png{{!}}30px{{!}}center]] {{!}} '''This {{#ifeq:{{{class|}}}|NA|Na|na|non-article page|article}} has been marked as needing urgent attention.''' [[Category:Physics articles needing attention]] {{!}}- }} {{#ifeq:{{{needs-infobox|}}}|yes| {{!}} [[Image:Icon tools.png{{!}}30px{{!}}Maintenance]] {{!}} ''An appropriate '''[[Wikipedia:Infobox templates{{!}}infobox]]''' needs to be added to this article, or the current infobox needs to be updated.''<br /> <small>Once this has been done, please remove {{[[Template:Physics{{!}}Physics]]}}'s infobox=yes parameter from this talk page.</small> {{!}}- }} <!------------------- start of article grading comments section -------------------> {{#switch: {{{class|}}} <!-- this detects articles, rated or unrated (NOTE: could do this with a NAMESPACE test) --> |FA|Fa|fa|FL|Fl|fl|A|a|GA|Ga|ga|B|b|Start|start|Stub|stub|List|list|Template|template|Temp|temp= {{!}}colspan="2" align="left" style="font-size: 80%;" {{!}} <small style="float:right">[[Template:Physics/usage|Help with this template]]</small> {{#ifexist:{{FULLPAGENAME}}/Comments|<!-- THEN: Comments exist --> <div class="NavFrame" style="padding:0; border: none;"> <div class="NavFrame" style="padding:0; border: none;"> <div class="NavHead" style="background: #F8EABA; text-align: left; padding: 0;">Comments:</div> <div class="NavContent" style="display: none; text-align: left; padding: 0; background: white; border: 1px solid #c0c090; padding: 5px; margin-top: 5px;"> [{{fullurl:{{FULLPAGENAME}}/Comments|action=edit}} edit] – [{{fullurl:{{FULLPAGENAME}}/Comments|action=history}} history] – [{{fullurl:{{FULLPAGENAME}}/Comments|action=watch}} watch] – [{{fullurl:{{FULLPAGENAME}}|action=purge}} refresh] {{{{FULLPAGENAME}}/Comments}} </div></div></div> [[Category:Physics articles with comments]] |<!-- ELSE: comments do not exist --> {{#ifeq: {{{class|}}}| |<!-- THEN: no comments AND no rating --> Please rate this article, and then [[{{FULLPAGENAME}}/Comments|leave comments]] to explain the ratings and/or to identify its strengths and weaknesses. |<!-- ELSE: no comments but has rating --> This article has been rated but has no comments. If appropriate, please review the article and leave comments [[{{FULLPAGENAME}}/Comments{{!}}here]] to <!--explain the ratings and/or to -->identify the strengths and weaknesses of the article and what work it will need. }}<!-- end if rating/no rating test --> }} }} <!------------------- end of comments section ----------------------------------------> |} <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]] {{#ifeq: {{{auto|}}} |yes| {{Stubclass |List|list=[[Category:List-Class physics articles]] |Template|template|Temp|temp=[[Category:Template-Class physics articles]] |assessment=Wikipedia:Version 1.0 Editorial Team/Assessment|assessment scale |project=Wikipedia:WikiProject Physics{{!}}WikiProject Physics |template=Physics |category=Automatically assessed physics articles |remove={{[[Template:Physics|Physics]]}}'s auto=yes parameter }} }} |Dab|dab=[[Category:Disambig-Class physics articles]] |Cat|cat=[[Category:Category-Class physics articles]] |NA|Na|na= |#default=[[Category:Unassessed physics articles]] }} {{#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 physics articles]] }} {{#ifeq:{{{needs-infobox|}}}|yes|[[Category:Physics articles needing infoboxes]]}}</includeonly><noinclude>{{pp-template|small=yes}} {{intricate template |importance=NA}} <!-- include documentation --> {{Documentation, template |importance=NA}} [[Category:Physics templates]] [[Category:WikiProject banners]] [[Category:Templates using ParserFunctions]] </noinclude>
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)
[edit] Fixing some minor things{{editprotected}}
[edit] Category and category not fully recognisedReplace 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} [edit] Autorating of importanceReplace 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) [edit] 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)
[edit] Banner is generating superfluos space above/belowFor 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))
[edit] Cats and Temps categories not working{{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) [edit] Physics template and TOCAt 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)
[edit] Metabanner problems
Headbomb {ταλκκοντριβς – WP Physics} 20:57, 11 November 2008 (UTC)
[edit] Quality-Importance intersectionI 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))
[edit] 5 or 6 criteria for B-classThe 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)
[edit] Quality scaleAt 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)
[edit] Comments sectionThe 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) | ||||||||||||
| ↑ top of page ↑ | about thumbshots |