This template was considered for deletion on 29 January 2010. The result of the discussion was "redirect". |
This template provides a method of dynamically hiding or revealing large navigation boxes.
{{Dynamic navigation box|TITLE=title|CONTENT=content}}
From {{ Portals}}:
{{Dynamic navigation box|TITLE=[[Portal:Browse|'''Browse by themes''']] |CONTENT= [[Portal:Africa|Africa]] - [[Portal:Agronomy|Agronomy]] - [[Portal:Algeria|Algeria]] - [[Portal:Ancient Egypt|Ancient Egypt]] - [[Portal:Archaeology|Archaeology]] - [[Portal:Art|Art]] . . . }}
Added documentation Phil | Talk 09:10, 26 September 2005 (UTC)
The CSS code to make this work seems to have been included into the Mediawiki:monobook.css, but not in others. Would someone be so kind and enable it for the others ? ( Mediawiki:Cologneblue.css, Mediawiki:Standard.css, etc. Maybe it can be included in Mediawiki:Common.css ? -- User:Docu
I oppose this template completely. You're using a template to perform a function which really should be requested/added as a software feature. Templates should be used to replicate text among articles, not change the fundamental navigation structure outside of the article body. --
Netoholic
@ 19:33, 2 January 2006 (UTC)
There should be an option to hide or show the content by default. This template is worthless if it's showing everything by default. — Cantus… ☎ 16:01, 25 February 2006 (UTC)
Would someone update the above to make it work in that skin as well? I'm not sure if that js-page is included though. I made the necessary additions to MediaWiki:Cologneblue.css for this template. -- User:Docu
Hi, has anyone figured out, how to add a hide option to large wikitables that the user can expand open if they want to -- Cloveious 03:32, 12 August 2006 (UTC)
I can't seem to change the width of the box. I'd like to use 94% (same as {{ NavigationBox}} but the WIDTH parameter seems to be ignored. Andrwsc 03:00, 29 September 2006 (UTC)
This template looks like it's basically superseded by the template above, which provides v-d-e-links. Shinobu 15:25, 30 October 2006 (UTC)
The first village on Template:Engadin_villages is now on a separate line. Is it the change from <div> to a wikitable version that broke it? If yes, how can it be fixed? Change it back to div? -- User:Docu
Some of the table formating appears in the resulting table eg "class="navbox collapsible autocollapse" style="margin: auto; "", and also a spurious "|}". Can someone take a look as I cannot spot the problem. eg Template:NZR Lines
ThanX NevilleDNZ 10:42, 20 December 2006 (UTC)
re: Desired output....
Basically the template is working except for the 'class="navbox collapsible autocollapse" style="margin: auto; "', and also a spurious "|}". If I could help remove these and the problem is fixed. NevilleDNZ 20:49, 20 December 2006 (UTC)
The nesting seems unnecessary to me; people shouldn't have to click 2 [show]s to get to a line. I propose 4 top-level show/hides in total, with everything in each of the 4 displayed completely. For the first one,
Pomte 16:58, 24 December 2006 (UTC)
I have fixed the problem, it seems to be a bug in the following line: {{#if:{{{COLOR|{{{color|}}}}}}|style="background-color: {{{COLOR|{{{color}}}}}}"}}. I suspect that the #if: does not nest properly. So I picked up a pre-#if version, and using this I create the template:Dynamic_navigation_box_nested. Now Template:NZR_Lines works fine.
Removing the nesting as Pomte suggests would also solve the problem, but I believe the bug manifests itself in some 3000 Olympic sport events pages, so it would be better to attack the root cause in "#if:" failing to nest.
NevilleDNZ 21:05, 24 December 2006 (UTC)
The problem with that #if: may be that there's no ending semi-colon. Thank you for creating Template:Dynamic navigation box nested; I was looking for something like that to use for another template. I want to add a parameter for the default state the nested box (like "state" in Template:Navbox generic). Also, personally I don't care but it seems the convention is for parameters to be lowercase. Pomte 21:31, 24 December 2006 (UTC)
ThanX for fixing the problem. I have raised a speedy delete on v0/nested version of this page. BTW: You could have used the <table> ~ </table> construct instead of the \n{| ~\n|} to solve the problem? Cheers NevilleDNZ 19:55, 25 December 2006 (UTC)
I specifically chose this template because it didn't have the stupid "v · d · e" links. Now that they have been forced onto this template, what options do I have? Are there alternates to {{ Dynamic navigation box}}, or can we add an option to make them optional (pardon the pun) for specific instances?
In case you are wondering why I want to get rid of them:
I want to use a standard navigation box meta-template instead of hard-coding it myself (like the aforementioned CanPM), but I don't want the non-intuitive clutter of "v · d · e". Any suggestions? Andrwsc 18:04, 4 January 2007 (UTC)
The following is in response to the point brought up by Andrwsc.
title
or
Tooltip giving the same description as the tap on the top of the page. Also, v-d-e comes from View - Discussion - Edit.Also, the "normal way" is just horrible, the editor has to dig out the template name from the source and then know that it needs to prefix it with Template: before pasting it the in the address bar. Needless to say only experienced editor can accomplish this.
As for that comment on the "hopeless" template, it was referring to British Rail Diesel Loco templates which seem to abandoned and unmaintained. You can see the other by going to Category:Dynamic navigation box without vde
Ultimately, I see three template types: one that uses Navframe, another that uses Collapsible, and one that has a groups with lists. All with nearly the same parameters.
I also think there should be a template beside Template:hidden that can be used with navboxes (and doesn't break when JavaScript is disable) so we don't have atrocities like Template:NZR Lines.
-- Dispenser 23:24, 4 January 2007 (UTC)
Would it be possible to add an optional parameter to this template allowing the vde and show/hide links to be color controlled? For example, at WikiProject College football we have lots of template that we would like to switch to this template to add the vde and show/hide capability, but quite a few of our templates use dark colors (school colors) for the background of the title bar. Thus, the vde and show/hide links won't show up since they are the default blue. If we could control them, we would make them identical to the other school color that is used in the title. See Template:NittanyLionsCoach for an example of the problem. We would change the color to the white which would match the title font color's. This should of course be optional as most templates using this won't need it. -- MECU≈ talk 18:06, 11 January 2007 (UTC)
This template was considered for deletion on 29 January 2010. The result of the discussion was "redirect". |
This template provides a method of dynamically hiding or revealing large navigation boxes.
{{Dynamic navigation box|TITLE=title|CONTENT=content}}
From {{ Portals}}:
{{Dynamic navigation box|TITLE=[[Portal:Browse|'''Browse by themes''']] |CONTENT= [[Portal:Africa|Africa]] - [[Portal:Agronomy|Agronomy]] - [[Portal:Algeria|Algeria]] - [[Portal:Ancient Egypt|Ancient Egypt]] - [[Portal:Archaeology|Archaeology]] - [[Portal:Art|Art]] . . . }}
Added documentation Phil | Talk 09:10, 26 September 2005 (UTC)
The CSS code to make this work seems to have been included into the Mediawiki:monobook.css, but not in others. Would someone be so kind and enable it for the others ? ( Mediawiki:Cologneblue.css, Mediawiki:Standard.css, etc. Maybe it can be included in Mediawiki:Common.css ? -- User:Docu
I oppose this template completely. You're using a template to perform a function which really should be requested/added as a software feature. Templates should be used to replicate text among articles, not change the fundamental navigation structure outside of the article body. --
Netoholic
@ 19:33, 2 January 2006 (UTC)
There should be an option to hide or show the content by default. This template is worthless if it's showing everything by default. — Cantus… ☎ 16:01, 25 February 2006 (UTC)
Would someone update the above to make it work in that skin as well? I'm not sure if that js-page is included though. I made the necessary additions to MediaWiki:Cologneblue.css for this template. -- User:Docu
Hi, has anyone figured out, how to add a hide option to large wikitables that the user can expand open if they want to -- Cloveious 03:32, 12 August 2006 (UTC)
I can't seem to change the width of the box. I'd like to use 94% (same as {{ NavigationBox}} but the WIDTH parameter seems to be ignored. Andrwsc 03:00, 29 September 2006 (UTC)
This template looks like it's basically superseded by the template above, which provides v-d-e-links. Shinobu 15:25, 30 October 2006 (UTC)
The first village on Template:Engadin_villages is now on a separate line. Is it the change from <div> to a wikitable version that broke it? If yes, how can it be fixed? Change it back to div? -- User:Docu
Some of the table formating appears in the resulting table eg "class="navbox collapsible autocollapse" style="margin: auto; "", and also a spurious "|}". Can someone take a look as I cannot spot the problem. eg Template:NZR Lines
ThanX NevilleDNZ 10:42, 20 December 2006 (UTC)
re: Desired output....
Basically the template is working except for the 'class="navbox collapsible autocollapse" style="margin: auto; "', and also a spurious "|}". If I could help remove these and the problem is fixed. NevilleDNZ 20:49, 20 December 2006 (UTC)
The nesting seems unnecessary to me; people shouldn't have to click 2 [show]s to get to a line. I propose 4 top-level show/hides in total, with everything in each of the 4 displayed completely. For the first one,
Pomte 16:58, 24 December 2006 (UTC)
I have fixed the problem, it seems to be a bug in the following line: {{#if:{{{COLOR|{{{color|}}}}}}|style="background-color: {{{COLOR|{{{color}}}}}}"}}. I suspect that the #if: does not nest properly. So I picked up a pre-#if version, and using this I create the template:Dynamic_navigation_box_nested. Now Template:NZR_Lines works fine.
Removing the nesting as Pomte suggests would also solve the problem, but I believe the bug manifests itself in some 3000 Olympic sport events pages, so it would be better to attack the root cause in "#if:" failing to nest.
NevilleDNZ 21:05, 24 December 2006 (UTC)
The problem with that #if: may be that there's no ending semi-colon. Thank you for creating Template:Dynamic navigation box nested; I was looking for something like that to use for another template. I want to add a parameter for the default state the nested box (like "state" in Template:Navbox generic). Also, personally I don't care but it seems the convention is for parameters to be lowercase. Pomte 21:31, 24 December 2006 (UTC)
ThanX for fixing the problem. I have raised a speedy delete on v0/nested version of this page. BTW: You could have used the <table> ~ </table> construct instead of the \n{| ~\n|} to solve the problem? Cheers NevilleDNZ 19:55, 25 December 2006 (UTC)
I specifically chose this template because it didn't have the stupid "v · d · e" links. Now that they have been forced onto this template, what options do I have? Are there alternates to {{ Dynamic navigation box}}, or can we add an option to make them optional (pardon the pun) for specific instances?
In case you are wondering why I want to get rid of them:
I want to use a standard navigation box meta-template instead of hard-coding it myself (like the aforementioned CanPM), but I don't want the non-intuitive clutter of "v · d · e". Any suggestions? Andrwsc 18:04, 4 January 2007 (UTC)
The following is in response to the point brought up by Andrwsc.
title
or
Tooltip giving the same description as the tap on the top of the page. Also, v-d-e comes from View - Discussion - Edit.Also, the "normal way" is just horrible, the editor has to dig out the template name from the source and then know that it needs to prefix it with Template: before pasting it the in the address bar. Needless to say only experienced editor can accomplish this.
As for that comment on the "hopeless" template, it was referring to British Rail Diesel Loco templates which seem to abandoned and unmaintained. You can see the other by going to Category:Dynamic navigation box without vde
Ultimately, I see three template types: one that uses Navframe, another that uses Collapsible, and one that has a groups with lists. All with nearly the same parameters.
I also think there should be a template beside Template:hidden that can be used with navboxes (and doesn't break when JavaScript is disable) so we don't have atrocities like Template:NZR Lines.
-- Dispenser 23:24, 4 January 2007 (UTC)
Would it be possible to add an optional parameter to this template allowing the vde and show/hide links to be color controlled? For example, at WikiProject College football we have lots of template that we would like to switch to this template to add the vde and show/hide capability, but quite a few of our templates use dark colors (school colors) for the background of the title bar. Thus, the vde and show/hide links won't show up since they are the default blue. If we could control them, we would make them identical to the other school color that is used in the title. See Template:NittanyLionsCoach for an example of the problem. We would change the color to the white which would match the title font color's. This should of course be optional as most templates using this won't need it. -- MECU≈ talk 18:06, 11 January 2007 (UTC)