This wiki's URL has been migrated to the primary domain.Read more here


Forums: Index > Watercooler > International migration

The new template {{roots}} creates a record of the country of birth of self and all ancestors. It puts this on subpage /roots. See Nicolaas Simon Korver (1856-1922)/roots. If people are content with this, it could move to the sensor page. However, if we want to display information on villages etc; or an ancestry share per country (NS Korver is 75% Dutch and 25% German), we need to keep a separate page for reasons of size and performance.

I noted that people manually categorize "Migrants from A to B". With SMW, this can be automated:

{{#ifeq: {{getfact|birth nation}} | {{getfact|death nation}} | | [[Category:Migrants from {{getfact|birth nation}} to {{getfact|death nation}}]] }}

I noted that people manually categorize "Ancestry from A". This can be automated too.

Let me know if this is worth my while; and whether other things can be simplified. rtol 08:43, August 19, 2010 (UTC)

Yes! I would love to see this automated. Lanica 17:58, August 20, 2010 (UTC)
Migrants from A to B is easy. See {{CatMigration}} and Migrants from Germany to Netherlands.
"Ancestry from" is easy with properties, very hard with categories. Unless people protest, I'll go with properties. rtol 15:23, August 22, 2010 (UTC)

The template is now {{Migration}} and it is part of {{showfacts biography}}. A number of you are testing. Please report back if strange things happen. rtol 21:59, August 23, 2010 (UTC)

The templates now also pick up the nation from the locality. rtol 20:21, August 24, 2010 (UTC)

Note that "Migrants from A to B" only works if both country A and country B have a page.

Note that "the" is dropped: "Migrants from USA to Gambia" rather that "Migrants from THE USA to THE Gambia". rtol 18:18, August 30, 2010 (UTC)

We could easily fix the template to put the article in, if we had a property on the country page. Thurstan 21:10, August 30, 2010 (UTC)
Let's try that. rtol 05:13, September 1, 2010 (UTC)
Done: please test. Thurstan 06:58, September 1, 2010 (UTC)
Tested. My great-grandma now moved to THE Netherlands. rtol 07:14, September 1, 2010 (UTC)

Demo: Ancestry from Byzantium

{{#ask: [[Ancestry::Byzantium]]|?father|?mother|?ancestry}} returns