Template talk:Cat main

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Categories
WikiProject icon This template is within the scope of WikiProject Categories, a collaborative effort to improve the coverage of categories on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.

Link to Portal:Contents/Categorical index[edit]

Instead of the link "category" going to Wikipedia:Categorization it should go to Portal:Contents/Categorical index. -- Alan Liefting (talk) - 06:45, 8 June 2009 (UTC)

Disagree, it should define the term, not go to a large index. That might be useful in another way, or accessed off WP:CAT, but not the primary target.
--William Allen Simpson (talk) 04:32, 10 June 2009 (UTC)
How about Wikipedia:FAQ/Categories? This is aimed at readers rather than editors and we should cater predominately for readers in this instance. The current link used is solely for editors. -- Alan Liefting (talk) - 00:40, 11 June 2009 (UTC)
Disagree, and disagree with the contents of the FAQ. Who decided these were frequently asked? And some of the answers are misleading or wrong. If there are suggestions for improving WP:CAT, they should be discussed on its Talk.
--William Allen Simpson (talk) 04:08, 11 June 2009 (UTC)
How about we take the link out entirely? In the meantime Wikipedia:FAQ/Categories can be fixed. -- Alan Liefting (talk) - 06:16, 11 June 2009 (UTC)

Suggestion: allow links to multiple articles[edit]

The current template {{catmore}} allows links to only one article. I'd like to suggest modifying the template to allow links to multiple articles, as {{main}} does. Here is the suggested new template. This is what it would like:

My suggestion is to modify the current template, not create a new one. Regards—G716 <T·C> 22:53, 17 June 2009 (UTC)

What would be an example of a category with multiple articles? ZooFari 00:20, 18 June 2009 (UTC)

How about Category:Insurance companies of the United States User:G716/catmore test I am sure there are others. —G716 <T·C> 01:15, 18 June 2009 (UTC)

  • Bad example. Insurance in the United States is not even in the category and from its contents should not be nor should it be a 'main' for this category as it discusses insurance in the US in general, not specifically insurance companies. Hmains (talk) 02:11, 18 June 2009 (UTC)
    • Thanks for your comment. Do you have an opinion about changing the template? Regards—G716 <T·C> 03:47, 18 June 2009 (UTC)
  • I'd prefer that only one be allowed. That corresponds to the pipe space (| ) category sorting technique, and yields less confusion. The example given above would never be correct, as the List of article isn't usually considered the "main" article, and is usually sorted by the pipe star (|*) convention. Some years ago, we had a long series of problems with overuse of the {{main}} template (used to be 5, now at 10 links), and series of problems with overuse of {{see also}} templates (now at 15 links). Just because parser functions permit something, doesn't mean it's a good idea.
    --William Allen Simpson (talk) 13:10, 23 June 2009 (UTC)

Change link[edit]

I have created the Help:Categories pages - part of a series of short pages to help readers rather than editors. A list can be seen at Category:Reader help. I would like to see the word "category" linking to Help:Categories rather than Wikipedia:Categorization. This has been discussed in the section above as well. -- Alan Liefting (talk) - 21:57, 19 January 2010 (UTC)

RFC: Change link from Wikipedia to Help namespace[edit]

At present this template has a link from the word "category" going to Wikipedia:Categorization. The template is in high use in content categories and therefore visible to readers. Wikipedia:Categorization is of interest to editors and of very little interest to readers. I have created a page at Help:Categories as a simple guide for readers who are not interested in the high level of detail about categorisation and editing needed for editors. I would like the link changed to go to Help:Categories. After all, we are here to serve the reader. -- Alan Liefting (talk) - 23:48, 20 March 2010 (UTC)


  1. Support. --Ancheta Wis (talk) 09:26, 21 March 2010 (UTC)



