Jump to content

Module talk:WikiProject banner: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Kumioko (talk | contribs)
Line 59: Line 59:
::'''@WOSlinker''' - Thanks, thats kind of what I was afraid of.
::'''@WOSlinker''' - Thanks, thats kind of what I was afraid of.
::'''@MSGJ''' - Maybe that was a bad example but it was the closest I could come up with. Basically if someone adds the WikiProject United States banner with Arizona=Yes it adds something that looks like:
::'''@MSGJ''' - Maybe that was a bad example but it was the closest I could come up with. Basically if someone adds the WikiProject United States banner with Arizona=Yes it adds something that looks like:
{{WikiProject United States|AZ=Yes|Category=no}}
{{WikiProject United States|AZ=Yes|category=no}}
What I would like to do though is somehow, if possible, dynamically change the main part of the temaplate to display Arizona as the Main text with United States where Arizona is currently embedded, but only if something other than WPUS is there. The only way I could think of doing this was to create some kind of template switch that would look at something like
What I would like to do though is somehow, if possible, dynamically change the main part of the temaplate to display Arizona as the Main text with United States where Arizona is currently embedded, but only if something other than WPUS is there. The only way I could think of doing this was to create some kind of template switch that would look at something like
{{WikiProject United States/Arizona|US=Yes|Category=no}} if the AZ parameter =yes and if so then it would display that instead of the WPUS/AZ example above. This would allow AZ to have top billing of WPUS but still display them both. I thought I could do it by using the BANNER NAME parameter like in Template WikiProject Computing but I couldn't make it work. [[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 21:23, 14 May 2012 (UTC)
{{WikiProject United States/Arizona|US=Yes|category=no}} if the AZ parameter =yes and if so then it would display that instead of the WPUS/AZ example above. This would allow AZ to have top billing of WPUS but still display them both. I thought I could do it by using the BANNER NAME parameter like in Template WikiProject Computing but I couldn't make it work. [[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 21:23, 14 May 2012 (UTC)


== Questions ==
== Questions ==

Revision as of 18:37, 8 June 2012

WikiProject iconCouncil
WikiProject iconThis module relates to the WikiProject Council, a collaborative effort regarding WikiProjects in general. If you would like to participate, please visit the project discussion page.

Problem that needs fixing

I made a change to a WikiProject template yesterday (see). But the changes don't manifest as I had expected. Can someone help me fixing the problem? __meco (talk) 19:28, 26 March 2012 (UTC)[reply]

I think I've fixed it for you. You adjusted the setting for the qualimpintersect hook (which is what populates all the categories in Category:Years articles by quality and importance) rather than the main assessment classes. — Martin (MSGJ · talk) 20:02, 26 March 2012 (UTC)[reply]
Much appreciated! __meco (talk) 20:58, 26 March 2012 (UTC)[reply]

Linking to template

Hello,

It would be useful to have a link to the template page on every banner template, in the same way as {{infobox}} (with its "View", "Talk", and "Edit" links, although I think only a "View" is necessary). This is useful in order to see what parameters it accepts, such as task force assignments, without having to edit the page, see its name, and looking it up.

Thank you! InverseHypercube (talk) 03:42, 6 April 2012 (UTC)[reply]

The feature is already there but hidden by default. See Template talk:WPBannerMeta/Archive 2#Editlinks. -- WOSlinker (talk) 07:38, 6 April 2012 (UTC)[reply]
Great, thank you! Maybe this should be mentioned in the documentation? InverseHypercube (talk) 20:34, 6 April 2012 (UTC)[reply]

WikiProject Carrom template

I don't want to start mucking about with things that I don't know much about. Is it possible to fix up Template:WikiProject Carrom (or associated pages) so that a quality rating shows up on the talk pages that use this template (and will be classified in those quality scales in the BTGProject quality scales)? Right now, pages using that template are showing importance ratings, but not quality ratings. Many thanks. --Craw-daddy | T | 15:58, 23 April 2012 (UTC)[reply]

Sorry you didn't get an answer to your question. This template is complicated because it is calling another template {{WikiProject Board and table games}} and so is affected by that template's settings. I think I've fixed it now, but let me know if you want any more help with it. — Martin (MSGJ · talk) 15:17, 14 May 2012 (UTC)[reply]

