Template talk:WikiProject banner shell

From Wikipedia, the free encyclopedia
  (Redirected from Template talk:WikiProjectBanners)
Jump to: navigation, search
WikiProject Council
WikiProject icon This template relates to the WikiProject Council, a collaborative effort regarding WikiProjects in general. If you would like to participate, please visit the project discussion page.

Bug in WikiProjectBannerShell: does not pass living= to WikiProject Biography template when given blp=yes[edit]

This edit removed the page from Category:Biography articles without living parameter. The WikiProjectBannerShell was already given |blp=yes, but was not passing the |living=yes parameter to WikiProject Biography.

I don't know if this is fixable in the template or if some bot needs to mass-update talk pages using these templates. I suspect that many entries in that category's backlog could be easily removed. (talk) 06:09, 15 December 2014 (UTC)

There is no technical means (as far as I know) for the WPBS template to pass parameters to the other template, so yes, it is necessary to use both |blp=yes and |living=yes — Martin (MSGJ · talk) 10:27, 15 December 2014 (UTC)


Why does this template no longer collapse? DrKiernan (talk) 17:32, 29 May 2015 (UTC)

@DrKiernan: See Wikipedia:Village pump (technical)/Archive 137#Collapsing not working. --Redrose64 (talk) 23:04, 29 May 2015 (UTC)


I wonder whether there is any need for this option. Using it without the collapsed=yes option (which I just found on a talk page) actually makes the banners longer as nothing is collapsed. How much is it actually used? — Martin (MSGJ · talk) 11:16, 4 January 2016 (UTC)

I've tweaked the /sandbox to remove this option. — Martin (MSGJ · talk) 14:28, 5 January 2016 (UTC)
And removed from the live template. I've updated the documentation. — Martin (MSGJ · talk) 13:22, 7 January 2016 (UTC)


For many years, Template:WikiProjectBanners has called this template but defaulted to |collapsed=yes. This is rather intuitive because other than that the two templates are identical. I wonder if it would be simpler to redirect that template to this one, or perhaps we should add |collapsed=yes to those usages first? — Martin (MSGJ · talk) 20:35, 5 January 2016 (UTC)

I have nominated Template:WikiProjectBanners for deletion/merging with this template. Please see Wikipedia:Templates for discussion/Log/2016 January 7 — Martin (MSGJ · talk) 13:32, 7 January 2016 (UTC)

Primefac has now closed the TfD and redirected Template:WikiProjectBanners to this template. This isn't quite what I had in mind, as we now have talk pages with large numbers of banners which are not collapsed. See Talk:Barack Obama for example: the banner shell takes up a lot of space. I think we need a bot to go round and replace {{WikiProjectBanners}} with {{WikiProject banner shell|collapsed=yes}} before we can do this ... — Martin (MSGJ · talk) 11:29, 11 February 2016 (UTC)

Also pinging Izno and PC-XT who commented in the TfD — Martin (MSGJ · talk) 15:20, 11 February 2016 (UTC)
I knew there would be some outliers, but per Izno's comment on the TFD I figured people could simply add the collapsed option. It's certainly better than having to remove all the extra garbage from the substituted code. For the moment, I've undone creating the redirect, but the consensus is definitely (at some point) to have WPB be a redir. Primefac (talk) 15:35, 11 February 2016 (UTC)
I have no substantive opinion besides that the end state should be a redirect. --Izno (talk) 15:48, 11 February 2016 (UTC)
4700 transclusions... A bot could replace them, or people can add the collapsed option as desired. I don't mind either way. —PC-XT+ 22:03, 11 February 2016 (UTC)

I have just posted a request at Wikipedia:Bot requests#WikiProjectBanners for a bot to do this. — Martin (MSGJ · talk) 13:59, 12 February 2016 (UTC)

Thanks to JJMC89 for taking this on. A BRFA has now been opened. — Martin (MSGJ · talk) 23:03, 12 February 2016 (UTC)
The bot has now finished its work and Template:WikiProjectBanners has been redirected to this templates. Thanks all. This is now much clearer and easier to use. — Martin (MSGJ · talk) 20:40, 19 March 2016 (UTC)

