Talk:Centris/Quadra Guide

From 68kMLA Wiki
Jump to: navigation, search

using a template

Bunsen, great idea, I was thinking of doing something like that. The only thing I'd suggest is making a template for each row that takes the same fields as we have in the computer specs infobox or computer specs full templates so that you can do a straight copy-and-paste from the individual machine pages. (You don't necessarily have to display all the fields, of course.) Make life easier for yourself. ⇔ ChristTrekker z 22:16, 11 April 2008 (UTC)

Actually, something like this could be expanded to include every 68k, and replace the "Specs/By X" pages we have now. Sortable tables rock. ⇔ ChristTrekker z 22:20, 11 April 2008 (UTC)
yeah for sure. I don't know templates, but then I didn't know tables an hour ago :)Bunsen z 23:09 11 April 2008 (UTC)
I've created computer specs row and added a duplicate Q800 line to your page to show how it works. There are a few particulars that still need to be worked out.
  1. The previous templates assumed use on the model's page, so there was no place to specify the model name. That field is new. It would be easy to add to the others, and just use the page name as the default if not given.
  2. The previous templates do not have separate fields for min Mac OS and max Mac OS. We could change that, but every model page would (eventually) need to be updated.
  3. The previous templates don't have a generic "co-processor" field, they have an FPU field. This is fine unless you want to consider the DSPs in the AV models to be coprocessors.
  4. The previous templates don't have a NetBSD field, we have an "other OS" field. Easy enough to retitle the column though.
  5. Currently we supply the units (i.e. MiB) in any "RAM" fields. For sorting purposes, it might be a good idea to remove that and assume those units. We'd have to update the model pages in order to retain cut-and-pasteability.
I think we'll be able to address all these satisfactorily though. ⇔ ChristTrekker z 18:38, 14 April 2008 (UTC)
Nope, I'm still not quite seeing how it works. Is that information copied and pasted from elsewhere, automagically inserted, or filled in by hand? How does the display or non-display of fields work? BTW the inclusion of units doesn't seem to affect the sort, but I'd rather we went one way or another.Bunsenz 09:19 20 April 2008 UTC
See below for further explanation of templates. Template:computer specs row is designed to be field-compatible with template:computer specs full and template:computer specs infobox, so that we can just copy-and-paste, changing only the template name. ⇔ ChristTrekker z 18:22, 22 April 2008 (UTC)

Also it occurs to me that the CPU/bus speed fields can be merged, and the bus width field can be removed (they're all 32 bit)

so I did. And that broke your Q800 row. I'm even more baffled about how templates work now. Bunsen 09:50UTC
Template use basically consists of two things: creating the layout, and transcluding (I think I'm using that term correctly) it in another page. The template used here is not the simplest case to try to understand templates because it is only a single used to build a larger table. For trying to learn about templates you are better off looking at a free-standing one, maybe a simple one like those in Category:Userbox templates. Try adding some to your user page to get a feel for the (easier) transcluding part.
Once you understand that, and if you want to learn how to modify or make your own templates, click the edit link of the template page itself to see how some of those things are done. What happened here is that when you merged the fields it reduced the number of columns from c to c-1. Well, the template still has c columns, so it breaks the table. The template itself (which determines layout) needs to be correspondingly changed. The transclusion here (which only supplies data) doesn't need to be changed at all—any extra fields are ignored. ⇔ ChristTrekker z 18:22, 22 April 2008 (UTC)