Question regarding Template:WikiProject United States

I'm not sure where the best place is to ask this question so if it needs to move just let me know where. I would like to change how Template:WikiProject United States displays some of the WikiProjects. For example, I would like it to work more like Computing where if an article is in the scope of Arizona for example, the template would display WikiProject Arizona as the primary and United States as the lower level project. I believe this will offer better visibility of the more specific WikiProject topics and allow the reader a more direct avenue to the most accurately associated project. I have started to do this using Arizona as an example here and here but I can't quite get the logic right. If someone could answer a couple questions it might help.

  1. Is there a way to do this without completely duplicating the entire banner logic on every template?
  2. Do I need to recreate the logic in the beggining of the WikiProject United States template in order for all those categories and logic to work or is there some way we can triger it based on the embedded template for the supported project?
  3. Is there a better way? This seems unnecessarily complicated?

Thanks in advance for the help. Kumioko (talk) 19:22, 14 May 2012 (UTC)[reply]

Not sure if there is any simple way to do what you want. It would probably take a lot of template code to do. You could build the banner without using WPBannerMeta (as a few still do) but again would still need a lot of template code. -- WOSlinker (talk) 21:01, 14 May 2012 (UTC)[reply]
I had a look at the computing banner and couldn't really see what you mean. — Martin (MSGJ · talk) 21:04, 14 May 2012 (UTC)[reply]
@WOSlinker - Thanks, thats kind of what I was afraid of.
@MSGJ - Maybe that was a bad example but it was the closest I could come up with. Basically if someone adds the WikiProject United States banner with Arizona=Yes it adds something that looks like:
WikiProject iconUnited States: Arizona Unassessed
WikiProject iconThis article is within the scope of WikiProject United States, a collaborative effort to improve the coverage of topics relating to the United States of America on Wikipedia. If you would like to participate, please visit the project page, where you can join the ongoing discussions.
???This article has not yet received a rating on Wikipedia's content assessment scale.
Taskforce icon
This article is supported by WikiProject Arizona.

What I would like to do though is somehow, if possible, dynamically change the main part of the temaplate to display Arizona as the Main text with United States where Arizona is currently embedded, but only if something other than WPUS is there. The only way I could think of doing this was to create some kind of template switch that would look at something like

WikiProject iconArizona Unassessed
WikiProject iconThis article is within the scope of WikiProject Arizona, a collaborative effort to improve the coverage of the U.S. state of Arizona on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
???This article has not yet received a rating on Wikipedia's content assessment scale.

if the AZ parameter =yes and if so then it would display that instead of the WPUS/AZ example above. This would allow AZ to have top billing of WPUS but still display them both. I thought I could do it by using the BANNER NAME parameter like in Template WikiProject Computing but I couldn't make it work. Kumioko (talk) 21:23, 14 May 2012 (UTC)[reply]

Questions

I am currently working on a major overhaul of the Christianity WikiProject Banner at User:John Carter/Christianity banner. Beyond the existing problems with the banner's sometimes unusual phrasing, two other questions come to mind:

  • 1) set QUALITY_SCALE = subpage and then create a /class subpage with the following code:
{{class mask<noinclude>/templatepage</noinclude>|{{{class|}}}
 |topic=Christianity 
 |FQS=yes
 |book=yes
 |redirect=yes
 |fm=yes
}}

Problem with Redirect not working with banners

There is a rather lengthy discussion brewing on my talk page here about errors caused by adding WikiProject banners on article talk pages with redirects. Obviously adding the banner above the redirect breaks the redirect so I had been adding the banner below that to ensure the article was tagged for the project but now have been told that this breaks the redirect too. Currently there are about 26300 redirect tagged for WikiProject United States/one of the supported projects and of these about 1350 are showing up on the toolserver as a broken link. For most of these I can probably just remove the #REDIRECT from the talk page, leave the banner and move on with my day but for some they are both needed.

So, is there a technical way to allow a page to contain #Redirect as well as a WikiProject Banner? My first thought is to create a template similar to template:Category redirect so that they can both function in the cases where its necessary to redirect the talk page and have a banner (which obviously isn't always needed) but I'm not sure if this the best way or the only way. Any help would be greatly appreciated. Kumioko (talk) 17:45, 8 June 2012 (UTC)[reply]