Name of template[edit]

Would anyone mind if we moved this template to Template:WikiProject banner shell? Splitting up the words and avoiding CamelCase? — Martin (MSGJ · talk) 20:38, 5 January 2016 (UTC)

Aren't there a number of scripts and bots that expect the present name? --Redrose64 (talk) 20:58, 5 January 2016 (UTC)
Possibly - are you aware of which ones? — Martin (MSGJ · talk) 13:13, 6 January 2016 (UTC)
For the record, there are 17 redirects to this template, and they seem to cover pretty much all the bases. Primefac (talk) 04:27, 11 February 2016 (UTC)
I'm also sure that retaining the redirects will be sufficient to keep the bots working. Is there any opposition to this proposed rename? Shall I start a RM or just move it? — Martin (MSGJ · talk) 11:30, 11 February 2016 (UTC)
The odd capitalization for this template always gets me (from the days when we were camel-casing our templates, no doubt, rather than providing for readability). I'd support that move. I'd also support a {{WikiProject shell}}. --Izno (talk) 15:50, 11 February 2016 (UTC)
I think {{WikiProject banner shell}} would be an appropriate move target, and {{WikiProject shell}} seems like a good name for a redirect. —PC-XT+ 21:51, 11 February 2016 (UTC)
I've made the move. Please no more redirects! We already have 16. I'm planning to nominate some of the lesser used redirects for deletion. — Martin (MSGJ · talk) 13:21, 12 February 2016 (UTC)
So based on the whim of exactly three editors, all million plus uses of this template, which existed under its former name since its creation nine years ago, are now Wikipedia:Redirects. -- DanielPenfield (talk) 07:02, 17 February 2016 (UTC)
Essentially yes, that is true ;) Is there a problem with that? If so, I suggest we open WP:RM discussion. — Martin (MSGJ · talk) 08:34, 17 February 2016 (UTC)


The following templates redirect to this template. I wonder if they are all needed? — Martin (MSGJ · talk) 23:06, 12 February 2016 (UTC)


Redirect Transclusions Note
Template:WPBS 12587 Former main redirect for this template
Template:Wikiprojectbannershell 0
Template:WikiProject Banner Shell 1124 Well used redirect
Template:WPBannerShell 306
Template:Wpbs 1007 Well used redirect, retain
Template:WP Banner Shell 270
Template:WP banner shell 11 Suggest delete
Template:WBPS 2 Suggest delete, unintuitive
Template:Bannershell 917 Well used redirect, retain
Template:Wikiproject Shell Banner 21 Suggest delete
Template:Wikiproject banner shell 0 Suggest delete
Template:WikiProject Banners Shell 0 Suggest delete
Template:WikiProjectBanner Shell 1 Suggest delete
Template:WikiProjectBannerShell 1088543 Former name of template, retain

I've added some proposals to the table above, basically to delete any redirect with less than 100 transclusions. Not sure about a couple of them. — Martin (MSGJ · talk) 23:22, 12 February 2016 (UTC)

Shell, WBPS, and Wikiproject Shell Banner were deleted. After deletion, I migrated all transclusion to WikiProject banner shell. — JJMC89(T·C) 01:55, 21 February 2016 (UTC)


Redirect Transclusions Note
Template:WikiProject banner shell 163,090 The template itself.
Template:WPBS 14,428 Former main redirect
Template:Wikiprojectbannershell 0
Template:WikiProject Banner Shell 1339
Template:WPBannerShell 334
Template:Wpbs 1,007
Template:WP Banner Shell 259
Template:WP banner shell 10
Template:Bannershell 983
Template:Wikiproject banner shell 0
Template:WikiProject Banners Shell 0
Template:WikiProjectBanner Shell 8
Template:WikiProjectBannerShell 1,097,546 Former name of template
Total 1,279,004

All the best: Rich Farmbrough, 20:48, 10 August 2016 (UTC).

Custom text[edit]

