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

Content deleted Content added
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot
BattyBot (talk | contribs)
m Removed duplicate WikiProject(s) and general fixes
Tags: AWB Reverted
Line 1:
{{Old RfD |date=22 December 2022 |result='''Delete''' |page=2022 December 22#Template:WPBannerMeta/Archive 13}}
{{Aan}}
 
Line 12:
:{{ping|Evolution and evolvability}} just wondering if my answer made any sense? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:10, 5 May 2020 (UTC)
::{{re|MSGJ}}. Woops, I meant to use {{para|TF_n_IMP}} rather than {{para|TF_n_QUALITY}} as the example. Because currently, if {{para|TF_n}} isn't filled in, the template will ignore {{para|TF_n_IMP}}. The template I'm working on is {{tlx|WikiProject_Molecular_Biology}}.
::Example: <code><nowiki>{{WikiProject Molecular Biology |class=Stub |importance=Low |RNA-imp=high |MCB-importance=low}}</nowiki></code> returns:
{{WikiProject Molecular Biology|category=no |class=Stub |importance=Low |biophysics-imp=high |genetics-importance=low}}
::but should really return:
{{WikiProject Molecular Biology|category=no |class=Stub |importance=Low |biophysics= foo|biophysics-imp=high |genetics=bar|genetics-importance=low}}
::So the query is more about whether we can automatically assume {{para|TF_n}} is yes if any of the {{para|TF_n_XYZ}} parameters are filled. [[User:Evolution and evolvability|T.Shafee(Evo<small>&#38;</small>Evo)]]<sup>[[User talk:Evolution and evolvability|talk]]</sup> 12:26, 5 May 2020 (UTC)
:::Ah, I understand your point now. Typically the only taskforce parameter that is set at the article level is the importance. So you are saying that if {{para|biophysics-imp}} is set to any value, then we should assume that {{para|biophysics|yes}}? That would be fairly simple to implement. Are there any possible side effects of doing this? What if {{para|biophysics-imp|cheesecake}}, i.e. an unrecognised value - should that trigger the taskforce as well? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:38, 5 May 2020 (UTC)
Line 46:
 
The following is extremely jarring when encountered
{{WikiProject Citizendiumbanner Porting}}shell|1=
{{WikiProjectBannerShell|1=
{{WikiProject Skepticism|class=NA|category=no}}
{{WikiProject Homeopathy |class=NA|category=no}}
{{WikiProject Alternative medicine |class=NA|category=no}}
{{WikiProject Alternative Views |class=NA|category=no}}
{{WikiProject Citizendium Porting}}
{{WikiProject Citizendium Porting/sandbox}}
}}
The inactive project should be center-aligned just like the active ones. And the '''([[Wikipedia:WikiProject_Council/Guide#Dealing_with_inactive_WikiProjects|Inactive]])''' links should be at the same place as the '''(Raged X-class)'''. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 16:06, 1 October 2020 (UTC)
Line 68 ⟶ 66:
 
::{{Re|MSGJ}}, the code you moved from the core to the main template needs to stay in core as the class and importance param values are normalised before being passed to the core template. See example below. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:04, 1 October 2020 (UTC)
{{WikiProject banner shell|1=
{{WikiProjectBannerShell|1=
{{WikiProject British Museum|class=xxx|importance=zzz|category=no}}
{{WikiProject British Museum/sandbox|class=xxx|importance=zzz|category=no}}
Line 87 ⟶ 85:
===Couple more===
There is one that still stands out, [[Template:MILHIST]]
 
{{WikiProjectBannerShell|1=
{{WikiProject British Museum|class=xxx|importance=zzz|category=no}}
{{WikiProject British Museum/sandbox|class=xxx|importance=zzz|category=no}}
{{WikiProject Military history|class=NA|category=no}}
{{WikiProject Military history/sandbox|class=NA|category=no}}
Line 96 ⟶ 90:
{{WikiProject Physics|class=NA|category=no}}
{{WikiProject U.S. Roads|class=NA|category=no}}
{{MathsWikiProject ratingMathematics|class=NA|category=no}}
{{WikiProject Citizendium Porting|category=no}}
{{WikiProject Citizendium Porting/sandbox|category=no}}
Line 140 ⟶ 134:
 
When the image is narrower than the class rating, and notes are used, the columns do not align nicely.
{{WikiProject Portals|category=no|importance=low |class=complete}}
On my browser the indentation for the final row is much less than for the other rows in the table. Is there a good way to fix this? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:25, 26 October 2020 (UTC)
: It's because the /Note template, or one of its immediate parent templates, creates its own sub-table in a cell which is 3 cells wide. That means it does not inherit the same widths as the cells in the rest of the table. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:35, 26 October 2020 (UTC)
:The pertinent code is
<pre><tr><td colspan="3" style="padding:0;">{{#ifexpr:{{#switch:{{{auto}}}|yes|stub={{#ifeq:{{{class|}}}|Stub|1|0}}|inherit|length={{#if:{{{class|}}}|1|0}}|0}}+
{{#ifeq:{{{attention}}}|yes|1|0}}+
{{#ifeq:{{{infobox}}}|yes|1|0}}+
Line 167 ⟶ 161:
::::I may have a play in the sandbox then &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:47, 27 October 2020 (UTC)
Testing sandbox code below. Uncollapsed version does not start a new table, so columns line up. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:23, 27 October 2020 (UTC)
{{WikiProject Portals/sandbox|category=no|importance=low |class=substantial|featured=yes|historical=yes}}
{{WikiProject Portals/sandbox|category=no|importance=low |class=substantial|featured=yes|historical=yes}}
{{ping|Izno}} would you double-check my code please ([https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/core/sandbox&diff=prev&oldid=985778587 diff])? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:31, 28 October 2020 (UTC)
:{{ping|MSGJ}} Yes, looks fine. (Rough, but such is the nature of wikitext.) --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 14:09, 28 October 2020 (UTC)
Line 333 ⟶ 326:
 
WikiProject Japan (well actually just Nihonjoe at the moment) are exploring putting some additional information in the collapsed banner, e.g. when a photo has been requested:
{{WPBSWikiProject banner shell|{{WikiProject Japan/sandbox|category=no|class=stub|importance=low|photo=yes}}}}
I think it would be neater to have that icon after the quality/importance ratings. Would it cause any problems to just move the hook to be after the bracketed portion, because I don't think there is any banner using both of these simultaneously yet? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:45, 18 November 2020 (UTC)
:See also [[User:Headbomb/Sandbox/Banner#If_there_are_issues]] (3rd mockup, If there are issues), from a 2017 mockup. As well as 'Projects expanded' from mockup 2. &#32;<span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 02:48, 19 November 2020 (UTC)
Line 648 ⟶ 641:
<nowiki>|class_values = {{{class_values|}}}</nowiki>
just above the line
<nowiki>|auto={{lc:{{{autoWikiProject Automobiles|¬}}}}}</nowiki>
 
This will allow the auto documentation to support an inline quality class. (I already made the corresponding change in {{tlx|WPBannerMeta/templatepage}}).
Line 681 ⟶ 674:
<nowiki>|tf 1 = {{{aviation|}}}</nowiki>
 
It seems that a talk page with <nowiki>{{WikiProject Military history|aviation=y}} </nowiki>, it'll get recognized, but <nowiki>{{WikiProject Military history|Aviation=y}}</nowiki> won't be.
 
Is there any way around this, other than :
Line 690 ⟶ 683:
The context for this is that I'm trying to create a WPBannerMeta version of the MILHIST talk page banner. Some of its task forces have 15+ parameters, so it would be nice to avoid needing to add multiple variations of capitalization for each TF parameter.
 
Would there be any ''downsides'' to changing {{tl|WPBannerMeta/hooks/taskforces}} to make these case-insensitive by default? That would be rather nice, and would help catch a lot of errors we couldn't possibly add to templates, like <nowiki>{{WikiProject Military history|aViation=y}}</nowiki>
[[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 12:40, 11 February 2023 (UTC)
 
Line 726 ⟶ 719:
|category={{{category|¬}}}
|BANNER_NAME = Template:WikiProject United States
|cat 1={{{autoWikiProject Automobiles|}}}
|CAT_1 = Automatically assessed American cinema articles
|cat 2={{{attention|}}}