Template talk:Box-header/Archive 1
If defined call2Is it used so the edit template doesn't produce a redlink? Anything else? Is that useful? --MarSch 2 July 2005 15:41 (UTC)
Recent formatting changesI like that the edit link is now located on the header bar. However, the recent formating changes have had an odd consequence: wherever an image is present in a box, no matter its formating, the text is forced lower. I'm not sure why this is, and I have closely checked it. I'm tempted to revert it now, but I'm hoping Go For It!'s about to check it out. Aside from that, the new edit link is sometimes hard to see, depending on the box header's background colour (cf. Portal:Art).--cj | talk 10:59, 29 December 2005 (UTC) Okay, I'm checking it. Go for it! 13:54, 30 December 2005 (UTC) I couldn't even see any image formatting glitch. But I did notice that some text was getting forced lower, especially in category and list boxes. It seems to have been caused by the extraneous comment left at the bottom of the page. I've fixed that. Let me know if you still get the glitch. Go for it! 14:27, 30 December 2005 (UTC)
Yes, I think I know what you are talking about now. It looks like the text starts half a line from the top of the image rather than at the very top. However, Mathematics has the same thing, and it's constructed using a different template. Philosophy uses still another markup method. I don't think the templates nor sourcepages are causing it. However the top margin looks the same for text in boxes with images as for the text in boxes with no images. It must be the way the program places pictures. I can't find it in any page source. There is one problem I noticed we're no longer having -- the text no longer overlaps into the image, which used to happen at the top of an image a lot. Go for it! 15:36, 1 January 2006 (UTC)
Gitch fix? I think I fixed the glitch. I suspect it was being caused by a difference between the way the program places images and how it places text. I've restored the edit button into the header, and have added a slight margin below it to fill the space the text seems to be sneaking into. I've checked all the Top 10 portals, and weather, and it seems to work. Let me know if the glitch shows up on your screen/browser, and if it does I'll take a closer look. Go for it! 13:26, 10 January 2006 (UTC)
Curved-edges?I really don't think we should impose this rather new (to en: at least) format on each and every portal using this template. At the very least, a proposal should be made to WT:P. Perhaps an alternative template could be created, one exactly like this but with rounded edges.--cj | talk 17:32, 9 January 2006 (UTC)
It wouldn't hurt to test the round corners for a few days by changing the template, since it takes a page refresh (purge) in order to see the changes on each portal. Because of this, only a fraction of the portals see the change. We can then see what the typical user reaction is on the talk-pages of the portals purged. But we can't get such feedback if you panic and revert in a knee-jerk reaction. You seem to "be bold" whenever it suits you, and to use the "discuss it first argument" when someone else's being bold doesn't suit you. I'm going to change it again, and if there is more than a few complaints (out of the hundreds of users assumed to be looking at the portals), I'll change it back in five days. In the meantime, I'll accomodate any portal maintainers who want their square edges back. Just give me five days, and remember the 3-revert rule. Go for it! 13:43, 10 January 2006 (UTC)
I've never been called "flippant" before! "Defensive", occasionally. But don't worry, if there's feedback, I'll find it. Most portal editors are probably smarter than me, and therefore will be able to figure out where to post, or at least will post somewhere (like on their portal's talk page). Plus, I might learn something while looking around. But since we're on the subject of feedback, I have a feedback question for you: are there any tools for counting the number of hits on Wikipedia pages? Are visits to articles recorded anywhere? This would at least be interesting, if not useful data. Go for it! 09:06, 11 January 2006 (UTC)
I've reverted the change again. Go for it!, feedback has been forthcoming and it has been resoundingly negative (including at Portal:Philosophy). You may wish to respond to it. --cj | talk 05:03, 12 January 2006 (UTC)
I agree with your statement concerning the default template forcing portals as a group to be round or square, and as per your suggestion have implemented a template for portal creators who want to try out round corners. See Portal:Technology. I've also created a template for square corners so that if new round-corner layouts are to be tested via the default template in the future, editors will have a way to bow out of the test. Your idea to move away from the whole default-template concept was a good one, and having more templates will encourage variety in design, and more experimentation. --Go for it! 21:23, 13 January 2006 (UTC) CJ, I don't agree with your use of the term "resounding" to describe the feedback, as 4 votes is hardly a peep considering that hundreds or thousands of users view these pages. I plan to continue expermenting with layouts (as I can find the time), and to test both round-based and square-based format themes, and will come up with a better approach to testing the next time around. Thanks for the feedback, on both the layout and the testing method, it has been helpful. --Go for it! 21:23, 13 January 2006 (UTC)
Possible glitch-fixConcerning the edit button, I've put it back up into the header so that we can track down the text bleed glitch. I added some padding, which I think might have solved the problem. If you spot the glitch again, let me know exactly where it is, so I can look at it with IE. Go for it! 21:27, 13 January 2006 (UTC)
Fixed (I think, at least in WinXP IE) the glitch with the edit button. Most portal page uses I previously fixed by adding a "width" attribute to the <div> preceding the section box. For other uses, I added optional "width" and "bwidth" parameters. —Doug Bell talk•contrib 07:52, 1 May 2006 (UTC) Color of "edit" linkIs it possible to change the color of the "edit" link? At Portal:Psychology, the current color scheme makes it almost impossible to see it. For some reason, it's not "titleforeground" color, but lightblueish. /skagedal... 06:01, 6 March 2006 (UTC)
absolute position versus floatI have changed the float of the edit link to an absolute positioned span with coordinated relative to the parent box. As I have heard users using the IE-browser might have problems displaying this sort of element (I don't know exactly). so I have tested now with setting an offset of 1px of the span to try to clear the border, and also I have tried to remove any background and border that might be problem for the kind of browser. If anyone have a better idea, please stand up. The problem with float is that it might set an offset of the title up to 4em to the left. →AzaToth 23:16, 8 March 2006 (UTC)
How to copy this to another wiki.I have been trying without success to copy the portal technology to my wiki all evening without any success. Please could I have a pointer as to how this works and what I need to do to copy it? I am running Mediawiki 1.5.0. I have set up a Portal namespace with subpages enabled. I have copied Portal:Box-header and Portal:Box-footer. What else do I need to copy? Thanks. Nicholsr 00:00, 11 March 2006 (UTC) This is also right for me. The ending "DIV" element is beyond the box! Please help with this issue - how to use this Portal templates on the local mediawiki setup? Thanks. --Orgyen See this page to solve that problem, http://www.mwusers.com/forums/showthread.php?t=1755&highlight=template --Ocyun0 08:52, 30 July 2006 (UTC)
{{/box|Selected article|{{FULLPAGENAME}}/Selected article}}
{{Portal:Box | title={{{1}}} |editpage={{{2}}} |content={{{3|{{{2}}}}}} |border=#aaaaaa <!-- This is the color of the borders around Box Sections --> |titleforeground=white <!-- This is the color of the Box Section Title Bar text --> |titlebackground=#aaccff <!-- This is the color of the Box Section Title Bar --> |background=#f9f9ff <!-- This is the color of the Box Section background --> |foreground=black}} <!-- This is the color of the Box Section text -->
Accessibility IssueI recently made a change which AzaToth then reverted. I'd like to discuss options for how it might be possible to incorporate this as I think it is important. Basically, I added <h2> - </h2> tags around the {{{title}}} parameter. These create a 'level 2 header', such as is automatically created by '==' in wikimarkup. The reason for including such is that these headers are used by screen-reader software for the blind to navigate around to different sections. Without them blind users essentially have to listen to the entire portal page rather than just the particular section they are interested in at the moment. The problem is that Wikipedia also uses these headers to determine where to place automatic 'edit' links for users who have that option selected in their preferences. I assumed that most portals use __NOEDITSECTION__, the way I do at Portal:Featured content, to suppress the automatic 'edit' links, but apparently that is not the case. If we add __NOEDITSECTION__ to this template would that suppress them for just this or all pages the template appears on? Do people actually use automatic edit links on existing portals? Could we just remove the manually inserted edit link in this template and use the automatic one instead (which would have the benefit of not showing them for users who have requested that option)? Et cetera. I have already addressed this issue by adjusting things on the portals I maintain, but I think it would be a good feature to incorporate on all of them if there is some way to work out this 'edit link' issue. --CBDunkerson 19:00, 20 March 2006 (UTC)
Sorry I didn't notice those issues (it figures the three portals I looked at would have 'NOTOC', 'NOEDITSECTION', and black fonts) and thanks for all your efforts in cleaning them up. --CBDunkerson 21:05, 20 March 2006 (UTC)
TweekingI noticed sometime around the March 18-20 edits that many of the portals lost the right side of the boxes in the right column... almost as if the total width was 101% within another table, but decreasing the main margin width doesn't fix the issue. This happens in N7 but not IE6. Can someone familiar with the template look in to it? Thanks! 72.131.44.247 19:44, 30 March 2006 (UTC) Almost all portals mildly brokenAlmost all the portals currently have no margin at all on the left side of the text. I think they have no margin on the right side either, but I don't have full justification turned on so it's hard to tell. It happened a day or two ago. Is this a result of the changes to this page? What should we do to fix it. I've fixed it manually at Portal:New Zealand by adding tables around each section and setting "style=passing:5em" in each, but this is both a lot of work and a complication to wiki editing that shouldn't be necessary in very many places. I've fiddled with passing width and bwidth parameters to here at Portal:Oceania/box-header, but nothing seems to work. Portal:Australia doesn't seem affected, and it is one of the few portals not to call this page from Portal:Australia/box-header. I see these problems in Firefox 1.0.8 and 1.5.2 running on Kubuntu and XP respectively, also in Konqueror 3.5.2. In Opera (latest version I think) I don't see the borders of any of the portal panes, and the titles are in white, except Portal:Australia looks normal. In IE 6 on XP SP1, all portals look okay. Any suggestions on what to do to get each portal displaying correctly?-gadfium 02:48, 2 May 2006 (UTC)
image problemsThis template seems to cause problems with images for Internet Explorer (though not Opera or Firefox). Many images, especially if they have some sort of formatting applied to them, appear out of place or not at all. Portal:War/box-header substitutes this template for manual formatting, and images display properly on that portal.--67.186.162.70 23:46, 7 May 2006 (UTC)
Font tagsI removed the <font color=...> tags and replaced them with inline styles. —Josh Lee 18:29, 6 June 2006 (UTC) h2 tagsThe h2 tags cause a glitch on IE if you have multiple boxes. When that tag is in there, the text in the boxes gradually bleeds over to the left. See User:BigDT/sandbox for an example. When I replace the tag with a span, it fixes the problem. I see above why the h2 tag was placed in there. But is there any way to fix the problem? BigDT 05:20, 27 August 2006 (UTC)
ShowHow do I get this to hide and have the "show" near the edit button to unhide? Joe I 09:47, 16 September 2006 (UTC)
Optional "Section" variableI would like to propose an optional section parameter to this template. This would require to add §ion= onto the end of the edit link. If no parameter is input, the extra code will not affect the template negatively. If I knew the If# code, I believe you could only include that if the parameter had a value. The reason for this extra variable would be for the pages that do not need sub-pages for each section. I think it is sometimes a waste to give every section its own seperate page. Before: -->color: {{{titleforeground|#000000}}};"><!-- -->[{{fullurl:{{{editpage|}}}|action=edit}} <span style="color: {{{titleforeground|#000000}}}">edit</span>]{{{top| }}} <!-- After: -->color: {{{titleforeground|#000000}}};"><!-- -->[{{fullurl:{{{editpage|}}}|action=edit§ion={{{section|}}}}} <span style="color: {{{titleforeground|#000000}}}">edit</span>]{{{top| }}} <!-- Thoughts? – Heaven's Wrath Talk 20:15, 23 September 2006 (UTC) -->color: {{{titleforeground|#000000}}};"><!-- -->[{{fullurl:{{{editpage|}}}|action=edit{{#if:{{{section|}}}|§ion={{{section|}}}}}}} <span style="color: {{{titleforeground|#000000}}}">edit</span>]{{{top| }}} <!-- →AzaToth 21:32, 23 September 2006 (UTC)
Adding icon to the bar?I know nothing about code (let me say right away!); is there a way to add a small image within the colored portion of the box title bar? Thanks. Her Pegship 04:06, 7 October 2006 (UTC)
Polish interwikiPlease add Polish interwiki: [[pl:Portal:Stopka]]. Thanks, Hołek ҉ 11:38, 1 November 2006 (UTC) FixesIn light of problems I had on my talk pages, and concerns above, I've added "if" statements to the template to fix problems other users may run into. See the list below:
I hope these are helpful! └Jared┘┌talk┐ 20:34, 28 January 2007 (UTC) Watch functionOne problem I have found with portals - when I use the watch function on a portal page, it doesn't report changes in the component boxes, you have to go to all the separate pages and put a watch on each - could be better, but maybe I'm missing something important. Anyway, I got a watch function working here, but it needs an unwatch facility - any help from an expert would be much apreciated sbandrews 21:17, 15 February 2007 (UTC) HTML commentsAre all those HTML comments in the template really needed? Wikipedia seems to remove them, and that's good, but they are in the style attribute, and that's totally not conformant, and they make the code really illegible. --giandrea Similar or new templateIs there an identical template which replaces Edit link on the top right corner to a View link, where users are taken directly to the page, instead of directly to editing it? If not, has anyone considered creating it? Some Portals sub-pages may be a transclusion of various pages, making a direct edit link inappropriate. See for example Portal:Puerto Rico, and its Did you know... section, which is a transclusion of varios sub-subpages with randomly rotating DYKs. - Mtmelendez (Talk|UB|Home) 20:32, 29 May 2007 (UTC) Image overflowIf you look at Portal:Louisville and its selected picture, you can see the odd effects in either Mozilla Firefox and Internet Explorer 6 when you reduce the browser width to a certain point. In Firefox, the image overflows the box on the right, and in IE, the contents on the lefthand side of the portal jump around to the bottom. I just wanted to report the issue, as I don't know the best solution offhand, although perhaps using "overflow: auto" would do the trick. Stevie is the man! Talk • Work 16:29, 30 May 2007 (UTC) Using template for WikiProject pagesThe WikiProject U2 uses this template for its page, and it is very distracting and hard to read, especially with its red and black colors. The template was added by the project's creator, but I'd like to get rid of it completely and just use a simple list format like all other WikiProjects. A discussion was started about it on the project's talk page, but few replies have been written and no consensus has been drawn. Does it state anywhere that this template may be used on Portal pages only? I really wish there was a reason to take it off the project's page. –Dream out loud (talk) 17:50, 9 July 2007 (UTC)
InterwikiPlease add link to finnish page [[fi:Teemasivu:Laatikon otsikko]] --213.186.239.248 17:30, 29 July 2007 (UTC) [[vi:Chủ đề:Box-header]]. User:Es.ntp. 118.68.61.132 (talk) 07:52, 14 February 2009 (UTC). noeditI have added an ability to hide the "edit" link using {{{noedit}}}. This feature will not be immediately available on all portals - you need to add it to your portal-specific box header template ... but I think it's important to have for things like the {{WikimediaForPortals}} transclusions. --B 10:49, 30 July 2007 (UTC) Box header fontOne of these two edits screwed up the coloring format for all box headers fonts, so I reverted it. If this can be fixed without screwing up the colors again, feel free. Cirt (talk) 18:03, 27 February 2008 (UTC) Footer div whitespacePortal:box-footer prescribes to the div of its single parameter "margin:0.3em 0.2em 0.2em 0.3em; padding:0.3em 0.2em 0.2em". Especially the bottom ones seem too much, it leaves a lot of empty space at the bottom of portal boxen. What about removing them? Standard box padding seems quite enough to me. Not to mention that this creates an empty, heavily padded div even when there's no parameter to display. I've bypassed this on a few portals' local footer templates, but a centralised solution would be better. --Malyctenar (talk) 16:36, 4 March 2008 (UTC) Proposal to add "view" and "history" linksI believe that this template should display (or contain an option to display) a "view" and "talk" link in the top-right corner, in addition to the "edit" link. The best way to do this, IMHO, is to have links analogous to those appearing on {{Navbox}}, but on the top-right corner for continuity's sake. Opinions?-RunningOnBrains 20:25, 28 February 2009 (UTC) IE6 issuesViewing this page in IE6 bring several severe errors to light. First, the [edit] link is breaking out of the box. I see there was a "fix" (#absolute position versus float) above; that needs to be reverted. Also, as the page progresses, the H3 headers are progressively pushed outside the main div boundaries. This may be related to the above, but haven't investigated yet. — Edokter • Talk • 23:13, 18 April 2009 (UTC) Interwiki spamThe template is somehow still creating dozens of interwiki links for this template into innumerable portals. Please fix as soon as possible. Sciurinæ (talk) 12:27, 19 May 2009 (UTC)
Section edit links are hiddenWhy are the [edit] links all hidden when this template is used on a page? Compare this (fixed in user space) with this (the original WikiProject Earthquakes page). Also, why ask editors to use the template as {{Template:Box-header}} rather than the normal {{Box-header}}? --Jubilee♫clipman 22:51, 19 May 2010 (UTC)
Template prefix in documentation examplesIs it necessary to include the "Template:" prefix in the three examples provided on the /doc page? There's no difference at all between
Arial fontPlease, change the font from Arial to the generic code sans-serif, as there is no need to specify a specific font in this template which affects portals, such as Portal:Free software, I see the headers in Arial, why? --Mahmudmasri (talk) 09:41, 17 August 2012 (UTC)
It´s possible to hide the edit link?Someone know if it's possible to use this template without the edit link?. And I see here more parameters than in the documentation page like {{{border-width|1}}}, {{{titlefont-size|100%}}}, {{{padding|1em}}}, {{{border-top|{{{border-width|1}}}}}}px, etc. I think that this must be included there, because, for example, someone could want to have a title with a bigger size of letter or a wider box-header. --JaviP96 16:25, 8 April 2013 (UTC) FontCan we have the option to use a different font on the title (only)? That would mean we can make this template fit better in individual cases with the correct formatting as per organisation websites. --Jwikiediting (talk) 14:02, 25 July 2013 (UTC)
Adding height
Hi! Can an admin/template editor please add the ability to define the div's height? It'd be useful for filling up the entire height of a table row when placing them side-by-side. I've simply added a height parameter (along with removing some extra spaces); see pastebin. Documentation would also need to be updated. ~SuperHamster Talk Contribs 07:50, 8 February 2015 (UTC)
H2 on Mobile ViewThe <H2> tag is causing problems with mobile view. Change the <H2> tag to a <div> tag to correct. See Wikiversity:Template:Box-header for comparison. -- Dave Braunschweig (talk) 20:07, 9 January 2016 (UTC) Template-protected edit request on 4 June 2018
Change: Add the ability to customise colours for each border around the box. Description: This is seen (by use of editing a copy of this template) on this page Portal:Canada/Wikiprojects/box-header/2 and uses a different coloured border for under the title. Also see Portal:Daddy Yankee/box-header/2 for another box-header that cannot be created from this template for the same reasons. I tried to accomplish this using this template, but from my testing, it is not at the moment possible. Dreamy Jazz (talk) 15:04, 4 June 2018 (UTC)
{{Box-header
| title=Foo
| noedit=yes
| titleborder=#ff0000
| border=#0000ff
}}
Bar
{{Box-footer}}
Foo Bar {{Box-header
| title=Foo
| noedit=yes
| titleborder=#ff0000
| border=#0000ff; border-top: 1px solid #ff0000
}}
Bar
{{Box-footer}}
Foo Bar {{Box-header
| title=Foo
| noedit=yes
| titleborder=#0000ff
| border=#0000ff; border-top: 1px solid #ff0000
}}
Bar
{{Box-footer}}
Foo Bar
|