Template talk:Familytree

From Wikipedia, the free encyclopedia

Contents

[edit] Transcluded template limits

Maintainers of this template may be interested in the issues raised at Wikipedia:Templates for deletion/Log/2007 June 4#Template:Kennedyfamilytree. –Pomte 21:28, 4 June 2007 (UTC)

[edit] Large Family Tree?

Can we do anything about the problem with large trees? Like making the template work with them? I encountered the problem at User:Canaen/ClanFraserLineage. Image:Icons-flag-scotland.png Canæn Image:Icons-flag-scotland.png 06:24, 8 June 2007 (UTC)

[edit] Big trees

I'd also like to request support for big trees. I couldn't finish the Spanish royal tree. Atropos 08:09, 28 July 2007 (UTC)

The problem appears to be that this template (group) is quite inefficient. Take a look at the history of User:Wknight94/Stuff In Progress from July 28, 2007. When I did a subst: on the whole page, the size jumped from 5,684 bytes to over one million!!! (I bet the software refuses to expand templates past the 1,000,000 byte mark). I'll take a look at improving the efficiency but I'm not particularly experienced in the template technology here. Any help is welcome. —Wknight94 (talk) 13:48, 28 July 2007 (UTC)
One thing that would help would be moving the tile styles into MediaWiki:Common.css. It might not help much with supporting bigger trees, since the problem there seems to mostly involve template transclusion limits on the server side, but it should at least make the HTML output shorter. I think something like the following CSS rules, with appropriate class names on the <td> tags, should do it:
table.familytree td.ft div { width: 1em; height: 1em; }
table.familytree td.ft.ftw div { width: 2em; }
table.familytree td.ft.fth div { height: 2em; }
 
table.familytree td.ft.ftl div { border-left: 1px solid black; }
table.familytree td.ft.ftr div { border-right: 1px solid black; }
table.familytree td.ft.ftt div { border-top: 1px solid black; }
table.familytree td.ft.ftb div { border-bottom: 1px solid black; }
 
table.familytree td.ft.ftld div { border-left: 1px dotted black; }
table.familytree td.ft.ftrd div { border-right: 1px dotted black; }
table.familytree td.ft.fttd div { border-top: 1px dotted black; }
table.familytree td.ft.ftbd div { border-bottom: 1px dotted black; }
 
table.familytree td.ft div span { font: 1px/1px serif; }
The rules could be made a bit nicer with more advanced CSS selectors, but then we'd get breakage in older browsers, which would be bad. I've been meaning to do something like this for some time, but have never really got around to it. I think I'll try it out in userspace and, if it works, try to implement it within a week or two. (We'll need to wait a while between adding the styles to Common.css and modifying the template, since browsers tend to cache stylesheets rather aggressively.) —Ilmari Karonen (talk) 18:50, 28 July 2007 (UTC)
This is the type of thing I'm trying to do. I've managed to get the size down about 50%. Unfortunately CSS isn't my strongest point either... User:Wknight94/monobook.css is my modest beginning. —Wknight94 (talk) 19:58, 28 July 2007 (UTC)

Okay, try this (whoever is reading). Copy User:Wknight94/monobook.css to your monobook.css, clear your cache, and then take a look at User:Wknight94/Stuff In Progress. Look the same I hope? The HTML that is generated is less than half the size (the top half expanded to 9,423 characters this new way as opposed to 19,970 characters with the original code) which I'm hoping will allow for twice as many templates to be expanded. Leave comments here - if there are no objections, I will go to WP:VPT and propose having my monobook.css appended to MediaWiki:Common.css. Thanks. —Wknight94 (talk) 23:58, 29 July 2007 (UTC)

Assuming you mean that the top of each half matches the bottom, yes, it looks that way. JPG-GR 00:08, 30 July 2007 (UTC)

The preprocessor update seems to have improved matters significantly, making large trees more feasible. However, you may also want to look at the new {{chart}} template which makes more efficient use of the preprocessor and gives some additional functionality. TimR (talk) 18:19, 10 February 2008 (UTC)

[edit] Adoption problem

There's still the problem at Julio-Claudian family tree of having to use dashed lines for both marriages and adoption. If we could either fit more marriage connections (I don't see a way to get more than one horizontal connection per side per row) or get another set of lines like a dotted or double line, then the ambiguity could be solved. I guess it's too much to hope for numbering marriages, too, but any suggestions are welcome as we lost a lot of information switching from Image:JulioClaudian.svg. — Laura Scudder 01:53, 15 August 2007 (UTC)

For dotted lines, see the new {{chart}} template. TimR (talk) 18:16, 10 February 2008 (UTC)

[edit] Minor errors

"]" and "{" don't align properly at the moment, although "C" and "(" do. See

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

(Nothing major, but if someone is familiar enough with the template syntax, he may be able to fix it. I'd rather not mess with it myself.) – sgeureka t•c 15:13, 13 October 2007 (UTC)

I think I've fixed it. —Ilmari Karonen (talk) 19:27, 13 October 2007 (UTC)
Woohoo! Thanks. :-) – sgeureka t•c 19:32, 13 October 2007 (UTC)

[edit] How do I make the boxes wider?

See Habsburg family tree. Thanks, Mark J (talk) 13:31, 23 December 2007 (UTC)

You can put more boxes with no borders. See pl:template:Tolkienowie. --pl:user:Matma Rex —Preceding unsigned comment added by 83.29.158.246 (talk) 11:37, 31 December 2007 (UTC)

[edit] New chart template

I've been extremely impressed with this set of templates, and have made some worthwhile use of them already. However, I became a little frustrated with quite how much preprocessor resource they consumed. On one page I found that putting just a few medium-sized trees on an already-large page was enough to break the rendering, which was a shame.

As a result, I put some considerable effort into rewriting the template set to make more efficient use of the preprocessor, to allow larger trees. Of course, nothing's simple, and shortly after I got a sensible and extensible solution, the preprocessor was updated. The familytree template fares a lot better under the new preprocessor, rendering my changes less urgent.

However, I was able to entend the functionality slightly to include two new solid/dashed mixed tiles and a whole new set of dotted and solid/dotted mixed tiles. For further details on how to use the new set of templates, and how to migrate existing family tree diagrams to new chart diagrams, see the {{chart}} template page. TimR (talk) 18:14, 10 February 2008 (UTC)

[edit] Should this page be added to the following category

addition of [ [ Category:Genealogy templates|Familytree ] ]