Forum:Categories from Template


 * I want to make it so I can Categorize things easily with a template on the Genealogy Wikia. For example, if I input this:

I would want it to be categorized like this:

Births in 1900|Smith, John

Deaths in 1980|Smith, John

default sort would be Smith, John

However, if I input this:

I would want it to end up categorizing the article like this: Births in 1900|Smith, John

Year of death missing|Smith, John

default sort would be Smith, John

Thanks for any help. - AMK152 (Talk • Contributions 20:16, 20 September 2007 (UTC)

You can do this with the IF template. Your Categories template should look like this:

You may need to create the Template: If template in your wiki to get this to work. Tjoneslo 20:49, 20 September 2007 (UTC)
 * Thanks! - AMK152 (Talk • Contributions 01:54, 21 September 2007 (UTC)