![]() | This 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. |
Archive 1 | ← | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 |
Recent changes seem to have removed the title from {{
Politics of Germany by state}}
and I'm sure others. Cuold someone look into this please. Thx
AndrewRT(
Talk)
16:58, 2 May 2008 (UTC)
http://en.wikipedia.org/wiki/Template:Navbox crashes on FireFox (2.0.0.14). Some pages using Navbox also crash FireFox (for example, the current version of 2008 Stanley Cup Playoffs). ( Chinissai ( talk) 21:43, 6 May 2008 (UTC))
I have ported this template (both Navbox and Navbox/core) to a wiki not accessible from the internet (so this may be a bit difficult to diagnose). The template works fine if the image parameter is defined, but if it is not, the group cell widths are increased to fill up the whole width of the screen minus the list items cell width (which is squeezed to the smallest size possible while still allowing the text to be readable. I used the User:Ned Scott/Navbox/core version to fix some problems that this particular Wiki was showing with the template. I am content for now to just have an image on the Navbox, but if in the future we have something that doesn't need an image, it would be nice not to have to worry about it. If need be I can post some of the coding, but I will have to print it and copy it over long hand since the two networks do not touch and I am in a no removable media environment. Tigey ( talk) 17:18, 8 May 2008 (UTC)
{{Navbox |Name = Test Name |title = [[Top Level Page]] |image = [[Image:125px-picture.jpg]] |group1 = [[Group 1]] |list1 = [[List Item 1]] [[List Item 2]] |group2 = [[Group 2]] |list2 = [[List Item 3]] [[List Item 4]] }}
What I go was:
<tr><th style=";" colspan"3" class="navbox-title"> view.talk.edit Top Level Page</th></tr?,tr style=height:2px;"><td></td></tr><tr><td class="navbox-group" style=";;">Group 1</td><td style="text-align:left;border-left:2px solid #fdfdfd; width:100%;padding:0px;;;" class="navbox-list navbox-odd"> List Item 1 List Item 2</div></td><td style=width:0%;padding:0px 0px 0px 2px;" rowspan="3">Image:125px-Picture.jpg</td></tr><tr style=height:2px"><td></td></tr><tr><td class = navbox-group" style=";;">Group2</td><td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;;;" class="navbox-list navbox-even"> List Item 3 List Item 4</div></td></tr> </td></tr></table>
I figure I am intermediately wiki-savy, so this beats the heck out of me. I am having a hard time following this template, but I would really love to have it's functionality. Any hep would be appreciated. Unfortunately, the Wiki that I am using is not accessible from the Internet. All of the code above was transcribed by hand, so there may be some minor errors in there like missing "<>" or something. Any help would be greatly appreciated. Tigey ( talk) 17:36, 12 May 2008 (UTC)
</div>
after the links, and forces the title of the template on which it is called to be pushed down below the View.Edit.Talk links. Anything you can tell me will be of help. Thanks for your help!
Tigey (
talk
12:18, 13 May 2008 (UTC)
It's the tidy problem. There's some option called "tidy" that we have that other installations of MediaWiki don't normally have, and that normally breaks things with templates being copied over. I explained it once on User talk:Ned Scott#Porting Template:Navbox to other wikis, and I've been meaning to make a better explanation on WP:TRAN (which is also starting to list already converted templates, as well as a copy of Commons.css and .js that will work well on other wikis). I'll probably give another stab at this myself tonight. -- Ned Scott 04:40, 14 May 2008 (UTC)
style="...;;"
or style=";"
, although this is a problem with most templates that let you define custom styles)). —
Dino
guy
1000
17:17, 14 May 2008 (UTC)
An empty value of the state parameter always meant show, and I defined lots of templates on that assumption. Now it seems this no longer works - templates are being hidden where previously they weren't. Example: the "Pomeranian Voivodeship" template at the bottom of Chojnice County (and similarly with most other Polish "counties"). Is there some good reason for this? Any chance of it being changed back, or do I have to go round all these templates changing the default state from empty to something else?-- Kotniski ( talk) 10:21, 10 May 2008 (UTC)
| state = {{{state<includeonly>|uncollapsed</includeonly>}}}
| state = {{{state|}}}
Currently at the top of the documentation this template uses the {{ intricate}} warning. I intend to change that to the {{ high-use}} warning instead.
I have always felt that {{intricate}} doesn't really fit for high-risk / high-use templates, since it mostly talks about the code being intricate. That {{navbox}} is intricate is pretty obvious when one looks at the code or documentation, no need to tell that. What is not obvious from just looking at navbox is that it is used on 652,000 pages. So the {{high-use}} template is a way of telling that.
Also, I have noticed that many admins are sloppy and don't use sandboxes, instead they try things out directly on protected widely used high-risk templates. Edit comments like "just testing" on templates used on 100,000 pages or more are all too common. The {{high-use}} template points them to the /sandbox and /testcases instead.
I intend to add this code:
{{high-use|600,000+}}
Which will render like this:
![]() | This template is used on
600,000+ pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Any comments? Oh, and any suggestions for improvements of the {{ high-use}} template are welcome.
-- David Göthberg ( talk) 16:43, 15 May 2008 (UTC)
I was wondering why <th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}};"
is the way it is, with regard to the color of "border-left". Why isn't it transparent, and/or not declared to begin with? This question also applies to the twenty other instances of this as well, for each row's th. The only class which takes this color for border-left in common.css is .navbox-list, and the other two classes — .navbox and .navbox-subgroup — which take this color refer to background. --
Izno (
talk)
01:56, 16 May 2008 (UTC)
<th class="navbox-list" style="border-left: 2px solid; width: 100%;
? --
Izno (
talk)
04:41, 16 May 2008 (UTC)
<th class="navbox-list" style="width: 100%;
is correct? --
Izno (
talk)
05:41, 16 May 2008 (UTC)
Is it possible to remove the <td></td> and <tr></tr> stuff and replace them with other code?-- Richard ( Talk - Contribs) 22:42, 16 May 2008 (UTC)
(Warning: Answer isn't very focused but should cover all of your points, also, outdent) Wikitable code is an editor's friend; the way this template is coded is obviously for presentation purposes, and nothing else, and thus I see little purpose in recoding it simply for the editor's eyes. Following from that point, this template is used on thousands of pages, and as such does not need to be friendly to an editor's eyes, as it will rarely if ever be changed. As well, I believe (read: am unsure) it's easier on the parser to have this coded in straight html rather than the corresponding wikicode. From a compatibility standpoint, the only difference between compatible for this wiki and compatible for most wikis is simply setting UseTidy to true (alternatively, it may be the 1.12 final preprocessor; I'm not sure of which anymore).
Yes, it is possible, but I would disagree that it is only a degree more difficult, as I myself went through this in its pre-May update form and coded it using wiki-tml, which required that I use templates to call the correct characters to create a wiki table (such as {{
!}}), as well as eliminate (possibly) desired functionality in {{
Tnavbar}}. Not fun, and definitely not worth sacrificing other functionality.
No, that's not the reason we have parsers. We have parserfunctions because they are definitely easier for the parsers to handle, as compared to something like a template (ie, {{
qif}}) which duplicated the functionality of current parsers but was not only subjected to template limitations, but also "kill the wiki" limitations. As for wikitable code, it's a presentation based code, which keeps it simple for editors. Obviously, the people who maintain navbox know the corresponding html and thus design in that to get around those other issues (which they have specified).
MoS guideline... simple? Huh? I don't understand what you're saying. --
Izno (
talk)
05:25, 18 May 2008 (UTC)
I am viewing this on Opera, and on a number of pages with the Navbox used that I look at, the autocollapse has been disabled. Is it possible to reactivate it, because it is making pages look very unwieldy. -- AEMoreira042281 ( talk) 04:53, 22 May 2008 (UTC)
![]() | This 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. |
Archive 1 | ← | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 |
Recent changes seem to have removed the title from {{
Politics of Germany by state}}
and I'm sure others. Cuold someone look into this please. Thx
AndrewRT(
Talk)
16:58, 2 May 2008 (UTC)
http://en.wikipedia.org/wiki/Template:Navbox crashes on FireFox (2.0.0.14). Some pages using Navbox also crash FireFox (for example, the current version of 2008 Stanley Cup Playoffs). ( Chinissai ( talk) 21:43, 6 May 2008 (UTC))
I have ported this template (both Navbox and Navbox/core) to a wiki not accessible from the internet (so this may be a bit difficult to diagnose). The template works fine if the image parameter is defined, but if it is not, the group cell widths are increased to fill up the whole width of the screen minus the list items cell width (which is squeezed to the smallest size possible while still allowing the text to be readable. I used the User:Ned Scott/Navbox/core version to fix some problems that this particular Wiki was showing with the template. I am content for now to just have an image on the Navbox, but if in the future we have something that doesn't need an image, it would be nice not to have to worry about it. If need be I can post some of the coding, but I will have to print it and copy it over long hand since the two networks do not touch and I am in a no removable media environment. Tigey ( talk) 17:18, 8 May 2008 (UTC)
{{Navbox |Name = Test Name |title = [[Top Level Page]] |image = [[Image:125px-picture.jpg]] |group1 = [[Group 1]] |list1 = [[List Item 1]] [[List Item 2]] |group2 = [[Group 2]] |list2 = [[List Item 3]] [[List Item 4]] }}
What I go was:
<tr><th style=";" colspan"3" class="navbox-title"> view.talk.edit Top Level Page</th></tr?,tr style=height:2px;"><td></td></tr><tr><td class="navbox-group" style=";;">Group 1</td><td style="text-align:left;border-left:2px solid #fdfdfd; width:100%;padding:0px;;;" class="navbox-list navbox-odd"> List Item 1 List Item 2</div></td><td style=width:0%;padding:0px 0px 0px 2px;" rowspan="3">Image:125px-Picture.jpg</td></tr><tr style=height:2px"><td></td></tr><tr><td class = navbox-group" style=";;">Group2</td><td style="text-align:left;border-left:2px solid #fdfdfd;width:100%;padding:0px;;;" class="navbox-list navbox-even"> List Item 3 List Item 4</div></td></tr> </td></tr></table>
I figure I am intermediately wiki-savy, so this beats the heck out of me. I am having a hard time following this template, but I would really love to have it's functionality. Any hep would be appreciated. Unfortunately, the Wiki that I am using is not accessible from the Internet. All of the code above was transcribed by hand, so there may be some minor errors in there like missing "<>" or something. Any help would be greatly appreciated. Tigey ( talk) 17:36, 12 May 2008 (UTC)
</div>
after the links, and forces the title of the template on which it is called to be pushed down below the View.Edit.Talk links. Anything you can tell me will be of help. Thanks for your help!
Tigey (
talk
12:18, 13 May 2008 (UTC)
It's the tidy problem. There's some option called "tidy" that we have that other installations of MediaWiki don't normally have, and that normally breaks things with templates being copied over. I explained it once on User talk:Ned Scott#Porting Template:Navbox to other wikis, and I've been meaning to make a better explanation on WP:TRAN (which is also starting to list already converted templates, as well as a copy of Commons.css and .js that will work well on other wikis). I'll probably give another stab at this myself tonight. -- Ned Scott 04:40, 14 May 2008 (UTC)
style="...;;"
or style=";"
, although this is a problem with most templates that let you define custom styles)). —
Dino
guy
1000
17:17, 14 May 2008 (UTC)
An empty value of the state parameter always meant show, and I defined lots of templates on that assumption. Now it seems this no longer works - templates are being hidden where previously they weren't. Example: the "Pomeranian Voivodeship" template at the bottom of Chojnice County (and similarly with most other Polish "counties"). Is there some good reason for this? Any chance of it being changed back, or do I have to go round all these templates changing the default state from empty to something else?-- Kotniski ( talk) 10:21, 10 May 2008 (UTC)
| state = {{{state<includeonly>|uncollapsed</includeonly>}}}
| state = {{{state|}}}
Currently at the top of the documentation this template uses the {{ intricate}} warning. I intend to change that to the {{ high-use}} warning instead.
I have always felt that {{intricate}} doesn't really fit for high-risk / high-use templates, since it mostly talks about the code being intricate. That {{navbox}} is intricate is pretty obvious when one looks at the code or documentation, no need to tell that. What is not obvious from just looking at navbox is that it is used on 652,000 pages. So the {{high-use}} template is a way of telling that.
Also, I have noticed that many admins are sloppy and don't use sandboxes, instead they try things out directly on protected widely used high-risk templates. Edit comments like "just testing" on templates used on 100,000 pages or more are all too common. The {{high-use}} template points them to the /sandbox and /testcases instead.
I intend to add this code:
{{high-use|600,000+}}
Which will render like this:
![]() | This template is used on
600,000+ pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Any comments? Oh, and any suggestions for improvements of the {{ high-use}} template are welcome.
-- David Göthberg ( talk) 16:43, 15 May 2008 (UTC)
I was wondering why <th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}};"
is the way it is, with regard to the color of "border-left". Why isn't it transparent, and/or not declared to begin with? This question also applies to the twenty other instances of this as well, for each row's th. The only class which takes this color for border-left in common.css is .navbox-list, and the other two classes — .navbox and .navbox-subgroup — which take this color refer to background. --
Izno (
talk)
01:56, 16 May 2008 (UTC)
<th class="navbox-list" style="border-left: 2px solid; width: 100%;
? --
Izno (
talk)
04:41, 16 May 2008 (UTC)
<th class="navbox-list" style="width: 100%;
is correct? --
Izno (
talk)
05:41, 16 May 2008 (UTC)
Is it possible to remove the <td></td> and <tr></tr> stuff and replace them with other code?-- Richard ( Talk - Contribs) 22:42, 16 May 2008 (UTC)
(Warning: Answer isn't very focused but should cover all of your points, also, outdent) Wikitable code is an editor's friend; the way this template is coded is obviously for presentation purposes, and nothing else, and thus I see little purpose in recoding it simply for the editor's eyes. Following from that point, this template is used on thousands of pages, and as such does not need to be friendly to an editor's eyes, as it will rarely if ever be changed. As well, I believe (read: am unsure) it's easier on the parser to have this coded in straight html rather than the corresponding wikicode. From a compatibility standpoint, the only difference between compatible for this wiki and compatible for most wikis is simply setting UseTidy to true (alternatively, it may be the 1.12 final preprocessor; I'm not sure of which anymore).
Yes, it is possible, but I would disagree that it is only a degree more difficult, as I myself went through this in its pre-May update form and coded it using wiki-tml, which required that I use templates to call the correct characters to create a wiki table (such as {{
!}}), as well as eliminate (possibly) desired functionality in {{
Tnavbar}}. Not fun, and definitely not worth sacrificing other functionality.
No, that's not the reason we have parsers. We have parserfunctions because they are definitely easier for the parsers to handle, as compared to something like a template (ie, {{
qif}}) which duplicated the functionality of current parsers but was not only subjected to template limitations, but also "kill the wiki" limitations. As for wikitable code, it's a presentation based code, which keeps it simple for editors. Obviously, the people who maintain navbox know the corresponding html and thus design in that to get around those other issues (which they have specified).
MoS guideline... simple? Huh? I don't understand what you're saying. --
Izno (
talk)
05:25, 18 May 2008 (UTC)
I am viewing this on Opera, and on a number of pages with the Navbox used that I look at, the autocollapse has been disabled. Is it possible to reactivate it, because it is making pages look very unwieldy. -- AEMoreira042281 ( talk) 04:53, 22 May 2008 (UTC)