Help:Category is for editors and Help:Categories is for readers. We are here to create a resource for readers. When a reader clicks on the link created by the catmore template they would expect to find out info on categories as a WP navigation tool and not a page about the nuances of editing. -- Alan Liefting (talk) - 18:45, 30 March 2010 (UTC)
The RfC says WP:Category is for editors, not Help:Category. Are they both editor-centric in your opinion? To me, the lede in Help:Category seems like it would be helpful to readers and I would think that that page could be expanded to be more relevant to readers if needed. I think I like your idea, but I'm not a fan of the additional help page. —Ost (talk) 19:17, 30 March 2010 (UTC)
I've redirected Help:Categories to Help:Category and merged the small amount of content from Help:Categories to Help:Navigation. I suggest linking this template to Wikipedia:FAQ/Categories instead. Gareth Aus (talk) 21:29, 30 March 2010 (UTC)
I have undone the redir. Lets get a bit more discussion before it it is redirected (essentially a deletion). -- Alan Liefting (talk) - 04:19, 31 March 2010 (UTC)
Wikipedia:Categorization and Help:Category are both editor-centric. We need a simple explanation about categories for readers who are not interested in edidting. -- Alan Liefting (talk) - 04:19, 31 March 2010 (UTC)
  • Support total removal of the link. If an explanation of what a category is is required, then it should be provided at a higher level than page content. Rich Farmbrough, 09:24, 19 April 2011 (UTC).

Rename this template[edit]

I propose moving this template to {{catmain}}, which is now a redirect to this template. Once that is completed, I would have a bot update the links. Phase 2 would be to move {{catmore2}} to {{catmore}}. The rationale is that "for more information" connotes "catmore", while "the main article" connotes "catmain". The two templates are basically syntax compatible, and it is just the wording the differs, so there shouldn't be any major problems (e.g., accidental reverts or viewing old revisions). Does anyone have any opinions on this matter? Or is there an even better name to use for these two templates? Thanks! Plastikspork ―Œ(talk) 21:31, 25 September 2010 (UTC)

I'd support the renames of these templates. The text of this template is The main article for this category is Foo, so it would make more sense if this template were named Catmain. Once that's done, it would only be logical for {{catmore2}} to be moved to {{catmore}}. — ξxplicit 21:40, 25 September 2010 (UTC)
Also support for the same reasons given above. We should consider similar renames for {{catmoresub}}, {{catmoremulti}} and {{catmoretext}}. PC78 (talk) 06:56, 26 September 2010 (UTC)

Okay, since there were no objections, I have renamed this template and catmore2. Plastikspork ―Œ(talk) 03:25, 2 October 2010 (UTC)

A question: Why the space? catmain would seem to fit the template syntax better than cat main, I'd think?. - The Bushranger Return fireFlank speed 20:13, 4 October 2010 (UTC)
There are a couple reasons, (1) the space does match the recent renaming trend, e.g., {{see also}}. More importantly, there would otherwise be a name collision, since it would mean moving catmore2 over catmore, which already exists. By moving "catmore2" to "cat more" and "catmore" to "cat main", both moves can be completed at the same time. I, otherwise, have no real opinion on the space vs. no space issue. Thanks! Plastikspork ―Œ(talk) 04:10, 6 October 2010 (UTC)

(Blessedly, the mentioned templates were since renamed to {{Cat main}} and {{Cat more}}.) -A876 (talk) 04:28, 8 June 2016 (UTC)

Harmonizing with Main?[edit]

Cat main and main have different styling and syntax. Perhaps they should be harmonized? --Bsherr (talk) 06:48, 6 October 2010 (UTC)

The syntax template seems to be compatible with {{main}}, in that if this template were redirected to {{main}} all the transclusions would function. However, {{main}} has options not available in this template (e.g., changing the link appearance, or linking to more than one article). When I added the linking option to {{cat more}}, I tried to match the syntax used by main. If we were to add the option to link to more than one article to this template and/or to {{cat more}}, we could then merge {{catmoremulti}}. I believe there was some resistance to this before, which is why {{catmoremulti}} was created as a fork. It seems like a sensible idea to me to merge as many of these templates as possible, or as many as make sense to merge. Plastikspork ―Œ(talk) 06:25, 7 October 2010 (UTC)
I mean whether the text should be a complete sentence, as it is here, or should use a colon, as Main does. Is one or the other more common for hatnotes? --Bsherr (talk) 16:40, 7 October 2010 (UTC)
I don't think so. However the principles (whterh they oppose or support each other I'm not sure) would seem to be: "conformity is good" and "natural sentences are preferable". I believe the colon usage was probably introduced to support the list, and it does indeed work better in my opinion when three or more "main" pages are referred too, I would however suggest that this is a very small percentage of cases. Rich Farmbrough, 09:52, 19 April 2011 (UTC).
I would support this, there seems no good reason to have three templates here, when one will do. Rich Farmbrough, 09:29, 19 April 2011 (UTC).
Main also supports the article/page dichotomy (now for being called from categories too). Rich Farmbrough, 09:52, 19 April 2011 (UTC).

