Template talk:Category main article

(Redirected from Template talk:Cat main)
Latest comment: 9 months ago by GhostInTheMachine in topic Recent move
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)Reply

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)Reply
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)Reply
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)Reply
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)Reply
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)Reply

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

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)Reply

  • 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)Reply
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)Reply

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)Reply

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

Question

edit
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)Reply
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)Reply
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)Reply
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)Reply
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)Reply

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)Reply

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)Reply
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)Reply

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

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)Reply
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)Reply

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

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)Reply

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)Reply
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)Reply
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).Reply
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).Reply
Main also supports the article/page dichotomy (now for being called from categories too). Rich Farmbrough, 09:52, 19 April 2011 (UTC).Reply

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)Reply

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)Reply

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)Reply

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)Reply
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)Reply
Done. Plastikspork ―Œ(talk) 01:57, 6 January 2011 (UTC)Reply
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)Reply
Sure, I could do it that way as well. Plastikspork ―Œ(talk) 16:01, 8 January 2011 (UTC)Reply
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)Reply
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).Reply

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)Reply

  Not done Skier Dude (talk) 21:26, 2 January 2012 (UTC)Reply
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)Reply

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

Usage

edit

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)Reply

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)Reply

Edit request

edit
Okay, seems uncontroversial. This can be reverted on request. — Martin (MSGJ · talk) 15:20, 25 September 2012 (UTC)Reply
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)Reply
  Done Bolding restored. EVula // talk// // 00:05, 7 October 2012 (UTC)Reply
Thank you. -- Black Falcon (talk) 01:14, 7 October 2012 (UTC)Reply

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}}
  • WHEN YOU COPY & PASTE, PLEASE LEAVE THE MIDDLE LINE BLANK FOR READABILITY.

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)Reply

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

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)Reply
Right, twice. Thanks for solving the bug that bugged my language mind bubble all these years. -DePiep (talk) 18:05, 26 April 2014 (UTC)Reply
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)Reply

Module:Main

edit

@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)Reply

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)Reply
Wait, shouldn't Module:Main do it already? --Nullzero (talk) 15:37, 27 June 2014 (UTC)Reply
@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)Reply
@Mr. Stradivarius: It looks good, so when will we replace the template with lua version? --Nullzero (talk) 10:31, 3 August 2014 (UTC)Reply
@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)Reply

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)Reply

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)Reply

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)Reply

Template:Topic cat

edit

I just created Template:Topic cat, because I think it is helpful for readers and editors beginning to navigate the Wikipedia category tree, and I imagine it could be useful for bots trying to figure out which categories diffuse and which ones don't. I am considering adding a |main= to Template:Topic cat to integrate the functionality of {{cat main}}, and am looking for thoughts from the editors of this template. Thanks! Daask (talk) 02:54, 5 July 2018 (UTC)Reply

Why separate from Template:Main?

edit

Why is this template separate from {{Main}}? {{Main}} seems to have all of the functionality of this template except for a few minor differences in output. Any insight into this matter at the ongoing discussion at Template talk:Main#Category namespace would be appreciated. -- Black Falcon (talk) 04:13, 10 August 2018 (UTC)Reply

Extricating category functionality from Template:Main

edit

I'm trying to untangle the overlap between {{cat main}} and {{main}}. Please participate in discussion at Template talk:Main § Extricating category functionality. Thanks, {{Nihiltres |talk |edits}} 16:59, 3 October 2021 (UTC)Reply

Lua problem

edit

Sabse Bada Kalakar is showing an error ("Lua error in Module:Cat_main at line 43: attempt to index a nil value") due to recent changes here. It is caused by {{Frames Productions}} near the end of the article. Same at Frames Production. I'm hoping someone will investigate. Johnuniq (talk) 09:41, 8 October 2021 (UTC)Reply

I've had a look and the problem is due to use of square brackets:
{{cat main | [[Category:Frames Production series]]}}
in Template:Frames Productions—omitting them would fix this problem. However, I'm wondering if Module:Cat main should either strip out the square brackets or give a better error message if the page name is invalid (i.e. mw.title.new(page) at line 43 gives nil). Pinging recent editors to the module: @Pppery, Nihiltres, and Dpleibovitz:. Johnuniq (talk) 06:17, 9 October 2021 (UTC)Reply
I've made that error (using square brackets) innumerable times and am used to the fix. Experience is key. I'm not sure it is a worthwhile endeavor to create custom error messages for all the different ways an editor can cause failures (though there are error tracking categories in many places). Soon, novices will be expecting such hand-holding everywhere. Mainline code is complicated enough, we don't want to complexify the error paths as well. This particular error occurs for many templates. Perhaps a common templating errors section could be added to Help:A quick guide to templates? Dpleibovitz (talk) 21:48, 9 October 2021 (UTC)Reply
There seem to be so few of these errors (I fixed that one and two more, and am not aware of any others), that it's not worth doing anything. * Pppery * it has begun... 22:05, 9 October 2021 (UTC)Reply

"Template:Mainw" listed at Redirects for discussion

edit

  The redirect Template:Mainw has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2023 March 7 § Template:Mainw until a consensus is reached. MClay1 (talk) 13:00, 7 March 2023 (UTC)Reply

Requested move 22 December 2023

edit
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.

The result of the move request was: moved. (closed by non-admin page mover)mw (talk) (contribs) 21:17, 29 December 2023 (UTC)Reply


– To make the title of the template more descriptive in what it represents. Steel1943 (talk) 20:12, 22 December 2023 (UTC)Reply

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Recent move

edit

@Extraordinary Writ: Not sure exactly why, but the move broke stuff, with the template using the current page name rather than the given parameter. For example: Category:Articles with long short description uses {{cat main|WP:Short description}} which displays a link to non-existing article Articles with long short description rather than WP:Short description (or Wikipedia:Short description) — GhostInTheMachine talk to me 09:02, 30 December 2023 (UTC)Reply

Maybe the template needs to invoke the module using the new name? — GhostInTheMachine talk to me 10:26, 30 December 2023 (UTC)Reply
GhostInTheMachine, thank you for the report. The bug, which was on Module's side, has been fixed: Special:Diff/1192627662.
Side note to module developers: Module:Arguments strips suffix "/sandbox" from names of the wrapper template used, see Special:Diff/1192625513/1192627503 and Module:Arguments#L-114 (call to gsub). —⁠andrybak (talk) 12:34, 30 December 2023 (UTC)Reply
 GhostInTheMachine talk to me 12:52, 30 December 2023 (UTC)Reply

It may not be technically necessary, but could the {{Category main article}} template also be updated to match — {{#invoke:Cat main|catMain}}{{#invoke:Category main article|catMain}}? — GhostInTheMachine talk to me 18:24, 30 December 2023 (UTC)Reply

Sure, done. Extraordinary Writ (talk) 18:56, 30 December 2023 (UTC)Reply
  GhostInTheMachine talk to me 19:37, 30 December 2023 (UTC)Reply