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

Content deleted Content added
MiszaBot II (talk | contribs)
m Archiving 2 thread(s) from Template talk:WPBannerMeta.
MiszaBot II (talk | contribs)
m Archiving 3 thread(s) from Template talk:WPBannerMeta.
Line 183:
:See the second box down, first bullet 'The QUALITY_SCALE parameter is set to "subpage" but there is no custom class mask held at [[Template:WikiProject Asia/class|/class]]. Therefore the quality scale has been switched off.'. Either create that page, or amend {{para|QUALITY_SCALE}} to either "standard" or "extended". --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 16:36, 11 October 2010 (UTC)
::Yep, that did it. Egregious fawning thanks are generally looked down upon, understandably, even when they are deserved, so I hope a "thank you" is received well. [[User:John Carter|John Carter]] ([[User talk:John Carter|talk]]) 16:45, 11 October 2010 (UTC)
== Problems with this template ==
 
It has been brought to my attention that there are a number of problems with the use of the this template on WikiProject banners. I am going to try and fix some of these items myself but I am not the greatest wikicoder out there so any help would be appreciated.
#We need to fix the problems on the todo list
#This template needs to be modified to allow for more task forces than five. Several project have a lot of task forces and this template should allow for that.
#Several projects use custom fields and it is believed that using this template means they cannot use their custom fields. I do not believe that to be the case so if anyone can give me an example of a project that does I would appreciate it. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 00:53, 2 November 2010 (UTC)
:#I have removed the to-do list for now. Those items were not "problems" as such but ideas for future development, mainly by Happy-melon quite some time ago.
:#It is easy to support more than 5 taskforces. See [[#Task force quantity]] for some more background on this.
:#Of course, any custom fields can be supported. Most project banners have been adapted to suit their own needs.
:&mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:27, 2 November 2010 (UTC)
::Thanks, thats what I thought. One project tried to tell me that they couldnt use this template because they had custom fields. After looking at Template:WikiProject Canada though I see that was absurd. One last question. Is it possible to display the project links in line like this Project 1, Project 2, Project 3, etc rather than the way they are displayed in most projects?--[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 13:39, 2 November 2010 (UTC)
:::Sorry, I don't understand. Could you rephrase that question? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:09, 2 November 2010 (UTC)
::::No problem but I think it will make more sense if you see what I am talking about. If you take a look at [[Talk:U.S. Route 30]] and expand the Banner for WikiProject U.S. Roads you will see that they use an inline approach rather than stacking the projects like [[Template:WikiProject Canada]]. I was wondering if this template allows for that? Its no big deal really, im not tryin to make them convert Im just wondering. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 15:45, 2 November 2010 (UTC)
:::::That functionality could be supported. It would be best to create it as a subpage template and then inserted into the banner via a [[Template:WPBannerMeta/hooks|hook parameter]]. There isn't a hook parameter in exactly the same ___location at present but one could be added. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 16:02, 2 November 2010 (UTC)
:::::{{edit conflict}} Ah, I see what you mean now. The inline display of taskforces/sub-projects is not an approach which has been followed by any other project so far. A more common method is to put the taskforces into a collapsible box (see [[Template:WikiProject Philosophy]] for an example of this). If the project wanted to retain the current structure then it would be a little more complicated but I'm sure we could rig something up. [[Template:U.S. Roads WikiProject/sandbox|You'll notice]] that from time to time I have worked on a WPBM-version of the roads template. It's not finished yet as I got sidetracked, but all of the notes/alerts are ready I think. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 16:06, 2 November 2010 (UTC)
::::::Thanks fro clarifying. I appreciate it. They mentioned that the banner didnt support their needs and I found that suspiciously unlikely and thought I would ask. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 17:23, 2 November 2010 (UTC)
 
== 2 main categories? ==
 
How do I get a banner to transclude two main categories? I am using this code. It works on the talk pages, but it is returning the "Category not found" message on the template:
 
<code><nowiki>|MAIN_CAT = All New York City public transportation articles{{)!}}{{)!}} {{!(}}{{!(}}Category:New York City public transportation articles not covered by another WikiProject</nowiki></code>
 
&mdash;&nbsp;[[User:Train2104|Train2104]]&nbsp;([[User talk:Train2104|talk]]&nbsp;• [[Special:Contributions/Train2104|contribs]]&nbsp;• [[tools:~soxred93/ec/Train2104|count]]) 23:52, 3 November 2010 (UTC)
 
:Just put the first in MAIN_CAT and then after the WPBannerMeta template put the following:
<pre>
{{WPBannerMeta/hooks/cats
|category={{{category|¬}}}
|BANNER_NAME = {{subst:FULLPAGENAME}}
|cat 1=yes
|CAT_1 = New York City public transportation articles not covered by another WikiProject
}}
</pre>
:[[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:48, 4 November 2010 (UTC)
::I've changed it in [[Template:WikiProject New York City Public Transportation]] for you. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:52, 4 November 2010 (UTC)
 
== Is there a way to line up things? ==
 
Is there a way to line things up using this template so they dont look so messy. For example. On {{tl|WikiProject United States/sandbox}} the portals are all aligned to the right making the banner look rather messy. I would like to align the portals to the left so they all start at the same point on the column. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 15:14, 30 November 2010 (UTC)
:Do you know of another banner where the portal boxes are ''left''-aligned? --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:19, 30 November 2010 (UTC)
::No I dont unfortunately. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 20:26, 30 November 2010 (UTC)
:::{{tlx|WPBannerMeta}} calls {{tlx|WPBannerMeta/core}} which calls {{tlx|portal}}, where the default is right-aligned. It is possible to left-align portal boxes, {{tlx|portal|Trains|3=left=yes}} produces
{{portal|Trains|left=yes}}
:::but the parameter is undocumented, so may be unreliable or deprecated; further, there is presently no way of passing that through from a project banner that uses standard portal techniques.
:::Something that can give a neater effect, and still be right-aligned, is to combine the portals into a single box: {{tlx|WikiProject Trains}} uses a special subtemplate for this, {{tlx|TrainsWikiProject/portalbox}}; you can see the effect at [[Talk:Royal Oak tube station]] which has three portals. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 21:34, 30 November 2010 (UTC)
::::Thats great thanks. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 21:41, 30 November 2010 (UTC)
:::::Could you take a look at {{tl|WikiProject United States/sandbox}}. I dont see a way to invoke the portal align left switch. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 21:49, 30 November 2010 (UTC)
::::::There isn't one. To pass {{para|left|yes}} into {{tlx|portal}} needs modifications to both {{tlx|WPBannerMeta/core}} and {{tlx|WPBannerMeta}} which is one of the reasons that {{tlx|WikiProject Trains}} ignores the standard portal methods (such as the {{para|PORTAL}} parameter of the {{tlx|WPBannerMeta}} template, and the {{tlx|portal}} template itself) completely. If you examine {{tlx|WikiProject Trains}}, you'll see that it handles the portals by squeezing {{tlx|TrainsWikiProject/portalbox}} into the {{para|MAIN_TEXT}} parameter of {{tlx|WPBannerMeta}}. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 22:33, 30 November 2010 (UTC)
:::::::You can also add the call to {{tl|portal}} to the TF_n_TEXT parameter instead. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:57, 1 December 2010 (UTC)
::::::::Idea: {{tlx|portal box}} - how suitable is this? Will check later. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 00:09, 4 December 2010 (UTC)
:::::::::Thats a good idea but ideally I would like the portal to be inline with the wikiproject it goes with. I would just prefer it was left aligned instead of right aligned. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 01:31, 4 December 2010 (UTC)