![]() | 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. |
UPDATE: The padding issue was resolved in this edit to MediaWiki:Common.css, therefore the examples below do not accurately show the differences that existed prior to 18 March 2007. -- Zyxw 04:03, 28 March 2007 (UTC)
The following examples show the effects of different CSS padding values on the table generated by {{ Navbox generic}} (users of Internet Explorer 6 for Windows will see no differences in these examples, as CSS padding for tables seems to be ignored). Each is followed by a {{ Navigation}}-based template with the title background color changed for comparison.
class="navbox"
(see table.navbox in
MediaWiki:common.css). This creates a large amount of padding between the border and the body of the table.class="NavFrame"
(see div.NavFrame in
MediaWiki:common.css) used by the Navigation template. However, this creates a larger amount of padding than seen in the Navigation template. The reason for the difference is the "cellspacing" (or "border-spacing" in CSS) of the table created by Navbox generic, which is not an issue in Navigation because it does not use tables.padding: 0;
which gives the template an appearance much closer to that of the Navigation-based template.Based on the above results, I suggest making the change shown in the final example. I have tested these examples with three Windows browsers: Internet Explorer, Firefox and Opera. If it does not work correctly in other browsers, please let me know. -- Zyxw 08:49, 5 March 2007 (UTC)
padding:0
makes it too small, then let's change it to padding:2px
. –
Zyxw
20:08, 16 March 2007 (UTC)I made the template code more readable, it shouldn't have broken anything, but tell me if it did. -- Dinoguy1000 Talk 23:03, 7 March 2007 (UTC)
If you're interested in participating in a discussion about a potential style guideline for navigational templates (specifically footers), please indicate your interest at Wikipedia talk:Navigational templates#Style guideline for footer templates. -- Rick Block ( talk) 02:03, 25 March 2007 (UTC)
I'd like to convert Template:Barenaked Ladies over to this standardized template, but the template requires a few subheaders (the grey rows). I don't think any of the existing navboxes accept this style (please point me to one if one exists). I could do it with a listx and no groupx, if you could control the bgcolor of listx's, but you can't. Is there any way we could add a subheaderx tag to accomodate this? Thanks. TheHYPO 21:34, 5 April 2007 (UTC)
Hmm, maybe it's just me, but something changed with the parameter names. Take a look at {{ NHL}}. This is good (new version), and this is bad (old version), and here is the the diff. I'm sure this has to be happening to many other templates, but I didn't want to jump in the middle and try to fix it myself. Certainly not on a Monday after Friday the 13th. :) — MrDolomite • Talk 18:08, 16 April 2007 (UTC)
I updated the Protected template to reflect this template's new protected status (from {{ sprotected2}} to {{ pp-protected}}). If anyone thinks of a better reason to put, feel free to put it there. -- Dinoguy1000 Talk 05:56, 28 April 2007 (UTC)
Compared to similar templates in the navigation series, it seems that font sizes for this template is slightly larger. How about reducing its font size to that in Template:Navigation? I just applied this template to Template:Singapore bus stations and the text size seems rather overwelming compared to the previous version [2].-- Huaiwei 09:46, 29 April 2007 (UTC)
I created a navbox generic in userspace for my user page (still up), as an experiment, and found that the v/d/e links are broken. It strips the namespace portion out of the template name. Is this a problem here or with the susbt'd pagename template? MrZaius talk 08:25, 18 May 2007 (UTC)
Template:
. I don't know of any such template for other namespaces. You can try to substitute and work out how to manually make the three links, or avoid vde by using {{
Navbox}} instead. ({{PAGENAME}}
isn't a template but a
magic word.) –
Pomte
03:29, 19 May 2007 (UTC)At the bottom of New York City Subway, it would be nice if the subway template were expanded by default, since, well, the article is about the subway. Is that possible? -- NE2 16:43, 23 April 2007 (UTC)
show
, which, if set to any value other than collapsed
or autocollapse
, will expand the navbox. –
Pomte
01:47, 25 April 2007 (UTC)
This trick should be documented. For you convenience, the change is [3] and [4]. Another example is {{ peso}}. -- ChoChoPK (球球PK) ( talk | contrib) 03:31, 27 April 2007 (UTC)
state
is a more appropriate parameter name, so I have documented that method. –
Pomte
03:49, 27 April 2007 (UTC)|state = {{{state<includeonly>|expanded</includeonly>}}}
.{{
European Union topics}} on
Eurozone. I think I spelled |state=collapsed
correctly. --
ChoChoPK (球球PK) (
talk |
contrib)
04:31, 18 June 2007 (UTC)
Hello :en:User:All-of-you
As you probably know, users on other wiki-languages are working on their own languages, but based on your work. For my specific case, I translate articles for Wikipédia, and trying to use templates uniformaly. Since few days, I'm working on cities of British-Columbia ( FR) and I've tried to include this template. With a little search, I've noticed that many languages are using this template, but some are not working proprely.
In certain cases, the default colors are right but the collapse doesn't work, in other cases it's the opposite! My problem is for french : the default colors AND the collapse doesn't work. I think it's the MediaWiki:Common.css or MediaWiki:Common.js, but I'm not sure what I need to request to Admins!? Can someone give me a hand with that? I not really good with "Style sheets". Thanks in advance for your help!
Have a nice day! -- Antaya 10:36, 2 July 2007 (UTC)
If I want to change the background and foreground colors in the title bar, how do I go about making links (like text) show in the foreground color? I can't see how to do that with this template. Stevie is the man! Talk • Work 16:45, 4 June 2007 (UTC)
titlestyle = background:
named_color; color:named_color; ...
but currently I'm not sure how well the {{
Tnavbar}} template Navbox generic uses in the titlebar handles colors... Regards,
David Kernow
(talk)
16:36, 9 June 2007 (UTC)
title = <font color="#abcdef">[[title]]</font>
. See {{
Elliott Smith}} for an example. While the link color changes, hovering over the link produces the same blue underline. Ugly, but I've found no other way to do it. –
Pomte
17:31, 9 June 2007 (UTC)
title = [[link|<span style="color:#abcdef;">title</span>]]
.fontcolor
parameter, which can easily be added to this template by David. It's not the templates' fault; there's simply no convenient way to change link styles. –
Pomte
18:25, 9 June 2007 (UTC)
{{ editprotected}} On the line that transcludes {{ Tnavbar}}, please add the fontcolor parameter. Change
to
{{ Tnavbar}} has no numbered parameter 2, so the extra | won't cause any problems. – Pomte 07:09, 18 June 2007 (UTC)
}}}| fontcolor={{{fontcolor|}}}|mini=1}}
I'll do it tomorrow when I have the time to carefully test and document it. -- ChoChoPK (球球PK) ( talk | contrib) 07:30, 18 June 2007 (UTC)
Disabling editprotected. Chochopk, I'll let you test and make the edit. — Carl ( CBM · talk) 15:49, 18 June 2007 (UTC)
Has there been any progress with this? Does anyone have something I can test? Thanks. Stevie is the man! Talk • Work 16:30, 29 July 2007 (UTC)
fontcolor=
was just passed to {{
tnavbar}} and not color the title bar? It would have the benefit to allow the color of the links differently. —
Dispenser
15:31, 30 July 2007 (UTC)Any objections to the overdue edit request? I see no technical controversy about this parameter. I know User:MZMcBride is an admin familiar with templates, so you should contact him directly to get this over with. – Pomte 21:22, 1 August 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. |
UPDATE: The padding issue was resolved in this edit to MediaWiki:Common.css, therefore the examples below do not accurately show the differences that existed prior to 18 March 2007. -- Zyxw 04:03, 28 March 2007 (UTC)
The following examples show the effects of different CSS padding values on the table generated by {{ Navbox generic}} (users of Internet Explorer 6 for Windows will see no differences in these examples, as CSS padding for tables seems to be ignored). Each is followed by a {{ Navigation}}-based template with the title background color changed for comparison.
class="navbox"
(see table.navbox in
MediaWiki:common.css). This creates a large amount of padding between the border and the body of the table.class="NavFrame"
(see div.NavFrame in
MediaWiki:common.css) used by the Navigation template. However, this creates a larger amount of padding than seen in the Navigation template. The reason for the difference is the "cellspacing" (or "border-spacing" in CSS) of the table created by Navbox generic, which is not an issue in Navigation because it does not use tables.padding: 0;
which gives the template an appearance much closer to that of the Navigation-based template.Based on the above results, I suggest making the change shown in the final example. I have tested these examples with three Windows browsers: Internet Explorer, Firefox and Opera. If it does not work correctly in other browsers, please let me know. -- Zyxw 08:49, 5 March 2007 (UTC)
padding:0
makes it too small, then let's change it to padding:2px
. –
Zyxw
20:08, 16 March 2007 (UTC)I made the template code more readable, it shouldn't have broken anything, but tell me if it did. -- Dinoguy1000 Talk 23:03, 7 March 2007 (UTC)
If you're interested in participating in a discussion about a potential style guideline for navigational templates (specifically footers), please indicate your interest at Wikipedia talk:Navigational templates#Style guideline for footer templates. -- Rick Block ( talk) 02:03, 25 March 2007 (UTC)
I'd like to convert Template:Barenaked Ladies over to this standardized template, but the template requires a few subheaders (the grey rows). I don't think any of the existing navboxes accept this style (please point me to one if one exists). I could do it with a listx and no groupx, if you could control the bgcolor of listx's, but you can't. Is there any way we could add a subheaderx tag to accomodate this? Thanks. TheHYPO 21:34, 5 April 2007 (UTC)
Hmm, maybe it's just me, but something changed with the parameter names. Take a look at {{ NHL}}. This is good (new version), and this is bad (old version), and here is the the diff. I'm sure this has to be happening to many other templates, but I didn't want to jump in the middle and try to fix it myself. Certainly not on a Monday after Friday the 13th. :) — MrDolomite • Talk 18:08, 16 April 2007 (UTC)
I updated the Protected template to reflect this template's new protected status (from {{ sprotected2}} to {{ pp-protected}}). If anyone thinks of a better reason to put, feel free to put it there. -- Dinoguy1000 Talk 05:56, 28 April 2007 (UTC)
Compared to similar templates in the navigation series, it seems that font sizes for this template is slightly larger. How about reducing its font size to that in Template:Navigation? I just applied this template to Template:Singapore bus stations and the text size seems rather overwelming compared to the previous version [2].-- Huaiwei 09:46, 29 April 2007 (UTC)
I created a navbox generic in userspace for my user page (still up), as an experiment, and found that the v/d/e links are broken. It strips the namespace portion out of the template name. Is this a problem here or with the susbt'd pagename template? MrZaius talk 08:25, 18 May 2007 (UTC)
Template:
. I don't know of any such template for other namespaces. You can try to substitute and work out how to manually make the three links, or avoid vde by using {{
Navbox}} instead. ({{PAGENAME}}
isn't a template but a
magic word.) –
Pomte
03:29, 19 May 2007 (UTC)At the bottom of New York City Subway, it would be nice if the subway template were expanded by default, since, well, the article is about the subway. Is that possible? -- NE2 16:43, 23 April 2007 (UTC)
show
, which, if set to any value other than collapsed
or autocollapse
, will expand the navbox. –
Pomte
01:47, 25 April 2007 (UTC)
This trick should be documented. For you convenience, the change is [3] and [4]. Another example is {{ peso}}. -- ChoChoPK (球球PK) ( talk | contrib) 03:31, 27 April 2007 (UTC)
state
is a more appropriate parameter name, so I have documented that method. –
Pomte
03:49, 27 April 2007 (UTC)|state = {{{state<includeonly>|expanded</includeonly>}}}
.{{
European Union topics}} on
Eurozone. I think I spelled |state=collapsed
correctly. --
ChoChoPK (球球PK) (
talk |
contrib)
04:31, 18 June 2007 (UTC)
Hello :en:User:All-of-you
As you probably know, users on other wiki-languages are working on their own languages, but based on your work. For my specific case, I translate articles for Wikipédia, and trying to use templates uniformaly. Since few days, I'm working on cities of British-Columbia ( FR) and I've tried to include this template. With a little search, I've noticed that many languages are using this template, but some are not working proprely.
In certain cases, the default colors are right but the collapse doesn't work, in other cases it's the opposite! My problem is for french : the default colors AND the collapse doesn't work. I think it's the MediaWiki:Common.css or MediaWiki:Common.js, but I'm not sure what I need to request to Admins!? Can someone give me a hand with that? I not really good with "Style sheets". Thanks in advance for your help!
Have a nice day! -- Antaya 10:36, 2 July 2007 (UTC)
If I want to change the background and foreground colors in the title bar, how do I go about making links (like text) show in the foreground color? I can't see how to do that with this template. Stevie is the man! Talk • Work 16:45, 4 June 2007 (UTC)
titlestyle = background:
named_color; color:named_color; ...
but currently I'm not sure how well the {{
Tnavbar}} template Navbox generic uses in the titlebar handles colors... Regards,
David Kernow
(talk)
16:36, 9 June 2007 (UTC)
title = <font color="#abcdef">[[title]]</font>
. See {{
Elliott Smith}} for an example. While the link color changes, hovering over the link produces the same blue underline. Ugly, but I've found no other way to do it. –
Pomte
17:31, 9 June 2007 (UTC)
title = [[link|<span style="color:#abcdef;">title</span>]]
.fontcolor
parameter, which can easily be added to this template by David. It's not the templates' fault; there's simply no convenient way to change link styles. –
Pomte
18:25, 9 June 2007 (UTC)
{{ editprotected}} On the line that transcludes {{ Tnavbar}}, please add the fontcolor parameter. Change
to
{{ Tnavbar}} has no numbered parameter 2, so the extra | won't cause any problems. – Pomte 07:09, 18 June 2007 (UTC)
}}}| fontcolor={{{fontcolor|}}}|mini=1}}
I'll do it tomorrow when I have the time to carefully test and document it. -- ChoChoPK (球球PK) ( talk | contrib) 07:30, 18 June 2007 (UTC)
Disabling editprotected. Chochopk, I'll let you test and make the edit. — Carl ( CBM · talk) 15:49, 18 June 2007 (UTC)
Has there been any progress with this? Does anyone have something I can test? Thanks. Stevie is the man! Talk • Work 16:30, 29 July 2007 (UTC)
fontcolor=
was just passed to {{
tnavbar}} and not color the title bar? It would have the benefit to allow the color of the links differently. —
Dispenser
15:31, 30 July 2007 (UTC)Any objections to the overdue edit request? I see no technical controversy about this parameter. I know User:MZMcBride is an admin familiar with templates, so you should contact him directly to get this over with. – Pomte 21:22, 1 August 2007 (UTC)