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

Content deleted Content added
 
fix syntaxhighlight
 
(10 intermediate revisions by 3 users not shown)
Line 1:
{{Aan}}
{{tmbox|text=This page consists of a manual archive of [[Template talk:WPBannerMeta/hooks]]}}
 
==Hooking an alerts template into the project banner==
So, I created [[:Template:WikiProject Louisville/alertshook]]. It requires no parameters. Now, how do I hook this into the bottom of my project banner? I already tried "HOOK_BOTTOM= alertshook" and other variations, but nothing works. Please help. [[User:Stevietheman|<fontspan colorstyle="color:green;">'''Stevie is the man!'''</fontspan>]] <sup>[[User talk:Stevietheman|Talk]] &bull; [[Special:Contributions/Stevietheman|Work]]</sup> 20:44, 15 December 2008 (UTC)
:You'd need to use {{nowrap|<code><nowiki>|HOOK_NOTE={{WikiProject Louisville/alertshook}}</nowiki></code>}}, to transclude the template into the banner. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<fontb colorstyle="darkorangecolor:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|'''<b style="color:darkorange;">melon''']]</fontb>]] 21:16, 15 December 2008 (UTC)
::Doesn't work. The template doesn't show up, and it messes up the format of the rest of the banner. Note that this alerts template is included in other banners with no issue. [[User:Stevietheman|<fontspan colorstyle="color:green;">'''Stevie is the man!'''</fontspan>]] <sup>[[User talk:Stevietheman|Talk]] &bull; [[Special:Contributions/Stevietheman|Work]]</sup> 21:24, 15 December 2008 (UTC)
:::Oh of course, sorry. Essentially the issue there is that the hook parameters are designed to allow you to do just about anything, which means you have to do just about ''everything'' <tt>{{mono|1=:D</tt>}}. That means that you need to define a new table row, a new table cell within that row, enter the alert message, then close the cell, then close the row. The parameter {{para|BOTTOM_TEXT}} is better suited to what you want to do, since it does all that for you: anything you put into that parameter will display in a full-width row across the bottom of the banner. I see it's already used for something in {{tlx|WikiProject Louisville}}, but you might want to repurpose it. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<fontb colorstyle="darkorangecolor:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|'''<b style="color:darkorange;">melon''']]</fontb>]] 21:48, 15 December 2008 (UTC)
:::And it would be nice if that parameter actually worked <tT>{{mono|1=:D</tt>}} I'll try and work out what's wrong there... <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<fontb colorstyle="darkorangecolor:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|'''<b style="color:darkorange;">melon''']]</fontb>]] 21:50, 15 December 2008 (UTC)
:::{{fixed}} Sorry to run you round in circles like that! <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<fontb colorstyle="darkorangecolor:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|'''<b style="color:darkorange;">melon''']]</fontb>]] 21:52, 15 December 2008 (UTC)
::::Thanks! I had meant to use BOTTOM_TEXT but it stopped working. So I'll go back to using that now instead of a hook. [[User:Stevietheman|<fontspan colorstyle="color:green;">'''Stevie is the man!'''</fontspan>]] <sup>[[User talk:Stevietheman|Talk]] &bull; [[Special:Contributions/Stevietheman|Work]]</sup> 23:40, 15 December 2008 (UTC)
 
== Peer Review Hook ==
Line 19 ⟶ 22:
 
The {{t1|WPBannerMeta/hooks/qualimpintersect}} hook doesn't seem to respond properly to the "category=no" option. Even when this option is set the template still produces the intersected quality/importance intersections. See for example the {{t1|physics}} template used on [[Wikipedia:WikiProject_Physics/Taskforces/Relativity]]. Anybody with more knowledge of the code know why?. ([[User:TimothyRias|TimothyRias]] ([[User talk:TimothyRias|talk]]) 17:02, 5 May 2009 (UTC))
:{{fixed}} <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<fontb colorstyle="darkorangecolor:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|'''<b style="color:darkorange;">melon''']]</fontb>]] 17:19, 5 May 2009 (UTC)
 
== qualimpintersect New Param ==
Line 72 ⟶ 75:
<br>
'''source'''
<div style="font-size:90%; margin:0px;"><sourcesyntaxhighlight lang="html4strictwikitext" ">
| b1 <!--Referencing & citations--> = <yes/no>
| b2 <!--Coverage & accuracy --> = <yes/no>
| b3 <!--Structure --> = <yes/no>
| b4 <!--Grammar & style --> = <yes/no>
| b5 <!--Supporting materials --> = <yes/no></sourcesyntaxhighlight></div>
'''div'''
<div style="font-size:90%; margin:0px; font-family:monospace, sans-serif; padding: 1em; border: 1px dashed #2f6fab; background-color: #f9f9f9; line-height: 1.1em;">{{nowrap|1={{!}} b1 &lt;!--Referencing & citations--&gt; = &lt;yes/no&gt;}}<br>{{nowrap|1={{!}} b2 &lt;!--Coverage & accuracy&nbsp;&nbsp;&nbsp;&nbsp;--&gt; = &lt;yes/no&gt;}}<br>{{nowrap|1={{!}} b3 &lt;!--Structure&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&gt; = &lt;yes/no&gt;}}<br>{{nowrap|1={{!}} b4 &lt;!--Grammar & style&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&gt; = &lt;yes/no&gt;}}<br>{{nowrap|1={{!}} b5 &lt;!--Supporting materials&nbsp;&nbsp;&nbsp;--&gt; = &lt;yes/no&gt;}}</div>
Line 122 ⟶ 125:
#Should {{para|tf n importance|sausage}} be interpreted the same as a blank parameter? This would help {{tl|WikiProject Football}} where the task force parameter doubles as the importance parameter (and so "yes" should be ignored).
&mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:35, 19 June 2010 (UTC)
:{{replyto|MSGJ}} Besides Football, I've found three ([[Template:WikiProject Cryptography|Cryptography]], [[Template:WikiProject Databases|Databases]], [[Template:WikiProject Java|Java]]) that use inherited importance, but a different method - these three use code like this: <sourcesyntaxhighlight lang=moin> |tf 2 importance={{#if:{{{computer-science-importance|}}}|{{{computer-science-importance}}}|{{{importance|}}}}}<!-- Inherit importance if not specified --></sourcesyntaxhighlight> - they don't use {{tlx|WPBannerMeta/hooks/taskforces}} so there is no {{para|inherit importance}} parameter to be filled in. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 16:06, 19 May 2016 (UTC)
 
== Collapsed ==
Line 205 ⟶ 208:
Let me go ask the person who made the original request what they want, exactly. They're the ones who will be using this in the end. &mdash;&nbsp;Carl <small>([[User:CBM|CBM]]&nbsp;·&nbsp;[[User talk:CBM|talk]])</small> 12:06, 16 April 2011 (UTC)
 
I very much appreciate your efforts. To answer your question, WOSlinker, yes, it would be similar to the C-class now, but only to a smaller degree, as we have started adding B-class reviews (and adding/completing the checklists) now. Thus the problem is that we are losing (lost...) track of which C-class articles where simply failed and which haven't been reviwed yet. The goal of incomplete/missing B-class checklist category would be to give us a list of the articles we need to review (and add/complete the checklist), so that in the end, that category would be empty and all C-class articles would have a (Failed) B-class review. Could you point me to the new categories? Or you are welcome to annouce them at [[WT:POLAND]]. Thank you all for this effort, I think all B-class reviewing WikiProjects will benefit from this. Now, how do we notify them...? If there would be a way to easily see which projects have implemented a checklist, we could have a bot announce your new tool to them... --<sub><span style="border:1px solid #228B22;padding:1px;">[[User:Piotrus|Piotr Konieczny aka Prokonsul Piotrus]]|[[User_talk:Piotrus|<fontspan style="color:#7CFC00; background:#006400;"> talk </fontspan>]]</span></sub> 16:26, 16 April 2011 (UTC)
:The category is at [[:Category:Poland articles with an incomplete B-Class checklist]]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 17:48, 16 April 2011 (UTC)
::Thanks, this indeed is what we wanted, this is very helpful! --<sub><span style="border:1px solid #228B22;padding:1px;">[[User:Piotrus|Piotr Konieczny aka Prokonsul Piotrus]]|[[User_talk:Piotrus|<fontspan style="color:#7CFC00; background:#006400;"> talk </fontspan>]]</span></sub> 15:49, 17 April 2011 (UTC)
 
== [[Template:WPBannerMeta/hooks/bchecklist|B-class checklist]] example icons confusing? ==
Line 220 ⟶ 223:
|b6={{#ifeq:{{{b6|<includeonly>¬</includeonly>}}}|¬|¬|</nowiki>{{hl|<nowiki>&nbsp;</nowiki>|red}}<nowiki>}}
</nowiki>}}
can't all just read "n"? It's nice to know that there are icons for every contingency, but I think the default can be pretty confusing for anyone not familiar with the B-class checklist, especially if B1 and B4 appear to have "criterion met". Yes, it becomes apparent once you add the checklist code to the template on the talk page of any album, but right off the bat, it may be a little misleading. Especially now that the [[Template_talk:WPBannerMeta/hooks/bchecklist#bchecklist|class check]] has been moved elsewhere. Just a thought. – –&nbsp;<i><fontspan colorstyle="color:#06266f;">Kerαu</fontspan><fontspan colorstyle="color:#1240AB;">noςco</fontspan><fontspan colorstyle="color:#4671DS4671D5;">pia</fontspan><fontsup colorstyle="color:#A60000;"><sup>◁</sup></font><sub>[[User:Keraunoscopia|<fontspan colorstyle="color:#5E1FFF;">[[User:Keraunoscopia|gala</span>]][[User talk:Keraunoscopia|<span style="color:#5E1FFF;">xies]]</fontspan>]]</sub></i> 16:19, 22 May 2011 (UTC)
 
===bchecklist graphics===
{{Disregard|1=Apparently this isn't an issue from what I'm just seeing at another wikiproject template. –&nbsp;<fontspan colorstyle="color:#06266f;">Kerαu</fontspan><fontspan colorstyle="color:#1240AB;">noςco</fontspan><fontspan colorstyle="color:#4671DS;">pia</fontspan><fontsup colorstyle="color:#A60000;"><sup>◁</sup></font><i><sub>[[User:Keraunoscopia|<fontspan colorstyle="color:#5E1FFF;">[[User:Keraunoscopia|gala</span>]][[User talk:Keraunoscopia|<span style="color:#5E1FFF;">xies]]</fontspan>]]</sub></i> 04:39, 31 May 2011 (UTC)}}
There hasn't been any dissension to my discussion above. There is no reason for anything other than "y/yes" or "n/no" to be written in these parameters. Therefore, please make the following changes to [[Template:WPBannerMeta/hooks/bchecklist]]. Replace:
{{pre2|<nowiki>
Line 242 ⟶ 245:
|b6={{#ifeq:{{{b6|<includeonly>¬</includeonly>}}}|¬|¬|n}}
</nowiki>}}
The result can be seen at [[User:Keraunoscopia/sandcastle|my sandbox]]. Thanks! –&nbsp;<fontspan colorstyle="color:#06266f;">Kerαu</fontspan><fontspan colorstyle="color:#1240AB;">noςco</fontspan><fontspan colorstyle="color:#4671DS;">pia</fontspan><fontsup colorstyle="color:#A60000;"><sup>◁</sup></font><i><sub>[[User:Keraunoscopia|<fontspan colorstyle="color:#5E1FFF;">[[User:Keraunoscopia|gala</span>]][[User talk:Keraunoscopia|<span style="color:#5E1FFF;">xies]]</fontspan>]]</sub></i> 00:02, 31 May 2011 (UTC)
 
== Todo list ==