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)


 * Don't use  it's an unnecessary use of a template and the Job Que. Please use   instead. ~ NOTASTAFF Daniel Friesen (DanTMan, Nadir Seen Fire) (talk) (tricks) (current topic)  Sep 21, 2007 @ 10:18 (UTC)


 * I found why we still have the  template. Because the   doesn't play well with HTML tables in templates. I think this requires HTMLTidy to fix, but can't verify that at this time. This should read:

Tjoneslo 16:44, 21 September 2007 (UTC)