Content deleted Content added
m nav |
MiszaBot II (talk | contribs) m Archiving 2 thread(s) from Template talk:WPBannerMeta. |
||
Line 327:
Thanks to those who helped implement the incomplete B-class category for WP:POLAND. We have one more question: can we get a list of articles that are assessed as stub but do not have a stub-template in the main body? --<sub><span style="border:1px solid #228B22;padding:1px;">[[User:Piotrus|Piotr Konieczny aka Prokonsul Piotrus]]|[[User_talk:Piotrus|<font style="color:#7CFC00;background:#006400;"> talk </font>]]</span></sub> 19:06, 18 April 2011 (UTC)
:Sorry there is no way that a template can automatically detect whether a stub template is on a page. For that you would need to use [[wp:toolserver|toolserver]] or something similar. Or you could perhaps request a report at [[Wikipedia talk:Database reports]]. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:27, 19 April 2011 (UTC)
== Proposal: IMAGE_NEEDED parameter ==
Folks, I'd like to resurrect this earlier discussion about formally adding an "image-needed" parameter: [[Template talk:WPBannerMeta/Archive 8#Support for an image-needed parameter]].
I like {{u|MSGJ}}'s proposal here:
* IMAGE = a yes/no parameter to trigger the image category code
* IMAGE_LOCATION = an optional ___location to pinpoint where a photograph may be found
* IMAGE_CAT = a default image category for this WikiProject if the IMAGE_LOCATION category does not yet exist
* IMAGE_DETAILS = extra text describing specifically what the requested image should include
We have learned from working on organizing image requests that it's critical to support a ___location parameter, and even more than one if possible (IMAGE_LOCATION_1, IMAGE_LOCATION_2, IMAGE_LOCATION_3, etc). Without that flexibility, image request categories quickly become flooded and useless (e.g. 5,700 articles currently in [[:Category:Ireland articles needing images]].
I don't personally think that the IMAGE_CAT "default category" feature is critical, but if it's easy to implement then by all means it seems like a good idea :-)
In response to a question in the earlier thread: it turns out that an IMAGE_DETAILS parameter really is useful. An article may already have several images, but if an editor feels it's important to find a specific image (e.g. in the case of an architect or artist, an image of the author's better-known works), then it helps a lot to be able to specify clearly in the banner what image has been requested. Otherwise, another well-meaning editor may come along, see that the article has images, and helpfully remove the image request notice.
Feedback solicited on this idea. Is this proposal plausible? I have done some template coding and can try to contribute a suggested patch, but it would probably be better for someone more familiar with the WPBannerMeta code to take a stab at it. [[User:Twp|—Tim Pierce]] ([[User talk:Twp|talk]]) 15:56, 11 April 2011 (UTC)
:This would be a good idea and I'm glad someone is taking a stab at it. I can't remember why I didn't pursue this in 2009, but if I can be of assistance let me know. By the way, not sure why but traditionally we use lowercase for names of parameters which are simply passed to the meta, and uppercase for those containing the custom settings. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:04, 17 April 2011 (UTC)
=== Feedback: NEEDS-IMAGE ===
Following discussion in [[Template talk:WPBannerMeta/Archive 8#Support for an image-needed parameter.|2009]] and revived last month, I've added support for a "needs-image" parameter in the sandbox, and would like to hear feedback before proposing to edit the template.
The relevant diffs are:
* to {{tl|WPBannerMeta}}: [http://en.wikipedia.org/w/index.php?title=Template%3AWPBannerMeta%2Fsandbox&action=historysubmit&diff=431594357&oldid=431570492 diff]
* to {{tl|WPBannerMeta/core}}: [http://en.wikipedia.org/w/index.php?title=User%3ATwp%2FWPBannerMeta%2Fcore&action=historysubmit&diff=431597893&oldid=431538344 diff]
The new parameters are:
* ''needs-image'' - (passed in from the toplevel template) a yes/no trigger that adds an image request to the banner.
* ''image-___location'' - (passed in from the toplevel template) a ___location where a suitable image might be found. e.g. ''image-___location=Wisconsin'' adds the article to [[:Category:Wikipedia requested photographs in Wisconsin]].
* ''IMAGE_CATEGORY'' - specifies a default image category, e.g. ''[[:Category:Ireland articles needing images]]''. If the category specified by the ''image-___location'' parameter does not yet exist, the photo will be put in this category instead.
* ''image-details'' - (passed in from the toplevel template) a description of what specific image is desired.
Example of how a WikiProject banner might implement these:
<pre><nowiki>
{{WPBannerMeta
|PROJECT = Flibbertigibbet
|BANNER_NAME = Template:WikiProject Flibbertigibbet
...
|needs-image={{{needs-image|}}}
|image-___location = {{{image-___location|}}}
|image-details = {{{image-details|}}}
|IMAGE_CATEGORY = Wikipedia requested photographs of flibbertigibbets
...
}}
</nowiki></pre>
One thing I would like to fix is that I think ''image-___location'' should not override ''IMAGE_CATEGORY''. For non-geographical wikiprojects, e.g. [[Wikipedia:WikiProject Dogs]], the default category would be something like [[:Category:Wikipedia requested photographs of dog breeds]]. An article about a very specific breed of dog only found in one part of the world might add ''image-___location'', but that shouldn't take the article out of the master category. It's not clear to me how to fix this cleanly in the WPBannerMeta code -- I'm open to ideas. [[User:Twp|—Tim Pierce]] ([[User talk:Twp|talk]]) 05:05, 30 May 2011 (UTC)
:Nice work. A few comments:
:*The template uses ''attention'' rather than ''needs attention'' and ''infobox'' rather than ''needs infobox''. Should the needs image parameter match this? Similarly the template uses ''CAT'' rather than ''CATEGORY'' for all other categories.
:*Is the ''image-details'' actually used/useful? I've noticed that several banner templates use this construction but haven't really observed it being used much though. We should only code basic stuff; anything complicated or specific to few projects can be added by using a note.
:*About always using the default category (as well as any image specific category), would this behaviour be always desirable? Or just sometimes?
:*Additional categories could be added to the text parameter or at the end of the note code. But the proper category opt-out code should be used.
:— Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:03, 3 June 2011 (UTC)
::Personally I would favour {{para|needs-image}} and {{para|needs-infobox}} over {{para|image}} and {{para|infobox}} because of the ambiguity of the latter - does {{para|infobox|yes}} mean that it ''needs'' an infobox, or that it ''has'' an infobox? See, for example, [[Template:WikiProject UK geography/doc#Deprecated parameters]]. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 11:39, 3 June 2011 (UTC)
:::Well, the internal parameters used by the template are not necessarily related to the actual parameters which are fed into the template. For example [[Template:WikiProject Ireland]] currently uses the following syntax:
<pre>|infobox={{{needs-infobox|}}}</pre>
:::— Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:53, 3 June 2011 (UTC)
Good questions. My thoughts:
* I used ''needs-image'' and ''IMAGE_CATEGORY'' for the sake of clarity. I realize that these parameters are not exposed to the end user; I don't really have strong feelings about the exact name of these parameters when and if they're ultimately implemented.
* We've found, with the {{tl|image requested}} template (formerly {{tl|reqphoto}}), that an ''image-details'' parameter really is useful, particularly for articles which already have one more more images. In such cases, the "details" parameter helps to clarify for other editors that there is an outstanding request for some specific image, and that the image request shouldn't be removed until that image has been supplied.
* The default-vs-specific category is a tricky question. I think it's important to allow image requests to be categorized both by subject and ___location (e.g. "image request of a train station" and "image requests in Germany"), and they shouldn't override each other. So perhaps the template should support both IMAGE_CAT and IMAGE_LOCATION, and each instance of a banner template could override these with "image-category" and "image-___location" parameters.
:[[User:Twp|—Tim Pierce]] ([[User talk:Twp|talk]]) 19:45, 3 June 2011 (UTC)
:Okay, I can understand all these answers. But this is getting complicated and so we should perhaps reconsider adding it to the main template. How about putting all this functionality into a "[[Template:WPBannerMeta/hooks|hook]]" which could then be called via HOOK_NOTE? Then it is almost as easy to use and we don't have to worry about complicating the main template. Two different types of category might work - how about TOPIC_CATEGORY and LOCATION_CATEGORY? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:12, 4 June 2011 (UTC)
::I've [[Template:WPBannerMeta/hooks/image needed|made a start]] on this, feel free to pitch in. Something else I thought about was a {{{type}}} parameter to allow for other types of images (e.g. maps). — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:03, 4 June 2011 (UTC)
:::That makes sense. I'll look at the hook code and see if I can understand it well enough to comment on it usefully. :-) [[User:Twp|—Tim Pierce]] ([[User talk:Twp|talk]]) 15:45, 6 June 2011 (UTC)
::::I've finished the coding, but haven't tested it yet. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:56, 7 June 2011 (UTC)
== Is there a way to manually resize an Icon? ==
In {{tl|WikiProject United States}} a couple of the WikiProject icons (namely library of congress and United States Government) have icons that are smaller than the others. I would like to manually resize them to make them slightly bigger and easier to read. Is this possible to do and if so how do I do that?--[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 18:09, 3 May 2011 (UTC)
:{{Done}} Nevermind its fixed now thanks. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 19:03, 3 May 2011 (UTC)
|