A text parameter is available to specify custom text instead of the default "This template is of interest to the following WikiProjects". I don't know if this is used anywhere, or perhaps this functionality could just be removed from the template. — Martin (MSGJ · talk) 21:21, 24 March 2016 (UTC)

Removed. If this is in fact being used anywhere, feel free to revert — Martin (MSGJ · talk) 23:28, 29 March 2016 (UTC)
Most of the uses of the parameter are in instances of WPBS misusing WPBS to hide things which aren't WikiProjects, or in one case, to make two groups of WikiProjects arbitrarily. --Izno (talk) 12:18, 30 March 2016 (UTC)
I see. Can you give me an example or two? — Martin (MSGJ · talk) 18:38, 30 March 2016 (UTC)
You can probably work through my recent talkspace changes from today--"misuse of wpbs". There were also some cases where the attribute or the template were empty, and a handful of others where it was used correctly but said essentially the same as the template currently does. --Izno (talk) 18:55, 30 March 2016 (UTC)
So this was used quite extensively. Should I revert my change, or are you happy to continue the cleanup operation? How are you finding these usages? Would a tracking category help? — Martin (MSGJ · talk) 08:35, 31 March 2016 (UTC)

For 50 removals out of ~1 million instances in Talk space, you probably should not revert your change. I was performing a search of the sort: -intitle:"/archive" hastemplate:"WikiProject banner shell" insource:/\|\s*text/" in the Talk: namespace. Only ~900 occurrences of this pattern in that namespace, the majority of which are false positives with e.g. {{tmbox}}. I got all of the ones that I noticed out of that pile. A tracking category would probably find the rest of them in the Talk namespace plus any other instances outside there, since I'm sure I missed one or two given the large number of false positives. --Izno (talk) 11:32, 31 March 2016 (UTC)

That same pattern in all talk spaces + Wikipedia space [1] yields about 980 results. Searching everything gave the same result. --Izno (talk) 11:37, 31 March 2016 (UTC)
Tracking cat: Category:WPBS using custom text — Martin (MSGJ · talk) 11:49, 31 March 2016 (UTC)
Will that edit capture an invoked but empty |text= as well as an invoked and non-empty |text=somevalue? --Izno (talk) 11:58, 31 March 2016 (UTC)
No, it will not detect an empty parameter, but neither did the template beforehand, so I don't think you need to worry about those — Martin (MSGJ · talk) 12:03, 31 March 2016 (UTC)
*shrug*. I just don't want someone copy-pasting an errant such use and expecting it to work. I'll leave the category to populate over the next week or two--most talk pages don't get too much traffic so all of the changes will be in the job queue. --Izno (talk) 12:07, 31 March 2016 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────Code is in /sandbox if you really think it worthwhile — Martin (MSGJ · talk) 12:15, 31 March 2016 (UTC)

Expression error at Talk:Kosovo[edit]

Could someone please investigate why there is an ugly Expression error: Unexpected > operator at Talk:Kosovo? It apparently stems from this template (as it only appears when it is included with anything embedded in it), but I could neither pinpoint the cause nor work around it. No such user (talk) 10:45, 28 April 2016 (UTC)

Checking... — Martin (MSGJ · talk) 11:04, 28 April 2016 (UTC)
I think it's the PAGESIZE parser function in Template:Ifexist not redirect. Seems to have changed its behavior if the target is blank. Will continue to investigate. — Martin (MSGJ · talk) 11:10, 28 April 2016 (UTC)
Fixed. The last revision in the history of Talk:Kosovo/Comments was a move and seemed to be missing the page size for some reason. I made a dummy edit and then reverted. All seems okay now. — Martin (MSGJ · talk) 11:20, 28 April 2016 (UTC)
Thanks. No such user (talk) 11:42, 28 April 2016 (UTC)

Empty template - no banners enclosed[edit]

I just made this fix. I think that we may need a tracking category for cases where |1= is missing or empty. --Redrose64 (talk) 21:48, 4 July 2016 (UTC)

That's a good idea. Primefac (talk) 17:00, 5 July 2016 (UTC)