Content deleted Content added
MiszaBot II (talk | contribs) m Archiving 3 thread(s) from Template talk:WPBannerMeta. |
MiszaBot II (talk | contribs) m Archiving 2 thread(s) from Template talk:WPBannerMeta. |
||
Line 167:
:Yes <tt>:D</tt> {{done}} <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 22:55, 5 January 2009 (UTC)
::Thanks. <font color="green" face="Comic Sans MS">[[User:Stepshep|§hep]]</font> • <font color="green" face="Comic Sans MS">[[User talk:Stepshep|¡Talk to me!]]</font> 23:18, 5 January 2009 (UTC)
== <nowiki>listas={{{listas|}}}</nowiki> ==
It says in the template doc that <nowiki>listas={{{listas|}}}</nowiki> is required for the template to work. I was wondering if this changes means that {{tl|OH-Project}} needs updated to include this? Is this a recent thing? I don't remember it always being required or even existent. <font color="green" face="Comic Sans MS">[[User:Stepshep|§hep]]</font> • <font color="green" face="Comic Sans MS">[[User talk:Stepshep|¡Talk to me!]]</font> 19:59, 22 December 2008 (UTC)
:This functionality should really be included in all banners, notwithstanding the fact that it is currently broken <tt>:D</tt>. I am waiting on a MediaWiki configuration change ({{bug|16552}}) to make it possible to use this system efficiently. But there's no reason not to include it. The banner isn't going to explode if you ''don't'' use this feature, but equally it's not going to do any harm if you do. You don't even have to document it if you don't want to encourage its use. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 13:30, 23 December 2008 (UTC)
::If you could include it that'd be great and I'd be more than happy to doc it. I just can't touch the template in its current state... Thanks. <font color="green" face="Comic Sans MS">[[User:Stepshep|§hep]]</font> • <font color="green" face="Comic Sans MS">[[User talk:Stepshep|¡Talk to me!]]</font> 21:06, 25 December 2008 (UTC)
:::{{done}} <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 21:41, 25 December 2008 (UTC)
::::Thanks. <font color="green" face="Comic Sans MS">[[User:Stepshep|§hep]]</font> • <font color="green" face="Comic Sans MS">[[User talk:Stepshep|¡Talk to me!]]</font> 21:41, 25 December 2008 (UTC)
:::::I have found a number of instances where the WP Greece banner does explode if it does not have a value for the listas parameter but a banner above it, especially WP Biography, does have a value for the listas parameter. It is not a pretty sight.
:::::I firmly believe that all banners should use the listas parameter, rather than the hodge-podge that now exists. I further believe that all banners should have nested=yes.
:::::Although I am working to clean it out [[:Category:Pages with DEFAULTSORT conflicts]] may have examples of the above. Within the last 12 hours a bot has completed the listas parameter in only the WP Biography template. See what a mess can be made.
::::::[[User:JimCubb|JimCubb]] ([[User talk:JimCubb|talk]]) 16:27, 6 January 2009 (UTC)
:::::::The {{para|nested}} parameter is completely superfluous on WPBannerMeta banners; you can include or not include it at your pleasure, but if you experiment you'll see that it has no effect whatsoever: moving a WPBannerMeta banner inside a banner shell collapses it [[d:automagically|automagically]]. As for listas, note that this functionality is currently somewhat broken (see [[#listas functionality]] below; we're waiting on a MediaWiki configuration change that will make it much easier to fix listas conflicts both here and with other banners. Your comments in that thread would be very much appreciated. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 16:35, 6 January 2009 (UTC)
== listas functionality ==
On the to-do list, there is '''check listas functionality'''.
It looks to me as it's not quite doing which it should be. Although there is some code in WPBannerMeta/core which does <tt>'''<nowiki>{{#if:{{{listas|}}}|{{DEFAULTSORT:{{{listas}}}}}
}}</nowiki>'''</tt>, anywhere that a category is set, it is overriding the default sort with the <nowiki>{{PAGENAME}}</nowiki> value. For example <tt>'''<nowiki>[[Category:{{{MAIN_CAT}}}|{{PAGENAME}}]]</nowiki>'''</tt>
I think if <tt><nowiki>{{#if:{{{listas|}}}|{{DEFAULTSORT:{{{listas}}}}}
}}</nowiki></tt> was moved from WPBannerMeta/core to WPBannerMeta and then in WPBannerMeta listas was passed to core as <tt><nowiki>|listas = {{{listas|{{PAGENAME}}}}}</nowiki></tt> and also the listas parameter passed through to the other subpages as well, then category setting code could be changed to override to the listas value, For example <tt>'''<nowiki>[[Category:{{{MAIN_CAT}}}|{{{listas}}}]]</nowiki>'''</tt>
Would that be better?
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 19:20, 5 January 2009 (UTC)
:The todo should probably be "''fix'' listas functionality", it is currently as you say completely broken. I'm actually waiting for {{bug|16552}}, which will make the whole issue a hell of a lot easier (we'd just need to remove the sortkeys altogether). The solution you propose would fix the problem, but it would require passing parameters around that will become superfluous in the (hopefully) near future. I can 'fix' it if there's a pressing need for it, but I'm not aware of many projects that actively use this feature at the moment... <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 20:04, 5 January 2009 (UTC)
::No pressing need, although if you moved the <tt><nowiki>{{#if:{{{listas|}}}|{{DEFAULTSORT:{{{listas}}}}} }}</nowiki></tt> bit from core into the main template, there wouldn't be any need to pass listas over to core. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:29, 5 January 2009 (UTC)
:::On the contrary, you'd have to pass 'listas', defaulting to <tt><nowiki>{{PAGENAME}}</nowiki></tt>, everywhere you wanted a category, so it could be specified as a sortkey. It would be messy <tt>:D</tt> <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 22:51, 5 January 2009 (UTC)
::::I'm meaning after {{bug|16552}} is fixed. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 19:05, 6 January 2009 (UTC)
:::::Ah, I see. Then yes, as you say, after the bug is fixed it will be very easy; move the listas code as you say, and remove all the sorkeys from all the subtemplates. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 20:02, 6 January 2009 (UTC)
|