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

Content deleted Content added
MiszaBot II (talk | contribs)
m Archiving 1 thread(s) from Template talk:WPBannerMeta.
 
MiszaBot II (talk | contribs)
m Archiving 2 thread(s) from Template talk:WPBannerMeta.
Line 4:
 
I understand the purpose of listas, so that talk pages are properly categorized. However, since it seems to be causing a fair bit of trouble in some instances and, in my opinion, isn't widely used enough to make sense, couldn't DEFAULTSORT just be used on all the pages, separating the sorting function from the WikiProject Banners? The DEFAULTSORT could go at the page top, to avoid getting mixed in with other text. -[[User:Drilnoth|Drilnoth]] ([[User talk:Drilnoth|talk]]) 03:25, 26 February 2009 (UTC)
== {{{small}}} and template length ==
 
Is there any way to make text display differently based on whether or not it has the <code>|small=yes</code> parameter? The template in question is {{tl|D&D}} (just trying to give Martin some more fun :) ), and at [[WT:DND]] it looks really bad because of its length. Could there be some kind of <code>|SMALL_TEXT</code> parameter for when designing templates so that shorter text can be used when the banner is "small"? Thanks. -[[User:Drilnoth|Drilnoth]] ([[User talk:Drilnoth|talk]]) 03:25, 26 February 2009 (UTC)
:This was actually something that I was going to propose once. However the small form is not so widely used so I am not sure if it's worth it. In the meantime you can do it manually using a parser function, for example [http://en.wikipedia.org/w/index.php?title=Template:D%26D/core&diff=273391176&oldid=271361162]. [[User:Msgj|Martin]]<sup>[[User talk:Msgj|msgj]]</sup> 09:32, 26 February 2009 (UTC)
::Ah... thanks. I wasn't completely sure whether or not that would work in combination with the Meta template. -[[User:Drilnoth|Drilnoth]] ([[User talk:Drilnoth|talk]]) 14:49, 26 February 2009 (UTC)
:::Since this can be ''so'' easily set by doing <tt><nowiki>{{#if:{{{small|}}}| Small text | Big text }}</nowiki></tt>, and could be justifiably applied to ''all'' the text parameters ({{para|TF_4_SMALL_TEXT}} anyone?) it makes infinitely more sense to do it as shown above. Vis number of small banners, [[:Category:Small talk page templates]] is currently only populated by WPBannerMeta banners. I'm seriously considering unsupporting small altogether, although I know that will raise a lot of hackles. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 18:22, 28 February 2009 (UTC)
 
== Taskforce hook and hide subpage ==
 
I recently implemented {{tl|WPBannerMeta}} on {{tl|WPMED}}, and I came across two inconsistencies in this template involving the taskforce hook. First, when task forces are specified using the hook, category checks are not done to insure their existence. I would expect the error messages to be displayed for missing categories, just as they are for task forces used by the built-in parameters. Second, after I added the [[Template:WPMED/hide|/hide]] subpage to suppress the category error messages, the task forces specified using the hook are no longer displayed at {{tl|WPMED}}. Everything still appears to function properly, but it would be nice to display all of the available task forces when looking at {{tl|WPMED}}. --[[User:Scottalter|Scott Alter]] 22:03, 27 February 2009 (UTC)
:#Regarding your first point, this is not something that is supported yet. Until recently there were no checks done on taskforce categories at all. Now the main 5 are checked. What you can do in the meantime is rotate their positions in the sandbox to check 5 at a time.
:#About the second point, this seems weird and unintended. I'll look into it. [[User:Msgj|Martin]]<sup>[[User talk:Msgj|msgj]]</sup> 22:20, 27 February 2009 (UTC)
::It wasn't connected to /hide. It was just a BANNER_NAME paramter incorrectly set. I've fixed it for you. [[User:Msgj|Martin]]<sup>[[User talk:Msgj|msgj]]</sup> 22:29, 27 February 2009 (UTC)
:::Thanks for fixing that. I'm pretty sure that all of the task forces were displayed before I created the hide subpage, but since it is working now, I guess it doesn't really matter. --[[User:Scottalter|Scott Alter]] 22:35, 27 February 2009 (UTC)
Doing sanity-checks for things added by hooks is probably ''possible'', but certainly rather complicated. I'll have to have a think about it... <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 18:25, 28 February 2009 (UTC)