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

Content deleted Content added
Undid revision 321539507 by MiszaBot II (talk)
MiszaBot II (talk | contribs)
m Archiving 3 thread(s) from Template talk:WPBannerMeta.
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)
== 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)