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

Content deleted Content added
MiszaBot II (talk | contribs)
m Archiving 4 thread(s) from Template talk:WPBannerMeta.
Undid revision 321539507 by MiszaBot II (talk)
Line 958:
::{{fixed}} It was actually an error in [[Template:WPBannerMeta/class|/class]] which only showed itself for a blank class parameter and an inline class mask. I've tweaked it and seemed to have solved the problem, but we should probably look at recoding that template. Basically the magic word ''padleft'' is being used in an unintended way in order to make the syntax cleaner. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:46, 30 September 2009 (UTC)
:::Thanks for both of the above Martin. :) [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 22:30, 30 September 2009 (UTC)
== B-class checklist again ==
 
[[File:B-checklist still screwy.jpg|thumb|right]]
::::Yes, the B-checklist is still as screwed up as ever on Internet Explorer. Thought Happy-melon had sorted this ... Why can't it line up with the others? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:41, 24 September 2009 (UTC)
:::::It's not quite right (though not as bad) on FF. [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 20:51, 24 September 2009 (UTC)
::::::8-O What browser is that!?! [[User:Happy-melon|<span style="color:forestgreen">'''Happy'''</span>]]‑[[User talk:Happy-melon|<span style="color:darkorange">'''melon'''</span>]] 21:17, 24 September 2009 (UTC)
:::::::That's IE8. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:34, 24 September 2009 (UTC)
::::::::Looks like that on IE7 as well. [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 21:43, 24 September 2009 (UTC)
::Eww... I can make it somewhat better by removing the 100% width from the {{tag|table|open}} element in {{tlx|WPBannerMeta/bchecklist}} (the usual IE Box Model Bug), but I have a nasty suspicion that that's going to make it crush on Chrome. What's going on in {{tlx|WPBannerMeta/bchecklist/sandbox}}?? [[User:Happy-melon|<span style="color:forestgreen">'''Happy'''</span>]]‑[[User talk:Happy-melon|<span style="color:darkorange">'''melon'''</span>]] 21:51, 24 September 2009 (UTC)
:::Poke... anything important going on in that sandbox? [[User:Happy-melon|<span style="color:forestgreen">'''Happy'''</span>]]‑[[User talk:Happy-melon|<span style="color:darkorange">'''melon'''</span>]] 13:49, 2 October 2009 (UTC)
::::Sorry, no, go ahead. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:52, 2 October 2009 (UTC)
::Ok, does [[Template:WikiProject Firearms/testcases]] look better now? It looks ok to me on FF and IE7, anyone have Chrome and/or Safari to look at it? [[User:Happy-melon|<span style="color:forestgreen">'''Happy'''</span>]]‑[[User talk:Happy-melon|<span style="color:darkorange">'''melon'''</span>]] 12:29, 3 October 2009 (UTC)
:::The B-class checklist show links butt right up against the text in Chrome 3, then jump out to the right when the list is shown. <span style=white-space:nowrap>「[[User:Dinoguy1000|<span style=color:#00f>ダイノ<span style=color:#080>ガイ]][[Special:Contributions/Dinoguy1000|<span style=color:#F90>千?!]]」<sup>[[Help:IJP|?]] · [[User talk:Dinoguy1000#top|Talk⇒Dinoguy1000]]</sup></span> 18:04, 3 October 2009 (UTC)
::::Any better? [[User:Happy-melon|<span style="color:forestgreen">'''Happy'''</span>]]‑[[User talk:Happy-melon|<span style="color:darkorange">'''melon'''</span>]] 10:13, 6 October 2009 (UTC)
:::::Looks fine on IE. I can check Chrome when I get home. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:19, 6 October 2009 (UTC)
::::::Nope, Chrome 3 still behaves the same. Checking more carefully, the show/hide link sticks to the right side of the collapsible cell, which means that the cell is collapsing horizontally as well as vertically when the content gets hidden. <span style=white-space:nowrap>「[[User:Dinoguy1000|<span style=color:#00f>ダイノ<span style=color:#080>ガイ]][[Special:Contributions/Dinoguy1000|<span style=color:#F90>千?!]]」<sup>[[Help:IJP|?]] · [[User talk:Dinoguy1000#top|Talk⇒Dinoguy1000]]</sup></span> 18:27, 6 October 2009 (UTC)
:Why do all the other collapsed boxes seem to work consistently on all browsers, but we can't get this one to work?? Is there a way we could make the B-checklist more like the other boxes? (I wouldn't mind losing the icon if it would make it work!) I can envisage making [[Template:WPBannerMeta/collapsed|/collapsed]] more generic and using it for all the collapsed boxes to keep the code centralised. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:18, 8 October 2009 (UTC)
::I honestly don't know why this implementation doesn't work on Chrome, but normal mboxes do; the underlying code is virtually identical. I suppose we could put the inner code in a separate table, that ''might'' help. [[User:Happy-melon|<span style="color:forestgreen">'''Happy'''</span>]]‑[[User talk:Happy-melon|<span style="color:darkorange">'''melon'''</span>]] 12:30, 8 October 2009 (UTC)
:::Worth a try ... ? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:35, 8 October 2009 (UTC)
 
== Link to documentation ==
 
I don't know how you guys feel about tinkering with the main banner text, but it occurs to me that an explicit link to a banner's documentation would be useful in most cases, particuarly for more complex banners. Thoughts? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 15:44, 13 September 2009 (UTC)
:Blimey, you are keeping us busy here. Sure, this might be a good idea if it doesn't make the wording too long. What wording would you suggest? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:21, 14 September 2009 (UTC)
How about adding:
<pre>{{#if:{{{DOC_LINK|}}}|<small><nowiki>[</nowiki>[[{{{DOC_LINK}}}|DOCUMENTATION]]<nowiki>]</nowiki></small>}}</pre>
to the end of the existing text in /core, and:
<pre>|DOC_LINK = {{#if: {{{DOC_LINK|}}}
|{{{DOC_LINK}}}
|Template:WikiProject {{{PROJECT}}}/doc
}}</pre>
to the main template. For example:
{{WPBannerMeta/sandbox
|PROJECT = Tulips
|BANNER_NAME = Template:WikiProject Tulips
|PROJECT_LINK = Wikipedia:Somewhere about tulips
|IMAGE_LEFT = Tulip - floriade canberra.jpg
|IMAGE_LEFT_SMALL = 25px
|IMAGE_LEFT_LARGE = 50px
|MAIN_ARTICLE = [[tulip]]s, [[liliaceae]] and related articles
|PORTAL = Tulips
|PORTAL_IMG = Tulipa florenskyi 4.jpg
|category=no
}}
-- [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 09:47, 24 September 2009 (UTC)
:Hmm, well a few things:
:#Using your conditional on the main template, {{{DOC_LINK}}} will always be defined, so the check on /core is a bit pointless.
:#Might be worth adding an ifexist check somewhere.
:#It's not quite clear that it's the documentation for the template that's being linked to. But <small>[[TEMPLATE DOCUMENTATION]]</small> is probably too long ...
:#In general I would prefer to make changes to the default layout, if it agreed that it's definitely an improvement, rather than adding more options to the syntax for trivial things like this.
Sorry I know this isn't very constructive, and I'm not trying to tear your idea to pieces. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:39, 24 September 2009 (UTC)
 
←That's OK; halfway through typing that comment above I realised that what I was going to suggest wouldn't work, so I changed things and that's why you've got the redundant #if check. Could change that #if to an #ifexist, though (I think). Actually I would probably prefer a rewording of the text rather than just tacking something onto the end. How about something like:
<pre style="overflow:auto">This {{pagetype|{{{class|}}}}} is within the scope of '''[[{{{PROJECT_LINK|}}}|WikiProject {{{PROJECT}}}]]''', a collaborative effort to improve the coverage of {{#if:{{{MAIN_ARTICLE|}}}|{{#ifexist:{{{MAIN_ARTICLE}}}|[[{{{MAIN_ARTICLE}}}]]|{{{MAIN_ARTICLE}}}}}|{{#ifexist:{{{PROJECT}}}|[[{{{PROJECT}}}]]|{{{PROJECT}}} articles}}}} on Wikipedia. {{#if:{{{small|}}}||All interested editors are welcome to participate and join the [[{{TALKPAGENAME:{{{PROJECT_LINK}}}}}|discussion]]. {{#ifexist:Template:WikiProject {{{PROJECT}}}/doc|For instructions on how to use this banner, please refer to the [[Template:WikiProject {{{PROJECT}}}/doc|documentation]].}}}}</pre>
-- [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 13:32, 24 September 2009 (UTC)
 
===Current===
{{WPBannerMeta
|PROJECT = Plants
|BANNER_NAME = Template:WikiProject Plants
|PROJECT_LINK = Wikipedia:WikiProject Plants
|IMAGE_LEFT = Chamomile@original size.jpg
|IMAGE_LEFT_SMALL = 25px
|IMAGE_LEFT_LARGE = 50px
|MAIN_ARTICLE = [[plant]]s
|PORTAL = Plants
|PORTAL_IMG = Tulipa florenskyi 4.jpg
|category=no
}}
 
===Proposed===
{{WPBannerMeta
|PROJECT = Plants
|BANNER_NAME = Template:WikiProject Plants
|PROJECT_LINK = Wikipedia:WikiProject Plants
|IMAGE_LEFT = Chamomile@original size.jpg
|IMAGE_LEFT_SMALL = 25px
|IMAGE_LEFT_LARGE = 50px
|MAIN_TEXT = This article is within the scope of '''[[Wikipedia:WikiProject Plants|WikiProject Plants]]''', a collaborative effort to improve the coverage of [[plant]]s on Wikipedia. All interested editors are welcome to participate and join the [[{{TALKPAGENAME:Wikipedia:WikiProject Plants}}|discussion]]. For instructions on how to use this banner, please refer to the [[Template:WikiProject Plants/doc|documentation]].
|PORTAL = Plants
|PORTAL_IMG = Tulipa florenskyi 4.jpg
|category=no
}}
 
* Weak support for this tweaking of the default text. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:21, 8 October 2009 (UTC)
 
== [[Wikipedia:Template messages/WikiProject banners]] ==
 
For some reason I cant get {{tl|WikiProject Years}} to transclude on this page, it's just giving a red link to [[WikiProject Years]] instead. Any ideas? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 01:24, 2 October 2009 (UTC)
:Think that page is overloaded with templates. It's in {{cat|Pages where template include size is exceeded}}. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 04:36, 2 October 2009 (UTC)
 
== Formatting errors ==
 
I've recently fixed three newly created banners with incorrect coding
#[http://en.wikipedia.org/w/index.php?title=Template:WikiProject_Deserts&oldid=317860782]
#[http://en.wikipedia.org/w/index.php?title=Template:Meteorology,_Climatology_and_Ecosystems&direction=next&oldid=317858109]
#[http://en.wikipedia.org/w/index.php?title=Template:WPDylan&direction=prev&oldid=317931224]
Is there any way for the meta to recognise any of these issues and add the banners to {{cl|WikiProject banners with formatting errors}}? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 18:22, 5 October 2009 (UTC)
:#Could not be detected I think, because category=no is for valid demo purposes on the template page.
:#Is already tracked by {{cl|WikiProject banners with formatting errors}} (under heading '''P''')
:#Could not be detected currently, but I am proposing changes in a thread above so that {{para|category|<nowiki>{{{category|}}}</nowiki>}} is allowed.
:There are probably lots of other checks we could add as well if we wanted. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:17, 5 October 2009 (UTC)
::Waiting for a code review for #3 (see a thread near the top...) &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:45, 8 October 2009 (UTC)