Template talk:WikiProject Canada
From Wikipedia, the free encyclopedia
Contents |
[edit] Parameters
I didn't like how I couldn't mention that an article was FA-class and List-class at the same time. So, I made a third grouping: type=Article, type=List, type=Template, or type=Cat. If you don't add one of these types on a page, it will not show a type, but it will still put the page in Category:WikiProject Canada articles. If you add type=list or type=template, it will put it in Category:WikiProject Canada lists or Category:WikiProject Canada templates and not in the articles category. --Arctic Gnome 02:29, 25 November 2006 (UTC)
- Can we have a list of possible parameters and switches (eventually as a "Usage" paragraph in the noinclude section of the template, such as in {{Vancouverproject}})? --69.19.14.25 05:01, 25 November 2006 (UTC)
- That'd take some work. I'll work on it some other time. AQu01rius (User • Talk) 07:25, 25 November 2006 (UTC)
- Done. --Arctic Gnome 01:03, 27 November 2006 (UTC)
[edit] Wierd categories
Can someone who knows about templates help me out with this. I added the option of adding cangov=Yes to the template, and the template looks fine after it's added. However, when I try to put the articles into the right category (for example Category:WikiProject Canada templates) the lable at the bottom of the talk page has the right category, be it article, template, or whatever. But when I actualy go to the category pages, the page is just placed in the general Category:WikiProject Canada rather than in the right type.
What in the template is making the category tag on the page not match up with what category it is put in? Look at Talk:Prime Minister of Canada. The page thinks that it is in Category:WikiProject Government of Canada articles, but it is realy in the general Category:WikiProject Government of Canada. Thanks. --Arctic Gnome 21:52, 26 November 2006 (UTC)
- For the first part, I really don't see your problem. Can you list another example? Because for Talk:Prime Minister of Canada, the page IS supposed to be in Category:WikiProject Government of Canada articles according to this part of the code:
<includeonly>[[Category:WikiProject Government of Canada {{ #switch: {{{type|}}} | List | list = lists | Dab | dab = disambiguation page | Template | template = templates | NA | na = pages | Article | article = articles |#default = articles}}]]</includeonly>
- Where Prime Minister of Canada is an article, so the code {{ #switch: {{{type}}} | automatically substituted its category to Category:WikiProject Government of Canada articles AQu01rius (User • Talk) 22:48, 26 November 2006 (UTC)
-
-
- It is supposed to be in Category:WikiProject Government of Canada articles, and at the bottom of the talk page it says that it is in that category. However, when I go to the category it isn't there, but it is in the general Category:WikiProject Government of Canada, even though that category isn't listed on the talk page. I've refreshed my browser and empied by cache, so it isn't just my computer. Something very odd is going on. --Arctic Gnome 23:00, 26 November 2006 (UTC)
-
- Talk:Prime Minister of Canada is definetly listed in Category:WikiProject Government of Canada articles. Have you tried to reboot? AQu01rius (User • Talk) 23:38, 26 November 2006 (UTC)
-
- The reboot didn't do it, but changing the talk page and then changing it back does. It tooks like my computer doesn't notice that a page has changed categories until I edit the template on the talk page for a second time after changing the master template here. I've been changing the capitalisation and changing it back, and that solves the problem. This is very wierd. I just added startPAGENAMEend to the template so that they all won't be listed under "T", and I'm having the same problem; I have to edit the talk page a second time after changing the master template here before my computer notices the difference. Anyway, thanks for your help. --Arctic Gnome 00:28, 27 November 2006 (UTC)
[edit] Type variable
This template has a variable "type", which allows the item to be labeled a temple/list/category. But it doesn't work if its assessed NA-class. See Talk:Lieutenant Governors of Nova Scotia for it working, and Template talk:St. John's landmarks for it not working. Any ideas? - Trevor MacInnis (Contribs) 01:05, 13 January 2007 (UTC)
- I saw that myself. I can't figure out what's wrong, and we may have to find an expert on templates. For now you can make it categorise templates properly by putting the "na" in lower case. However, this will mark the impartance as being unclassified, so you'll have to mark it as na as well. So, in full it would be WikiProject Canada|class=na|importance=na|type=template. --Arctic Gnome 19:34, 21 January 2007 (UTC)