Content deleted Content added
m MSGJ moved page Template talk:WPBannerMeta/Archive 7 to Module talk:WikiProject banner/Archive 7: discussion more relevant to module not the wrapper template |
m Maintain {{WPBS}}: 1 WikiProject template. (Fix Category:WikiProject banners with redundant class parameter) Tag: |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 13:
I see. (Let me try that with another template that's been listed for [[Wikipedia:WikiProject Red Link Recovery|Red Link Recovery]] – yes.) Thanks! —[[User:Paul A|Paul A]] ([[User talk:Paul A|talk]]) 08:46, 8 July 2009 (UTC)
<s>...but it doesn't seem to be the reason why [[Template:WikiProject Amateur radio]] is appearing on [[Special:WhatLinksHere/Suomen_Radioamatooriliitto]]. Any suggestions? —[[User:Paul A|Paul A]] ([[User talk:Paul A|talk]]) 09:01, 9 July 2009 (UTC)</s>
Line 23 ⟶ 21:
The hook {{tl|WPBannerMeta/hooks/priorityscale}} has a SHOW option, but I don't see what it does. I've set it to No, but I didn't see a change. Due to confusion regarding "importance", we're trying to transition to "priority", but would also like to hide the priority if no priority is defined. [[User:Morphh|<span style="color:green">Morphh</span>]] <sup>[[user talk:Morphh|<span style="color:chocolate">(talk)</span>]]</sup> <small><i>12:19, 09 July 2009 (UTC)</i></small>
:It's an internal parameter, which shouldn't have been exposed. I'm not sure why you'd want to hide the scale if it's not been set (it automatically hides itself on non-articles, but surely if no priority has been assigned, that's an issue that needs to be resolved?); but you can achieve it with something like this:
<syntaxhighlight lang="wikitext">
|HOOK_ASSESS = {{#if: {{WPBannerMeta/importance|{{{priority|}}}|{{{class|}}}}}
|{{WPBannerMeta/hooks/priorityscale
Line 34 ⟶ 32:
}}
}}
</syntaxhighlight>
:That will display the priority rating if one is set, or just add the category otherwise. Hope this helps, [[User:Happy-melon|<b style="color:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange;">melon</b>]] 12:36, 9 July 2009 (UTC)
:Thanks. I'm going to get clarification on what the project wants to do with the hiding as you make a very good point. Perhaps they want to hide it after it is assigned. Editors are getting into too many disputes over the "importance" of an article, so we're trying to make it more apparent that this is only a project priority. [[User:Morphh|<span style="color:green">Morphh</span>]] <sup>[[user talk:Morphh|<span style="color:chocolate">(talk)</span>]]</sup> <small><i>12:58, 09 July 2009 (UTC)</i></small>
== qualimpintersect ==
Line 46 ⟶ 45:
::Ok, this worked on the article itself, but for some reason none of the articles are updating the categories. For example, if you go to [[Talk:Economics]], which shows [[:Category:B-Class, Top-priority Economics articles]] at the bottom, but when you click it, it is not in that category. It's still in the [[:Category:B-Class, Top-importance Economics articles]]. I've waited approx 24 hours, thinking maybe a bot would move it, but nothing has changed. They only seem to move if someone edits the talk page of the article. [[User:Morphh|<span style="color:green">Morphh</span>]] <sup>[[user talk:Morphh|<span style="color:chocolate">(talk)</span>]]</sup> <small><i>11:58, 11 July 2009 (UTC)</i></small>
:::You'll just have to wait for the [[help:job queue|job queue]] to catch up. Yes, any edit to the page (including a [[wp:null edit|null edit]]) will force recategorisation. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:30, 11 July 2009 (UTC)
== Notes with no text ==
Line 64:
:Not quite sure what you mean. It's [[Template:WPBannerMeta/templatepage/qualheader]] which passes the square brackets to catmore1. Can you give an example of it not working? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:58, 23 July 2009 (UTC)
::Yes, when you click on a red-linked category, like: [[:Category:Travel and Tourism articles by quality]], then the following code displays, note the first line, it doesn't display the double "[" and "]" brackets after the pipe link:
<syntaxhighlight lang="wikitext">
{{catmore1|Wikipedia:WikiProject **PROJECT**}}
[[Category:WikiProject **PROJECT**]]
[[Category:Wikipedia 1.0 assessments]]
</syntaxhighlight>
::Is there a way to make it display like below, so the 'catmore' template will actually work and not just be a dead link that is in bold text? (I've seen many instances where editors just filled in the "Project" word & didn't realize it needed double brackets or else it would be a dead link):
<syntaxhighlight lang="wikitext">
{{catmore1|[[Wikipedia:WikiProject **PROJECT**]]}}<!-- NOTE THE DOUBLE '[' BRACKETS -->
</
::Another note, you need to click the red-linked T & T articles by quality cat from this page: [[Template:TourismProject/sandbox]] --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 08:23, 23 July 2009 (UTC)
:::That was an issue in [[Template:WPBannerMeta/templatepage/preloadmeta]]. Now {{fixed}} — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:28, 23 July 2009 (UTC)
::Thanks for fixing it! --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 19:40, 23 July 2009 (UTC)
== Customized comments ==
Line 81 ⟶ 82:
:I've added a note on the banner for it (example on [[Template:WikiProject Lithuania/testcases|/testcases]]). However you also have the subpage feature enabled - do you need this as well? .... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:24, 26 July 2009 (UTC)
::Great! Thank you. No, the subpage feature was not needed -- I deleted it. [[User:Renata3|Renata]] ([[User talk:Renata3|talk]]) 00:33, 30 July 2009 (UTC)
== Question about td ==
Line 96 ⟶ 98:
Please see the sandbox for the above template, the TFs are redirects to the WPs, and there were no nested parameters, so I've added that to the sandbox version. Please update the code for us. Thanks --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 21:57, 3 August 2009 (UTC)
== Task force naming and categorization ==
Line 109 ⟶ 112:
:Not in the banner code as far as I'm aware. The way to fix it is to add <nowiki>__TOC__</nowiki> below all the banners on the affected talk pages. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 06:36, 11 August 2009 (UTC)
== B-class checklist help ==
Line 114 ⟶ 118:
:To fix it, in [[Template:WPBannerMeta/core]], the following code should be changed to pass through the BANNER_NAME parameter:
<syntaxhighlight lang="wikitext">
{{#if:{{{B_CHECKLIST|}}}|{{WPBannerMeta/bchecklist
|class={{{class|}}}
Line 124 ⟶ 128:
|b6={{lc:{{{b6|}}}}}
|ASSESSMENT_LINK={{{ASSESSMENT_LINK|}}} }}
</syntaxhighlight>
to
<syntaxhighlight lang="wikitext">
{{#if:{{{B_CHECKLIST|}}}|{{WPBannerMeta/bchecklist
|BANNER_NAME={{{BANNER_NAME}}}
Line 137 ⟶ 141:
|b6={{lc:{{{b6|}}}}}
|ASSESSMENT_LINK={{{ASSESSMENT_LINK|}}} }}
</syntaxhighlight>
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:12, 8 August 2009 (UTC)
:Will that work for WPAVIATION, which only has 5 b-class parameters? - '''[[User:Trevor MacInnis|<span style="font-family:Century Gothic;color:SteelBlue">Trevor</span>]] [[User talk:Trevor MacInnis|<span style="font-family:Century Gothic;color:IndianRed">MacInnis</span>]] [[Special:Contributions/Trevor MacInnis|<span style="font-family:Century Gothic;color:DarkOliveGreen"><sup>contribs</sup></span>]]''' 20:20, 8 August 2009 (UTC)
Line 155 ⟶ 159:
* At [[Template:WPBannerMeta/hooks/aclass]], change:
<syntaxhighlight lang="wikitext">
|TEXT = This article '''[[{{{SUBPAGE_LINK}}}|is undergoing]]''' an [[{{{REVIEW_LINK}}}|A-Class review]].
Line 161 ⟶ 165:
|TEXT = This article '''[[{{{SUBPAGE_LINK}}}|{{#switch:{{lc:{{{a class|}}}}}|pass=has passed|fail=has failed|current=is undergoing}}]]''' an [[{{{REVIEW_LINK|}}}|A-Class review]].
</syntaxhighlight>
to:
<syntaxhighlight lang="wikitext">
|TEXT = This article '''[[{{{SUBPAGE_LINK}}}|is currently undergoing]]''' an [[{{{REVIEW_LINK}}}|A-Class review]].
Line 171 ⟶ 175:
|TEXT = This article '''[[{{{SUBPAGE_LINK}}}|{{#switch:{{lc:{{{a class|}}}}}|pass=has passed|fail=has failed|current=is currently undergoing}}]]''' an [[{{{REVIEW_LINK|}}}|A-Class review]].
</syntaxhighlight>
This one is just an idea, but why not use the different icons for current/pass/fail, e.g.
<syntaxhighlight lang="wikitext">
|IMAGE = {{#if:{{{IMAGE|}}}|{{{IMAGE}}}|{{#switch:{{lc:{{{a class|}}}}}|pass=Symbol a class|fail=Symbol unsupport A vote|current=A candidate}}.svg}}
</syntaxhighlight>
* At [[Template:WPBannerMeta/hooks/peerreview]], change:
<syntaxhighlight lang="wikitext">
|TEXT = This {{#if:{{SUBJECTSPACE}}|page|article}} is [[{{{LINK}}}/{{SUBJECTPAGENAME}}|currently]] being [[{{{LINK|}}}|peer reviewed]].
Line 195 ⟶ 199:
|TEXT = This {{#ifeq:{{{class|}}}|NA|page|article}} has had a [[{{{LINK}}}|peer review]] which is now [[{{{LINK}}}/{{SUBJECTPAGENAME:{{#if:{{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}}}|archived]].
</syntaxhighlight>
to:
<syntaxhighlight lang="wikitext">
|TEXT = This {{#if:{{SUBJECTSPACE}}|page|article}} '''[[{{{LINK}}}/{{SUBJECTPAGENAME}}|is currently undergoing]]''' a [[{{{LINK|}}}|peer review]].
Line 213 ⟶ 217:
|TEXT = This {{#ifeq:{{{class|}}}|NA|page|article}} has had a [[{{{LINK}}}|peer review]] which is '''[[{{{LINK}}}/{{SUBJECTPAGENAME:{{#if:{{{title|}}}|{{{title}}}|{{FULLPAGENAME}}}}}}|now archived]]'''.
</syntaxhighlight>
Also (I've mentioned this elsewhere) add a {{para|SIZE}} parameter as per the A-Class hook by changing all instances of:
<syntaxhighlight lang="wikitext">
|SIZE = 30px
</syntaxhighlight>
to:
<syntaxhighlight lang="wikitext">
|SIZE = {{#if:{{{SIZE|}}}|{{{SIZE}}}|30px}}
</syntaxhighlight>
Thoughts? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 23:01, 27 July 2009 (UTC)
Line 240 ⟶ 244:
<nowiki>*</nowiki>bumped out of archive* If there is no objection here can we get this finished up and make these two hooks consistant on their use of bolded text? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 16:25, 14 August 2009 (UTC)
:{{done}} — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:09, 14 August 2009 (UTC)
== Placing notes into the banner ==
Line 260 ⟶ 265:
I've prepared some code at {{tl|WPBannerMeta/hooks/aclass/sandbox}} and tested it with {{tl|WPBiography/sandbox}}. This adds <s>two</s> one optional parameter<s>s</s> to the existing hook:
*<s>{{para|CHECK_SUBPAGE}} which should be set to "yes" to perform an ifexist check for <nowiki>{{{SUBPAGE_LINK}}}</nowiki>, and</s>
*{{para|INVALID_CAT}} which both activates the check and sets the category for incorrectly tagged articles.
What this does:
*If {{para|a class}} is set to pass/fail/current but a review subpage does not exist, then <nowiki>{{{PASS_CAT}}}</nowiki>, <nowiki>{{{FAIL_CAT}}}</nowiki> and <nowiki>{{{CURRENT_CAT}}}</nowiki> will be ignored in favour of <nowiki>{{{INVALID_CAT}}}</nowiki>.
*If {{para|a class}} is not set but a review subpage exists, then an article is added to <nowiki>{{{INVALID_CAT}}}</nowiki>.
Thoughts on the above? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 23:52, 26 August 2009 (UTC)
Line 377 ⟶ 382:
|IMPN={{#if:{{{importance|}}}|importance|priority}}
</pre>
===Code review===
{{two-man-rule}} Would anyone care to check my changes to the following pages?
Line 739 ⟶ 745:
#{{tl|WikiProject Germany}}
#{{tl|WikiProject Greece}}
#{{tl|
#{{tl|WikiProject Illinois}}
#{{tl|WikiProject Israel}}
Line 877 ⟶ 883:
:::: In fact, things are pretty consistent... they use capitalization to refer to the classifications as proper nouns. Not sure the change is even worth all the work that would accompany it, so I'm edging it on not doing it. [[User:Titoxd|Tito<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]] - [[WP:FAC|cool stuff]])</sup> 17:36, 9 September 2009 (UTC)
:::::The change is very easy. I will just change some "C"s to "c". As I said, I am ''not'' proposing to rename any categories; that would indeed be a lot of work. The inconsistency is between the capital C for Class and the little i for importance. Thus we have things like
{{WikiProject banner shell|<!-- adding parameter to fix Multiline table in list lint error --> demo_page=Talk:DeKoven Street|
}}
:::::and there is no reason the two should not be capitalised the same. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:47, 9 September 2009 (UTC)
::::::Here's my problem: I'm all for switching to a lower-case "c", but not if it's just going to be a mere cosmetic change implemented here only. I would expect the categories to be dealt with as well, otherwise you're just trading one inconsistancy for another. [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 17:56, 9 September 2009 (UTC)
Line 970 ⟶ 978:
}}</pre>
to the main template. For example:
{{
|PROJECT = Tulips
|BANNER_NAME = Template:WikiProject Tulips
Line 995 ⟶ 1,003:
===Current===
{{#invoke:WikiProject banner|main
|PROJECT = Plants
|BANNER_NAME = Template:WikiProject Plants
Line 1,009 ⟶ 1,017:
===Proposed===
{{#invoke:WikiProject banner|main
|PROJECT = Plants
|BANNER_NAME = Template:WikiProject Plants
|