Hello,
I am trying to generate a category using a template on a subpage. Here is what I have.
1. This is the article. It contains {{Supercentenarian}}, which generates an infobox from data stored at "Test Person/info"
http://gerontology.wikia.com/wiki/Test_Person
2. This is the info page. It contains all the parameters used to store the information on the person.
http://gerontology.wikia.com/wiki/Test_Person/info
3. This is the infobox that displays the information from the "info" page into an organized infobox format.
http://gerontology.wikia.com/wiki/Template:Supercentenarian
Side note: the reason I am doing it this way, is so tables can be generated from data retrieved from the "info" pages without having to duplicate it on multiple lists.
Question But my question is in regards to the info page:
http://gerontology.wikia.com/wiki/Test_Person/info
I am looking to have all these "info" pages contain the category [[Category:Info subpages]], but I don't want it to be done manually so as they may be missed. Here is what I have for the "info page" example:
{{#switch:{{{2}}}| |name = John Thomas Smith |forname = John Thomas <other lines here> |status = verified }}
I was looking to do something like this:
{{Info |name = John Thomas Smith |forname = John Thomas <other lines here> |status = verified }}
So that the {{Info}} template contains something like this:
{{#switch:{{{2}}}| [[Category:Info subpages]]
However, I tried this, but it isn't working:
http://gerontology.wikia.com/wiki/Template:Info
Thanks for any help!