Template talk:Wikidata/FamilyTree

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This template causes errors

[edit]

@Richard Arthur Norton (1958- ): , This template causes errors in File:Schwerin - Freudenberg family tree with Moses Freudenberg (1786-1846) and Moritz Schwerin (1810-1858) and their children.jpg. Can someone fix it or remove from the page? --Jarekt (talk) 20:39, 12 June 2019 (UTC)[reply]

@Jarekt: I fixed the overflow error, as more people were linked it surpassed the number of people it could display. I reduced the number of generations that are displayed. As more photos get scanned at the Jewish Museum Berlin and get scanned before the next tranche is sent to the museum, there are more entries. RAN (talk) 22:15, 12 June 2019 (UTC)[reply]

Suggestions 2020-07

[edit]

This template is awesome. I was experimenting with it and I have some suggestions:

  1. the reading order should be standardised? either left to right, or right to left, for all, instead of letting users decide? coz it may cause confusion to users when some are ltr and some rtl.
  2. it should draw the corresponding Q id automatically (like wikidata infobox)? so that entityid and title dont have to be explicitly defined.
  3. see Category:Chiang Kai-shek, it couldnt fetch the commons cat for Category:Chiang Ching-kuo. (probably because Category:Chiang Ching-kuo is linked to the cat item Category:Chiang Ching-kuo (Q30969168) but not the topic item Chiang Ching-kuo (Q313598)?)

--RZuo (talk) 11:33, 28 July 2020 (UTC)[reply]

Please make collapsible

[edit]

Lest this website slide further towards becoming Wikitree 2.0 or Wikipedia Lite, Commons is a media repository first, and a family tree showcase secondarily. Large and highly detailed family trees like those seen at Category:Polly Caton serve only to push media content down further. If we must have these monstrous templates taking up an entire page, can we at least make them collapsible, similar to {{Wikidata Infobox}}? --Animalparty (talk) 03:49, 3 August 2020 (UTC)[reply]

@Animalparty: you can use syntax below see example Category:Erik_Johansson_(Vasa)

{{collapse|title=Family Tree| {{Wikidata/FamilyTree|entityId=Q3742602|title={{Q|Q3742602}}|ancestors=3|descendants=3|compact=true|invert=1|decorate=by-generation|years=0}}}} {{Wikidata Infobox}}

- Salgo60 (talk) 07:37, 20 October 2021 (UTC)[reply]

Lua error when using years --> in package.lua at line 80: module 'Module:RomanNumber' not found.

[edit]

Thanks for a magic template I get an error on Erik Johansson Vasa (Q3742602)

* syntax with error {{Wikidata/FamilyTree|entityId=Q3742602|title={{Q|Q3742602}}|ancestors=1|descendants=3|compact=true|invert=1|decorate=by-

* no problem {{Wikidata/FamilyTree|entityId=Q3742602|title={{Q|Q3742602}}|ancestors=1|descendants=3|compact=true|invert=1|decorate=by-generation|years=0}}

My guess its something with the data of Johan Kristiernsson (Q5884381) and dates - Salgo60 (talk) 07:25, 20 October 2021 (UTC)[reply]

Lua error: not enough memory

[edit]

See here for a list of pages where this template runs out of Lua memory. I'm not sure whether this can be fixed by changing the Lua module—the Wikidata items used by these pages might just be too large. LennardHofmann (talk) 11:59, 11 July 2022 (UTC)[reply]

class="collapsible autocollapse" not working

[edit]

Shouldn't the above in the code display the template in a collapsed form?

On Category:Ulrica Christina Wellingk the tree takes up so much room that one didn't even notice that infobox wasn't working as the page wasn't connected to Wikidata.
 ∞∞ Enhancing999 (talk) 22:26, 3 September 2024 (UTC)[reply]

Date format

[edit]
  1. Lifetimes are currently rendered as e.g. "1920 — 2020". It should be "1920–2020", i.e. en dash and no spaces.
  2. For living people, what does the "p." in "р. 1949" stand for?

Sinigh (talk) 11:18, 22 October 2024 (UTC)[reply]

[edit]

It looks like there's a problem with the Lua code that looks for the Commons link: it should automatically follow topic's main category (P910) values to the category item and get the Commons sitelink from there, but it looks like it currently doesn't. You could use the 'getCommonsLink' function from Wikidata Infobox to do this. See [1]. Thanks. Mike Peel (talk) 07:24, 19 November 2024 (UTC)[reply]