Edit request[edit]

Can someone please change "article" to "page" in the message? The main page for the category is not necessarily an article, it could be a page in the Wikipedia namespace, a portal, a help page etc. McLerristarr | Mclay1 06:40, 11 December 2010 (UTC)

This seems fairly uncontroversial. I will make the change, but please revert/complain/ping me if it is controversial. Thanks! Plastikspork ―Œ(talk) 17:51, 11 December 2010 (UTC)

However, one still expects it to say "article" for the majority of categories which contain only articles and sub-categories full of articles and so on. Barring some parser-functionality to check the namespace of the page indicated by parameter {{{1}}} it may be advisable to create a separate template. ―cobaltcigs 19:48, 5 January 2011 (UTC)

How about a "type=" parameter, with the default being "article"? It would be possible to put in a namespace check, but that would be more complicated, especially with the possibility for multiple "main" articles/pages. Plastikspork ―Œ(talk) 01:15, 6 January 2011 (UTC)
A type parameter is a good idea. The default ought to be article, since this will most often be employed for content purposes rather than project purposes. --Bsherr (talk) 01:28, 6 January 2011 (UTC)
Done. Plastikspork ―Œ(talk) 01:57, 6 January 2011 (UTC)
It seems a bit unnecessary to allow anything to replace "article". I can't think of anything other than "page" that would need to be there. Perhaps changing the parameter to "|article=no" or something. Otherwise it may lead to inconsistency, mistakes or vandalism if people can stick anything in there. McLerristarr | Mclay1 10:45, 8 January 2011 (UTC)
Sure, I could do it that way as well. Plastikspork ―Œ(talk) 16:01, 8 January 2011 (UTC)
I think "main" articles/pages in excess of one or two would indicate a design flaw in one’s category hierarchy. ―cobaltcigs 12:41, 23 January 2011 (UTC)
I am inclined to agree. Note that the parser magic referred to above is already present in {{Main}}. Rich Farmbrough, 09:54, 19 April 2011 (UTC).

Edit request on 1 January 2012[edit]

Dr. B. R. Ambedkar (M.A.,PH.D.,LL.D.,D.LITT.,D.SC.,BARRISTER-AT-LAW) Gentle1word by manish (talk) 10:25, 1 January 2012 (UTC)

X mark.svg Not done Skier Dude (talk) 21:26, 2 January 2012 (UTC)

Suggestion for a new link[edit]

Currently this template has a link to Wikipedia:Category which is an extensive page all about category guidelines and includes detail on editing. Most readers will not be interested in all that detail. I would like to recommend a change in have it linked to Help:Categories. It is a short, simple succinct page about categories. -- Alan Liefting (talk - contribs) 19:52, 11 March 2012 (UTC)

Sensible, and no opposition to the idea, so Yes check.svg Done — Martin (MSGJ · talk) 20:16, 23 May 2012 (UTC)


During discussions for a category pages MOS (see Wikipedia talk:Manual of Style/Category pages) the topic of when this template should be used came up. A case where it is of no use and a source of confusion is when there are either very few or no subcategories (and the category has an associated topic of the same name). Having {cat main} in these cases is redundant, and having a bolded link and a nearby unbolded link in the category contents is confusing. -- Alan Liefting (talk - contribs) 00:32, 23 June 2012 (UTC)

I'm not sure that this fairly represents the consensus, which is still emerging, as far as I can see. So far two editors have spoken out in favour of the view above, while three editors have spoken out in favour of the view that the template should always be used, if a main article exists for a category. Good Ol’factory (talk) 01:17, 29 June 2012 (UTC)

Edit request[edit]

  • Request: Replace source code with full sandbox code: {{Cat main/sandbox}} (includes document part)
  • Change: Unbolded the target page. This is just a hatnote. -DePiep (talk) 20:29, 24 September 2012 (UTC)
