Template talk:Infobox School
From Wikipedia, the free encyclopedia
Contents |
[edit] Philip Stevens' edit
Philip Stevens recently reworked this template to look more like other school templates. I'm not a big fan of the beige (?) color scheme, but besides that, some fields need to be changed back:
- The
district
andcity
fields are now placed on the same line, without any punctuation, rather than on separate lines. This is unacceptable because many articles use the district field to indicate, for instance, a diocese (for religious schools). Moeller High School has the line "Sycamore Township, Hamilton County, Ohio Roman Catholic Archdiocese of Cincinnati, USA", which makes no sense at all. - The
motto
andcaption
fields are displayed right next to each other, without so much as a space between them, as in St. Xavier High School (Cincinnati), St. John's Northwestern Military Academy, and Christian Brothers College, Cork.- Extreme examples of this issue are Manchester High School West and Bancroft School, where no
motto
was specified and the image doesn't display becauseimagesize
wasn't specified.
- Extreme examples of this issue are Manchester High School West and Bancroft School, where no
- The
campus size
field is displayed outside the table, in the body text, as in St. Xavier High School (Cincinnati) and Allen High School (Allen, Texas). - If
country
isn't specified, the location line ends with a comma, as in Loveland High School, Ohio. -
country
used to accept an ISO country code that it would use to display a flag (using {{flagicon}}) and the full country name. Now articles such as Loveland High School, Ohio have "USA" in them, which looks strange, since (at least in my experience) no one in the U.S. uses "USA" in writing. A more egregious example is United World College of South East Asia, in Singapore ("SIN"). - Since the new design uses a larger font size than the previous one, the infobox now takes up a lot more room (especially for boxes with more parameters specified), in some cases messing with other floated elements. The 80% font size looked a bit tidier anyhow.
- Without
imagesize
, specified, the image doesn't display at all; instead, the image name is displayed in plain text, as in Elgin Academy (Elgin, Illinois), Pasadena City College, St. Edward's College, Cincinnati Country Day School, and The Mother's International School. - The
patron
field's label should read "Patron saint(s)", not "Patron Saints". - The
location
field seems to get tripped up on pages like Ygnacio Valley High School and Southridge High School (Kennewick) that aren't completely filled in. Using something along the lines of should fix that problem.
– Minh Nguyễn (talk, contribs) 04:11, 24 October 2007 (UTC)
- The merging looks pretty good. I haven't gotten around to redirecting the other templates yet, however, my one suggestion for this template is to make it look more like Template:Infobox Officeholder. I agree with mxn that the beige color is rather odd; also "infobox" has always looked better to me than "infobox bordered". Philip Stevens, you're doing great work. --MZMcBride 04:28, 24 October 2007 (UTC)
-
- The previous design looked much like Infobox Officeholder, in fact. I agree that the plethora of school templates needed to be merged, but some testing (using Special:ExpandTemplates) would have prevented the various issues I'm seeing. – Minh Nguyễn (talk, contribs) 04:43, 24 October 2007 (UTC)
- I've fixed most of the issues, I was aware of the imagesize problem before and I don't think there is a way round it, other then adding that field to every page. How is the template looking now? --Philip Stevens 06:47, 24 October 2007 (UTC)
- The previous design looked much like Infobox Officeholder, in fact. I agree that the plethora of school templates needed to be merged, but some testing (using Special:ExpandTemplates) would have prevented the various issues I'm seeing. – Minh Nguyễn (talk, contribs) 04:43, 24 October 2007 (UTC)
-
-
-
- The imagesize problem is very widespread: about 30% of the articles that use this template don't specify an image width, probably because school logos don't tend to be that big, so they weren't necessary before. This shouldn't be a difficult problem to fix; I'll have a look. – Minh Nguyễn (talk, contribs) 06:50, 24 October 2007 (UTC)
-
-
Okay, I made a change that should take care of things. The template now checks if image
would make for a valid page title; if so, it wraps the image name in a tag; otherwise, it spits out image
verbatim. We could probably optimize those nested conditionals a bit, but my head kinda hurts after looking at all that stringed-together ParserFunction syntax. Unless size is a concern, there shouldn't be anything wrong with using whitespace like this:
{{#ifeq: {{{1|{{{2|}}}}}} | 1 or 2 | {{#if: {{{3|}}} | {{#expr: {{{3}}} + 1 }} }} | no 3 }}
I suppose with tables it can sometimes cause problems, but if not, using whitespace like this would make the template a lot less intimidating.
– Minh Nguyễn (talk, contribs) 07:28, 24 October 2007 (UTC)
-
- Well done with that code Minh, I'm very impressed. Is there anything else that needs fixing before the other infoboxes are redirected here? --Philip Stevens 14:19, 24 October 2007 (UTC)
- The old version would default the image size to 220px. The new version doesn't. This causes a large image to expand the infobox to fill the page, as in Granada Hills High School. Please fix this or track down all articles that have large images and don't specify image sizes. (What would be really nice would be an Image parameter that said "shrink to xxx, but do not expand", but we don't have it.)
- FYI: The intent of using ISO country codes was to allow the template to control how countries are presented - flags (or not), expanded to standardized country names, linked to the main page for the country, et cetera.
Jordan Brown 05:00, 4 November 2007 (UTC)
-
- The problem has been fixed (I think). --Philip Stevens 08:23, 4 November 2007 (UTC)
- Looks OK on GHHS. Thanks. Jordan Brown 03:04, 5 November 2007 (UTC)
For some reason, the |enrollment and |enrollment_as_of tags are not working. I am working on converting many of the articles using the Education in the United States template, and this is something that was used in that template that does not work in the new one. Would someone look into this? --Willy No1lakersfan (Talk - Contribs) 01:17, 10 November 2007 (UTC)
- Nevermind, I found that I was incorrectly using the syntax within the template. --Willy No1lakersfan (Talk - Contribs) 01:51, 10 November 2007 (UTC)
[edit] Addresses all on one line
Can someone please look into why the street address is all on one line? The City, State, and Zip Code should all be on a separate line, but they all seem to flow together. This was not a problem with the Education in the United States infobox. I have tried to fix it, but I have not had any luck. I think it is important to get this resolved as it is affecting all templates that redirect to this one. --Willy No1lakersfan (Talk - Contribs) 06:49, 11 November 2007 (UTC)
[edit] Width
I've encountered many infoboxes on Wikipedia and this is wider than most. Has anyone suggest sizing it down just a step? IrishLass0128 15:18, 13 November 2007 (UTC)
[edit] Large update
Oh goodness, this required me getting my hands dirty. I've updated the code to fix a couple of issues. The caption and motto fields have been modified, unused code has been removed, and the street address should now be on its own line. There were a lot of other small updates as well.
A template sandbox and testcases now exist for testing new code. Please use them before committing any code updates. If you find any issues with the code I've just added, please leave a comment below or on my talk page. Cheers. --MZMcBride 02:06, 16 November 2007 (UTC)
- Is it possible to alter the code so that the comma after the zip code only appears if the country is specified? Also, it seems a little unnecessary to have a {{flagicon}} appear when the country is specified; looks a bit cluttered to me. - auburnpilot talk 14:56, 17 November 2007 (UTC)
- I've put the country field on its own line. While I generally don't like little flags, because this template is used internationally (i.e., for schools around the globe), I think they work well here. If you really don't like them, set country = [[United States]] rather than country = United States and the flag will no longer appear. If you notice any other issues, please let me know. Also, if changes don't appear immediately, you'll probably need to purge the page. --MZMcBride (talk) 21:36, 17 November 2007 (UTC)
- Thanks. So long as there is a workaround for the flag, I have no issue with it staying. In fact, now that the country is on a separate line, I kind of like the flag. Thanks for the quick reply. - auburnpilot talk 23:10, 17 November 2007 (UTC)
- Thanks so much. I think that it looks better now with the country on a separate line. I have no problem with the flags, and I think they can stay. Thanks for all the modifications. --Willy No1lakersfan (Talk - Contribs) 03:06, 18 November 2007 (UTC)
- I've put the country field on its own line. While I generally don't like little flags, because this template is used internationally (i.e., for schools around the globe), I think they work well here. If you really don't like them, set country = [[United States]] rather than country = United States and the flag will no longer appear. If you notice any other issues, please let me know. Also, if changes don't appear immediately, you'll probably need to purge the page. --MZMcBride (talk) 21:36, 17 November 2007 (UTC)
[edit] Infobox Bordered Vcard
Regarding your (User:MZMcBride) revert, why can't it be a bordered layout, like the way it was/is in Template:Infobox Education in Canada? It looks a lot cleaner visually in my opinion. Epson291 (talk) 02:16, 27 November 2007 (UTC)
- See this. It makes it much easier for people with disabilities; it's also becoming rather common throughout the project as whole. As such, there really should be a reason not to use it, in my opinion. Cheers. --MZMcBride (talk) 04:54, 28 November 2007 (UTC)
[edit] Enrollment
Why is Enrollment so far down the template? Way after PTR & SAT scores. I see SAT scores are frequently "changed". Is there a place to add a citation for these? --JimWae (talk) 18:20, 8 December 2007 (UTC)
[edit] Spelling Enrolment
There are two ways of spelling enrolment, and so two ways for a user of this template to use it. I added the alternate spelling, there seem to have been a few reverts done either way. The end users of the template don't understand there are two ways of spelling it, and people correct spelling in the articles using the template and break it. As a result the uses of the template have {{{entrolment}}} in the infobox instead.
I don't see why there is an issue with it appearing twice, other than making the template code look less nice, and end users don't see that. I have re-added it - any other thoughts? Wongm (talk) 12:01, 12 January 2008 (UTC)
- I mistakenly reverted Zelda - in fact you'll find that enrollment is there twice (pre-Zelda) and enrolment once - so Zelda has just (correctly) removed the repetition. -- roundhouse0 (talk) 17:33, 12 January 2008 (UTC)
- See eg Sacred Heart Cathedral Preparatory which has 2 duplicate enrollment rows pre-Zelda. -- roundhouse0 (talk) 17:37, 12 January 2008 (UTC)
-
-
-
- I am relieved to find I was not alone in misunderstanding Zelda's edit. -- roundhouse0 (talk) 16:29, 13 January 2008 (UTC)
-
-
[edit] Faculty field
As noted in the talk archives, use of the term faculty to refer to the number of teachers is restricted to American English usage. The term "teaching staff" would probably be preferable. Paul_012 (talk) 05:38, 10 February 2008 (UTC)
[edit] Overload of parameters
This template is still quite a mess, which is understandable, given the merging of so many different templates. The usage docs, however, should tell the user which are the currently preferred parameters, not include most possible fields. Even if redundancy is needed to maintain functionality, I think there should be standards as to which parameters are deprecated and only kept to allow use on older articles.
Is it at all possible to find out which parameters are still being used? Some seem so specialized that they are likely used in only a handful of articles, and existing custom fields would serve their purpose better. Paul_012 (talk) 15:13, 17 February 2008 (UTC)
[edit] "enrollment" to "enrollment_as_of"
Someone messed up the template at "enrollment" to "enrollment_as_of". I've fixed the issue, but if someone wants to revert something else, please do the revert manually or manually incorporate my fix in the subsequent version.--Bark (talk) 20:15, 26 February 2008 (UTC)
- This now makes "Enrollment as of" appear as a separate line, not something originally intended, I think. - Paul_012 (talk) 08:42, 27 February 2008 (UTC)
[edit] Duplicates.
Why have both. Their the same thing. One should go. Same thing with Students, Pupils, Enrolment, and Enrollment. --Crash Underride 21:59, 29 February 2008 (UTC)
- They're mainly there because this template was merged from ten different templates which used different parameters, and are required for backward support. I agree, though, that redundant fields should be removed from the template docs. (See #Overload of Parameters above.) - Paul_012 (talk) 23:21, 29 February 2008 (UTC)
[edit] communities
WTF? No explanation. Nothin'. EXPLAIN IT!!! --Crash Underride 22:20, 29 February 2008 (UTC)
[edit] Misspelling
One of the fields, "classses" is misspelled. I don't want to fix it myself, because I don't know if that would break anything. Could someone who knows the ins and outs of Wiki templates please fix this, and either deal with any fallout directly or let me (and anyone else interested) know what, if anything, needs to be done to deal with said fallout. - Dave314159 (talk) 16:37, 17 March 2008 (UTC)
- Done. The misspelling wasn't in the template itself, just in the empty syntax section. There shouldn't be any problems.--Bark (talk) 17:30, 17 March 2008 (UTC)
[edit] School Colors
On the box I'm currently working, school_colors did not display, but colors, colours, and school_colours did. --WikiTraveller (talk) 20:39, 6 June 2008 (UTC)