![]() | This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Can somebody modify the code so users can change the color of the template, and that it automatically includes some kind of show/hide function? JQF 19:40, 26 October 2006 (UTC)
I modified the template so that blank or omitted group#=
tags don't show up in the final product. --
Dinoguy1000
Talk
11:17, 7 November 2006 (UTC)
When displayed, a few blank lines seem to appear above the template; cf example on the template's page. I scanned the code in case there were a few hidden carriage-returns, but haven't spotted any... Anyone else seeing this...? Thanks, David Kernow ( talk) 12:16, 8 November 2006 (UTC)
Heh, I never knew that style="width:auto"
would actually work... Evidently, I didn't pay close enough attention to the tutorials that I've read... --
Dinoguy1000
Talk
19:37, 8 November 2006 (UTC)
Might this be made applicable to the groupX and/or listX parameters...? (Hope I'm not missing something obvious.) When one or more lists contain only one or two entries, for example, a left-align (plus a little padding-left) seems more appropriate for all lists as otherwise there can be a wide gap between a groupX name and the beginning of a short listX...) Hope that makes sense, David Kernow ( talk) 04:35, 9 November 2006 (UTC)
width:auto
CSS code? Any thoughts? --
Dinoguy1000
Talk
21:49, 9 November 2006 (UTC)
Anyone else seeing the slight misalignment of the {{ Chadian-Sudanese conflict}} Navbox generic template (as regards the other two templates below it) at the end of the Sudan article...? If so, I'm not sure how it may be corrected... Regards, David Kernow ( talk) 04:44, 9 November 2006 (UTC)
...It appears to be caused by the align parameter... David ( talk) 04:48, 9 November 2006 (UTC)
Is there any way the template can be designed so that you can use any number of lines you need, without all those lines actually being individually represented in the template? I'm especially looking for a method that doesn't use another template, for the sake of simplicity (or something like that). -- Dinoguy1000 Talk 22:01, 9 November 2006 (UTC)
I'd just like to mention that even though I suck at doing anything with templates so I'm not going to fix it myself for fear of breaking half the 'pedia, I don't like this new centeredness thing. Just my two cents. Thanks, Mak (talk) 03:30, 10 November 2006 (UTC)
Can we get a thinner border (actually, the "cellpadding" or whatever, between the outer border and the box itself)? It's something like 6 or 8px now, and it looks too "fat". Duja ► 12:34, 19 December 2006 (UTC)
I added 4 more optional items, adding up to 16 because... I need them. Is that a problem? Duja ► 13:02, 19 December 2006 (UTC)
I'm having some issues with this template and despite trying to figure it out for myself I just can't nail it. The "style" parameter determines the width of the whole box, but what determines the width of the "groups" column and the "lists" column? I would like the "groups" column to resize itself just slightly bigger than the text it contains, but often it decides to go much bigger. For example:
Is it possible to add an extra parameter so that the width of the "groups" column can be directly adjusted? Templationist 20:36, 17 January 2007 (UTC)
|group-style = width:33%;
.|group-style = width:1%;
. Note that the column expands to fit the text.The colour parameter only affects the titlebar colour. This usually means it will clash with the default blueish colour that's used for the "group" cells. Is it possible to either add an extra parameter for the group cells, or have the current parameter cover the group cells too? Templationist 20:59, 17 January 2007 (UTC)
<th>{{{group''N''}}}</th>
to <th style="background:{{{group_col|}}};">{{{group''N''}}}</th>
or the like, i.e. where the parameter {{{group_col}}} can be used to set the color. Yours,
David Kernow
(talk)
08:02, 18 January 2007 (UTC)background-color: #nnnnnn; text-align: (left|center|right); vertical-align: (top|middle|bottom)
...etc. This option overrides any styles that are applied to the entire table. Below is an example showing altered title and group backgrounds with the group text aligned to the right and top. It also shows how the text-alignment of the table (center) is overridden by the text-alignment of the group (right). --
Zyxw
10:26, 8 February 2007 (UTC){{Navbox generic | name = {{subst:PAGENAME}} | title = Navbox_generic using "group-style" parameter | color = #DDDDDD | style = width: 60%; text-align: center; | group-style = background-color: #EEEEEE; text-align: right; vertical-align: top; | state = uncollapsed | group1 = Group1 | list1 = Item1{{·}} Item2<br> Item3{{·}} Item4<br> Item5{{·}} Item6<br> Item7{{·}} Item8 | group2 = Group2 | list2 = Item1{{·}} Item2{{·}} Item3{{·}} Item4{{·}} Item5{{·}} Item6{{·}} Item7 {{·}} Item8 }}
In an attempt to consolidate the navigation templates, I have updated {{ Navbox generic}} to handle the image and bottom parameters as currently used in {{ Navbox generic with image}}, plus a new top parameter. The template documentation has also been updated with descriptions and examples. The changes were made in a way that should not effect any existing templates using {{ Navbox generic}}.
{{{title}}} | |
---|---|
{{{group1}}} | {{{list1}}} |
{{{group2}}} | {{{list2}}} |
{{{group3}}} | {{{list3}}} |
{{{title}}} | |||||||
---|---|---|---|---|---|---|---|
|
{{{image}}} | ||||||
{{{bottom}}} |
{{{title}}} | ||
---|---|---|
{{{top}}} | ||
{{{group1}}} | {{{list1}}} | {{{image}}} |
{{{group2}}} | {{{list2}}} | |
{{{group3}}} | {{{list3}}} | |
{{{bottom}}} |
Notice that {{ Navbox generic with image}} displays the image by creating two tables (one embedded inside another), while the new {{ Navbox generic}} does it with a single table. I tested these changes before adding them to the template, but please post a message here if it causes any unforeseen problems. -- Zyxw 21:10, 22 February 2007 (UTC)
![]() | This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Can somebody modify the code so users can change the color of the template, and that it automatically includes some kind of show/hide function? JQF 19:40, 26 October 2006 (UTC)
I modified the template so that blank or omitted group#=
tags don't show up in the final product. --
Dinoguy1000
Talk
11:17, 7 November 2006 (UTC)
When displayed, a few blank lines seem to appear above the template; cf example on the template's page. I scanned the code in case there were a few hidden carriage-returns, but haven't spotted any... Anyone else seeing this...? Thanks, David Kernow ( talk) 12:16, 8 November 2006 (UTC)
Heh, I never knew that style="width:auto"
would actually work... Evidently, I didn't pay close enough attention to the tutorials that I've read... --
Dinoguy1000
Talk
19:37, 8 November 2006 (UTC)
Might this be made applicable to the groupX and/or listX parameters...? (Hope I'm not missing something obvious.) When one or more lists contain only one or two entries, for example, a left-align (plus a little padding-left) seems more appropriate for all lists as otherwise there can be a wide gap between a groupX name and the beginning of a short listX...) Hope that makes sense, David Kernow ( talk) 04:35, 9 November 2006 (UTC)
width:auto
CSS code? Any thoughts? --
Dinoguy1000
Talk
21:49, 9 November 2006 (UTC)
Anyone else seeing the slight misalignment of the {{ Chadian-Sudanese conflict}} Navbox generic template (as regards the other two templates below it) at the end of the Sudan article...? If so, I'm not sure how it may be corrected... Regards, David Kernow ( talk) 04:44, 9 November 2006 (UTC)
...It appears to be caused by the align parameter... David ( talk) 04:48, 9 November 2006 (UTC)
Is there any way the template can be designed so that you can use any number of lines you need, without all those lines actually being individually represented in the template? I'm especially looking for a method that doesn't use another template, for the sake of simplicity (or something like that). -- Dinoguy1000 Talk 22:01, 9 November 2006 (UTC)
I'd just like to mention that even though I suck at doing anything with templates so I'm not going to fix it myself for fear of breaking half the 'pedia, I don't like this new centeredness thing. Just my two cents. Thanks, Mak (talk) 03:30, 10 November 2006 (UTC)
Can we get a thinner border (actually, the "cellpadding" or whatever, between the outer border and the box itself)? It's something like 6 or 8px now, and it looks too "fat". Duja ► 12:34, 19 December 2006 (UTC)
I added 4 more optional items, adding up to 16 because... I need them. Is that a problem? Duja ► 13:02, 19 December 2006 (UTC)
I'm having some issues with this template and despite trying to figure it out for myself I just can't nail it. The "style" parameter determines the width of the whole box, but what determines the width of the "groups" column and the "lists" column? I would like the "groups" column to resize itself just slightly bigger than the text it contains, but often it decides to go much bigger. For example:
Is it possible to add an extra parameter so that the width of the "groups" column can be directly adjusted? Templationist 20:36, 17 January 2007 (UTC)
|group-style = width:33%;
.|group-style = width:1%;
. Note that the column expands to fit the text.The colour parameter only affects the titlebar colour. This usually means it will clash with the default blueish colour that's used for the "group" cells. Is it possible to either add an extra parameter for the group cells, or have the current parameter cover the group cells too? Templationist 20:59, 17 January 2007 (UTC)
<th>{{{group''N''}}}</th>
to <th style="background:{{{group_col|}}};">{{{group''N''}}}</th>
or the like, i.e. where the parameter {{{group_col}}} can be used to set the color. Yours,
David Kernow
(talk)
08:02, 18 January 2007 (UTC)background-color: #nnnnnn; text-align: (left|center|right); vertical-align: (top|middle|bottom)
...etc. This option overrides any styles that are applied to the entire table. Below is an example showing altered title and group backgrounds with the group text aligned to the right and top. It also shows how the text-alignment of the table (center) is overridden by the text-alignment of the group (right). --
Zyxw
10:26, 8 February 2007 (UTC){{Navbox generic | name = {{subst:PAGENAME}} | title = Navbox_generic using "group-style" parameter | color = #DDDDDD | style = width: 60%; text-align: center; | group-style = background-color: #EEEEEE; text-align: right; vertical-align: top; | state = uncollapsed | group1 = Group1 | list1 = Item1{{·}} Item2<br> Item3{{·}} Item4<br> Item5{{·}} Item6<br> Item7{{·}} Item8 | group2 = Group2 | list2 = Item1{{·}} Item2{{·}} Item3{{·}} Item4{{·}} Item5{{·}} Item6{{·}} Item7 {{·}} Item8 }}
In an attempt to consolidate the navigation templates, I have updated {{ Navbox generic}} to handle the image and bottom parameters as currently used in {{ Navbox generic with image}}, plus a new top parameter. The template documentation has also been updated with descriptions and examples. The changes were made in a way that should not effect any existing templates using {{ Navbox generic}}.
{{{title}}} | |
---|---|
{{{group1}}} | {{{list1}}} |
{{{group2}}} | {{{list2}}} |
{{{group3}}} | {{{list3}}} |
{{{title}}} | |||||||
---|---|---|---|---|---|---|---|
|
{{{image}}} | ||||||
{{{bottom}}} |
{{{title}}} | ||
---|---|---|
{{{top}}} | ||
{{{group1}}} | {{{list1}}} | {{{image}}} |
{{{group2}}} | {{{list2}}} | |
{{{group3}}} | {{{list3}}} | |
{{{bottom}}} |
Notice that {{ Navbox generic with image}} displays the image by creating two tables (one embedded inside another), while the new {{ Navbox generic}} does it with a single table. I tested these changes before adding them to the template, but please post a message here if it causes any unforeseen problems. -- Zyxw 21:10, 22 February 2007 (UTC)