Okay, seems uncontroversial. This can be reverted on request. — Martin (MSGJ · talk) 15:20, 25 September 2012 (UTC)
Please restore bolding. This is a hatnote template, but it is being used as much more: on many category pages, {{Cat main}} supplements or constitutes the category description. -- Black Falcon (talk) 17:26, 6 October 2012 (UTC)
Yes check.svg Done Bolding restored. EVula // talk// // 00:05, 7 October 2012 (UTC)
Thank you. -- Black Falcon (talk) 01:14, 7 October 2012 (UTC)

Rcats needed[edit]

­This redirect needs Rcats (redirect category templates) added. Please modify it as follows:

  • from this...
#REDIRECT [[Template:Cat main]]
  • to this...
#REDIRECT [[Template:Cat main]]

{{Redr|from move|from template shortcut|fully protected}}

Template {{Redr}} is a shortcut for the {{This is a redirect}} template, which is itself a shortcut used to add categories to redirects. Thank you in advance! – Paine Ellsworth CLIMAX! 17:46, 2 February 2014 (UTC)

Done --Redrose64 (talk) 20:59, 2 February 2014 (UTC)
Thank you, Redrose64! – Paine Ellsworth CLIMAX! 03:24, 3 February 2014 (UTC)

Template's name[edit]

Anyone else, on seeing this template's name from time to time, keep thinking it's about specifying a cat(egory) rather than an article..?

On second thoughts, this probably isn't the best place to wonder about it... Sardanaphalus (talk) 17:52, 26 April 2014 (UTC)
Right, twice. Thanks for solving the bug that bugged my language mind bubble all these years. -DePiep (talk) 18:05, 26 April 2014 (UTC)
Because "article" is the default namespace, "article" is implicit. That keeps names from getting stupidly long.
For links to a main article (from a section of an article), use {{Main}}. (an article's main article)
For links to a main category (from a section of an article), use {{Main category}}. (an article's main category)
For links to the main article for a category, use {{Cat main}}. (a category's main article) -A876 (talk) 04:28, 8 June 2016 (UTC)


@Mr. Stradivarius: are you gonna switch this template to the lua module? FYI: One difference between this template and the module is that in the template all links are bold, while in the module they are not. --Nullzero (talk) 14:35, 27 June 2014 (UTC)

I'd need to make a new module, but it shouldn't be too hard to use the existing ones as a template. — Mr. Stradivarius ♪ talk ♪ 14:37, 27 June 2014 (UTC)
Wait, shouldn't Module:Main do it already? --Nullzero (talk) 15:37, 27 June 2014 (UTC)
@Nullzero: Not quite. Now written at Module:Cat main. You can test it out with {{cat main/sandbox}}. — Mr. Stradivarius ♪ talk ♪ 16:00, 27 June 2014 (UTC)
@Mr. Stradivarius: It looks good, so when will we replace the template with lua version? --Nullzero (talk) 10:31, 3 August 2014 (UTC)
@Nullzero: Good point, I had forgotten about this. :) I've added some new test cases and deployed it. — Mr. Stradivarius ♪ talk ♪ 22:10, 4 August 2014 (UTC)

Error if not called in a category page[edit]

I saw it used in regular articles [1]. Fgnievinski (talk) 20:19, 9 July 2014 (UTC)

Discussion notice[edit]

Please note the discussion at Wikipedia:Redirects for discussion/Log/2015 December 17#Cat main, about an article space redirect to this template. The nominator thinks that if someone doesn't pass an article to the template that it links to Cat main, so the redirect was therefore created. I don't know if this is actually the case, so someone who knows needs to comment at the RfD. Thanks, Oiyarbepsy (talk) 06:16, 18 December 2015 (UTC)

Feature to encourage article creation[edit]

I would like to see this do a page-existence test, and if a) only one article is specified and it is a redlink, or b) multiple are specified and all are redlinks, for the output to report something like the following: "No such article seems to exist. If it exists under a different name, please correct this template. If no appropriate article exists yet, you can create it!", with an article creation link, I guess going to the WP:Article Wizard, since last I looked we're not letting anons create all-new pages in mainspace any longer.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  00:52, 10 July 2016 (UTC)