Module talk:WikiProject banner

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by SatyrTN (talk | contribs) at 23:33, 3 February 2012 (→‎Implementing a task force: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

Template:WikiProject Food and drink/sandbox

Need help at Template:WikiProject Food and drink/sandbox-- cannot get the "tfnested names" to show in the testcases for the sandbox version. Have idea it's related to the hooks-collapsed, and the TFs' hooks. Appreciate help in advance! --Funandtrvl (talk) 01:23, 19 November 2011 (UTC)[reply]

Has this helped? --Redrose64 (talk) 11:38, 19 November 2011 (UTC)[reply]
Yes, thank you!! These big templates are too complicated!! --Funandtrvl (talk) 18:19, 19 November 2011 (UTC)[reply]

Task force aliases

{{WikiProject Apple Inc.}} had an iPhone task force which was renamed to the iOS task force, but the banner still uses iphone= and iphone-importance=. Is there a way to enable ios= without breaking all the existing transclusions? --Pnm (talk) 02:25, 29 November 2011 (UTC)[reply]

Do you just want to add iOS or replace iPhone with iOS? --Kumioko (talk) 03:38, 29 November 2011 (UTC)[reply]
I'd prefer to replace iPhone with iOS, but that would only work if the existing transclusions could be updated to comply. --Pnm (talk) 03:47, 29 November 2011 (UTC)[reply]
Well you could update the code and then get a bot to do the replacement or else do it manually. Not sure how many articles its on but it shouldn't take too long. --Kumioko (talk) 04:03, 29 November 2011 (UTC)[reply]
OK, I updated the template code and added logic for a category if any of the invalid parameters are used. Still need to create the category but you can see it if you look at the bottom of the code for the template.. I tested the change here. Prior to changing iphone to iOS the task force did not display. Once the task force name was updated all was good. It seems like there are only a couple hundred articles with that task force parameter so it shouldn't be too hard to go through those. --Kumioko (talk) 04:22, 29 November 2011 (UTC)[reply]
Thanks so much for your help! --Pnm (talk) 00:14, 3 December 2011 (UTC)[reply]

needs-image

I am trying to work out for a number of projects how to have different categories depending on a task force. Take for example Template:WikiProject Computing/sandbox, if the needs-image is set to yes then it places the talk page in Category:Computing articles needing images. However I would like to change this to Category:Software articles needing images if the task force software is set. I do not however want to keep the original categorisation and duplicate the request, as current you can see with Template talk:WikiProject United States#image-needed. How can I do this? --Traveler100 (talk) 11:47, 30 December 2011 (UTC)[reply]

I've made the changes in the sandbox. -- WOSlinker (talk) 18:46, 30 December 2011 (UTC)[reply]
Thanks that is useful.--Traveler100 (talk) 22:02, 30 December 2011 (UTC)[reply]
Related question; I am struggling to understand the syntax a little. In Template:WikiProject Trains for example there is code to set specific categories when two parameters are set. For example |cat 1={{#ifeq:{{lc:{{{NYPT|{{{NYCS|}}}}}}}}|yes|yes}} |CAT_1 = New York City public transportation articles needing images . But why does this only get set when Imageneeded is set? --Traveler100 (talk) 18:10, 30 December 2011 (UTC)[reply]
For that one, it's because it is within NOTE_3_TEXT so only sets the cats when that note is visible. -- WOSlinker (talk) 18:37, 30 December 2011 (UTC)[reply]
I think I am beginning to understand, not the most user-friendly syntax though :-) . Can you recommend a text editor that counts and displays the brackets well? --Traveler100 (talk) 22:02, 30 December 2011 (UTC)[reply]

Requesting assistance with Christianity banner

I've tried adding the material from Wikipedia:WikiProject Arminianism to Template:WikiProject Christianity, but have screwed up so far. If anyone can get the material added, probably with the image on the Arminianism project page, I would be very, very appreciative. John Carter (talk) 20:52, 31 December 2011 (UTC)[reply]

I've done a version in the sandbox for you to check. -- WOSlinker (talk) 21:22, 31 December 2011 (UTC)[reply]
Looks good. Knowing this is a great deal of work, would there be any way to move the Arminianism to directly below the Anglicanism, and, maybe, add parameters for Wikipedia:WikiProject Catholic canon law so that that line would appear just below the Catholicism? I know it is a great deal of work, but it would be useful. John Carter (talk) 01:01, 4 January 2012 (UTC)[reply]

Resizing the portal icons in a banner

I would like to resize the portal icons in Template:WikiProject United States to be a bit bigger. Right now they have little tiny icons and I would like them to be more prominent and visible. Does anyone know if thats possible? --Kumioko (talk) 14:34, 11 January 2012 (UTC)[reply]

It is possible, but you'd need to write a custom version of {{WPBannerMeta/hooks/taskforces/taskforce}} and pass its name through |TASKFORCE_TEMPLATE=. The generic one forces a height of 15px. --Redrose64 (talk) 17:39, 11 January 2012 (UTC)[reply]
Oh ok thanks, I don't suppose it would be possible to add a parameter to allow a project to resize the portal image would it? --Kumioko (talk) 17:43, 11 January 2012 (UTC)[reply]
Not easily. The alternative is to group all the portals at the top right, see for example Talk:Tooting Bec tube station - here, the {{WikiProject Trains}} uses a custom template {{WikiProject Trains/portalbox}}. --Redrose64 (talk) 17:57, 11 January 2012 (UTC)[reply]
I've got a sense of déjà-vu here... checking back through the archives I find Template talk:WPBannerMeta/Archive 9#Is there a way to line up things? and some other related threads. --Redrose64 (talk) 18:06, 11 January 2012 (UTC)[reply]
Wow you have a good memory I totally forgot about that. I might look into doing that thanks. --Kumioko (talk) 18:19, 11 January 2012 (UTC)[reply]

Issue I've encountered

Hi, I'm having some trouble with this template at Template:WikiProject A Song of Ice and Fire. If it's something really simple I overlooked sorry, any help is really appreciated. Thanks, Magister Scientatalk 23:56, 20 January 2012 (UTC)[reply]

Sorry, never mind. I found the issue (I accidentally included a period). Magister Scientatalk 00:23, 21 January 2012 (UTC)[reply]

Implementing a task force

I'm having trouble getting a task force to show up on a WikiProject banner. I've added what I think are the required parameters - see diff here - but it's not showing up. Help? -- SatyrTN (talk / contribs) 23:33, 3 February 2012 (UTC)[reply]