Module talk:WikiProject banner/Archive 9: Difference between revisions

Content deleted Content added
MiszaBot II (talk | contribs)
m Robot: Archiving 2 threads from Template talk:WPBannerMeta.
MiszaBot II (talk | contribs)
m Robot: Archiving 2 threads from Template talk:WPBannerMeta.
Line 820:
::Thanks! Done that. --[[User:BrownHairedGirl|<span style="color:#663200;">Brown</span>HairedGirl]] <small>[[User talk:BrownHairedGirl|(talk)]] • ([[Special:Contributions/BrownHairedGirl|contribs]])</small> 18:13, 10 February 2013 (UTC)
:See also [[:Category:Project-Class Editor Retention articles]], per [[Wikipedia:Categories for discussion/Log/2013 January 18#Category:Project-Class_Editor_Retention_articles]]. --[[User:BrownHairedGirl|<span style="color:#663200;">Brown</span>HairedGirl]] <small>[[User talk:BrownHairedGirl|(talk)]] • ([[Special:Contributions/BrownHairedGirl|contribs]])</small> 18:09, 10 February 2013 (UTC)
== Misunderstanding of Book-class ==
 
Do we have any tools for detecting when {{para|class|book}} has been used for a page which isn't a [[Wikipedia:Book]], but is in fact a regular article that just happens to be about a published book? See {{diff|Talk:The American Boy's Handy Book|prev|537495367|here}} for example. While we're about it, can we detect any other inappropriate uses of {{para|class}} such as Stub on a category, or Template on an image? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 19:34, 14 February 2013 (UTC)
:I suppose a check for this could be added to [[Template:Class mask]] and a tracking category could be populated. Or if there are certain combinations of class and namespace which would never be appropriate, we could simply prevent them from occuring by overriding the ''class'' parameter. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:29, 15 February 2013 (UTC)
::The check may be better at the end of [[Template:WPBannerMeta/core]] after the class param has been cleansed by class mask. There would still be quite a few combinations to check though. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 10:21, 15 February 2013 (UTC)
:::If you could do such a check, couldn't it just set or override the class? --'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 12:09, 15 February 2013 (UTC)
 
== |category=no conflict with FQS ==
 
I was just doing some cleanup and came across [[Wikipedia_talk:WikiProject_Law/Archive_13#Changing_the_WP_Law_template_to_include_a_link_to_Portal:Law_of_England_and_Wales | an example]] of someone trying to use the <tt>|category=no</tt> switch with a WPBM-based banner. AFAICT, the problem is that {{tl|WikiProject Law}} uses a custom class list with {{tl|class mask}} <tt>|FQS=yes</tt>. What seems to be happening is that <tt>|category=no</tt> seems to be applied by {{tl|class mask}} to stop the category class being used, rather than applying to WPBM to stop the article being included in a category. Am I right in that interpretation? It's obviously not ideal having the same parameter being used by two parts of the same template, particularly when the less important bit is "winning" the battle to use that parameter. I'm not sure what is the least bad way to fix this, perhaps we need two new versions of FQS in {{tl|class mask}}, one where <tt>category=yes</tt> is assumed, and one with <tt>category=no</tt> implied, so that {{tl|class mask}} doesn't need a separate <tt>category</tt> parameter? (I did search the archives to see if this had come up before, apologies if it has) [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 19:55, 24 February 2013 (UTC)
 
:It's fine. The {{para|category}} parameters are used in the different templates in different ways and one does not affect the other. For example: {{tlx|WikiProject Law|2=class=category|3=category=no}}
{{WikiProject Law|class=category|category=no}}
:-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:12, 24 February 2013 (UTC)
::Ach, sorry to bother you like that. I've now realised that the sandbox version of the template had a not-very-obvious transclusion that applied a category and was ignoring <tt>category=no</tt>. My fault, apologies again. [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 00:44, 25 February 2013 (UTC)
:::Hmm, altering the WPLAW banner so that it would take an optional additional portal link was an idea I had, but I never got round to taking it live. Does the code you've now tweaked fix a problem I didn't even know I had?! Can you see anything stopping the revised code being used? Thanks for looking at this. [[User:Bencherlite|Bencherlite]][[User talk:Bencherlite|<i><sup>Talk</sup></i>]] 08:30, 25 February 2013 (UTC)
::::I thought it was working, but now it's definitely not. I've tried to simplify it (take it out of the EW detection etc) just for now but it still doesn't seem to be picking up the <tt>{{{category}}}</tt> correctly. I'm very much a beginner at template synbtax, if anyone wants to have a look the relevant transclude is at [[Template:WikiProject Law/sandbox/portalbox‎]], the rest of it is at [[Template:WikiProject Law/sandbox]] and a test is at [[Template talk:WikiProject Law/sandbox ‎]] - one thing I did find is that it works much better if you test the version you've been editing in the sandbox rather than the "live" one that's not been touched!!! [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 22:40, 25 February 2013 (UTC)
:::::The reason was that you weren't passing the category param through from one template to the next template. I edited [http://en.wikipedia.org/w/index.php?title=Template:WikiProject_Law/sandbox&diff=540396708&oldid=455414433 Template:WikiProject_Law/sandbox] to add that. I've also edited [[Template:WikiProject Law/sandbox/portalbox]] to make it use {{tl|WPBannerMeta/hooks/cats}} but you can go back to your original method if you want to. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 23:33, 25 February 2013 (UTC)
 
Thank you to everyone for fixing my inelegant and inaccurate (and incomplete!) attempts. I've now updated the main template with the new code. [[User:Bencherlite|Bencherlite]][[User talk:Bencherlite|<i><sup>Talk</sup></i>]] 23:56, 25 February 2013 (UTC)
:I made {{diff|Template:WikiProject Law/portalbox|prev|540405314|a further fix}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 00:04, 26 February 2013 (UTC)