Template talk:Check talk
Template:Check talk is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
To help centralise discussions and keep related topics together, Template talk:Check talk wp redirects here. |
Overriding checktalk?
editIs there a way to override check talk if the template is included on a particular page as an example? --TheFarix (Talk) 13:05, 10 August 2006 (UTC)
- only with subst:Check talk and removing categories, I suppose ;-) --katpatuka 08:56, 5 September 2006 (UTC)
- I've created {{check talk wp}}. --Rschen7754 (talk - contribs) 03:26, 24 February 2007 (UTC)
#switch with namespaces variables
editTo avoid possible localization issues one could use the following namespaces variables for #switch:
|{{ns:0}} |{{ns:Project}} |{{ns:User}} |{{ns:Image}} |{{ns:Category}} |{{ns:MediaWiki}} |{{ns:100}}
and a bit more down {{ns:template}}
. --katpatuka 08:55, 5 September 2006 (UTC)
Make more readable
editCould someone change the warning to read more prominently like so: This template is misplaced. It belongs on the talk page: Template talk:Check talk.? Thanks. (→Netscott) 10:15, 4 April 2007 (UTC)
- {{editprotected}} done. CMummert · talk 12:30, 4 April 2007 (UTC)
- Thanks. (→Netscott) 17:25, 5 April 2007 (UTC)
Broken?
editI noticed a while ago that this template doesn't seem to be working. Nothing seems to have been changed, so I'm wondering if this is a MediaWiki thing? If someone could fix this, it would be much appreciated. Dancter 06:25, 29 April 2007 (UTC)
Add protected page template
edit{{Editprotected}} This template needs a protected page template on it (even the little lock icon version would do). — SMcCandlish [talk] [cont] ‹(-¿-)› 11:13, 11 May 2007 (UTC)
Done Added the {{protected template}} notice. Adambro 14:07, 11 May 2007 (UTC)
working
editIt isn't working guys. --Andersmusician $ 17:16, 20 May 2007 (UTC)
- ALso, check talk only works with Template:Infoboxrequested, see Category:Main pages with misplaced talk page templates, only shows articles with infobox requested. --Andersmusician $ 17:22, 20 May 2007 (UTC)
- I think it will work if the talk namespace check is changed to
{{#ifeq: {{NAMESPACE}}|{{SUBJECTSPACE}}|<font color="red">'''''This [[Wikipedia:template|template]] is misplaced. It belongs on the [[Wikipedia:talk page|talk page]]:'' [[{{TALKPAGENAME}}]].'''</font>}}
{{editprotected}}
- I changed the code slightly and tested it on my user page, and I believe it's working now. — Carl (CBM · talk) 21:23, 16 June 2007 (UTC)
Confusing and misleading on some category pages
editIt obviously makes sense that a "talk page style" template shouldn't also be used on article space categories, but I've noticed this message appearing on things like stub categories (for example, Category:California County Route stubs), where things like Wikiproject notices are completely appropriate. Since there's no way to distinguish in wikicode between project-space and article-space categories (wouldn't be a bad idea if this were possible, but that's one for the devs), I think it might be better to exclude the message from that namespace. Failing which, I'd suggest an 'override' parameter, or at the very least, a caveat about the use of this in templates that might be transcluded in such a way. Alai 02:01, 10 August 2007 (UTC)
Add category
edit{{editprotected}}
Please add the following to the bottom of the template page:
<noinclude>[[Category:User warning templates|Check]]</noinclude> Thanks. GregManninLB (talk) 17:01, 21 April 2008 (UTC)
- I don't think this is a user warning template... --- RockMFR 17:20, 21 April 2008 (UTC)
- Agree that doesn't seem to fit, but at the same time this template should go into a category. Unless there's something more specific, Category:Wikipedia utility templates or Category:Wikipedia metatemplates work for me. – Luna Santin (talk) 22:26, 21 April 2008 (UTC)
Error class
edit{{editprotected}}
Please change <center><font color="red">'''''This [[Wikipedia:template|template]] is misplaced. It belongs on the [[Wikipedia:talk page|talk page]]:'' [[{{TALKPAGENAME}}]].'''</font></center>
to <strong class="error">This [[Wikipedia:template|template]] is misplaced. It belongs on the [[Wikipedia:talk page|talk page]]: [[{{TALKPAGENAME}}]].</strong>
for consistency. Thanks. —Ms2ger (talk) 18:53, 4 July 2008 (UTC)
hay are you doind and what is this page all about —Preceding unsigned comment added by 64.136.26.235 (talk) 02:02, 8 September 2008 (UTC)
Allow for category override
edit{{editprotected}}
Please change
- [[Category:Main pages with misplaced talk page templates]]
to
- {{{category|[[Category:Main pages with misplaced talk page templates]]}}}
and
- [[Category:Templates using check talk template|{{PAGENAME}}]]
to
- {{{category|[[Category:Templates using check talk template|{{PAGENAME}}]]}}}
This is per Template talk:Tlrow#Category magic and will allow {{Tlrow}} to be used to document templates such as {{Controversial}} which use Check talk. Thank you. --Marc Kupper|talk 18:53, 30 September 2009 (UTC)
- Done, cheers, Skomorokh, barbarian 22:22, 30 September 2009 (UTC)
Namespace switch
edit{{editprotected}} Please replace
{{#switch:{{NAMESPACE}} |{{ns:0}} |Wikipedia |User |Image |Category |Mediawiki |Portal |Help = <strong class=error>
to
{{#ifeq:{{NAMESPACE}} |{{SUBJECTSPACE}} |<strong class="error">
. This change adds a support for File namespace and make future maintainance easier. --fryed-peach (talk) 08:29, 30 October 2009 (UTC)
- It also broke other templates that were using this. :D I put a quick fix in place, tell me if it isn't good enough. —TheDJ (talk • contribs) 10:53, 30 October 2009 (UTC)
- Thank you for the fixes! --fryed-peach (talk) 06:08, 2 November 2009 (UTC)
New code with ((cat handler))
editI have reworked the code of this template and used {{cat handler}} for its internal logic. The new version is in {{check talk/sandbox}}.
I updated the two links in the message to be directly to the current help pages on templates and talk pages.
Both the old version and the new version keep quiet when on template pages, and of course also on talk pages.
I removed Category:Templates using check talk template from my new version, since that category is not needed and can cause categorization of templates that just show another template in their documentation. We can just as easily find the templates that use {{check talk}} by using "What links here", then choose to only list template space. That gives about 45 items, of which 40 are the templates that use {{check talk}}.
The old version of this template is showing the error message and adds the error category also on pages where we only demonstrate templates. The old version suppresses the error message and categorization on some pages, but that list is short and it is hard-coded in this template. The old version can also take the "category =" parameter to suppress the categorization, but it still shows the error message. And that parameter is somewhat messy to add to other templates since it involves undefined and empty but defined values... And we have to manually feed "category =" to the templates when we demonstrate them. And I could only find one template that uses that parameter in this template: {{controversial}}.
While {{cat handler}} has a central blacklist where we list pages where templates should not auto-categorize. Since {{cat handler}} is being used by many templates then its blacklist will be better maintained. I fed both the error message and the category to {{cat handler}}, thus both things will be suppressed when on blacklisted pages. For demonstration of templates when on pages that are not in the blacklist, then my new version supports both the old "category =" parameter, and the new standard "nocat=true" parameter. The "nocat=true" parameter is easier to forward from other templates. In my new version these parameters suppress both the error message and the categorization.
I will deploy this in a day or so.
--David Göthberg (talk) 08:30, 26 November 2009 (UTC)
- Done - I got impatient. Now that I looked at this again some hours later it seemed straight forward and it fixes the stuff people have been asking for further up this page. So I boldly deployed it.
- --David Göthberg (talk) 12:54, 26 November 2009 (UTC)
- Done - I have done the same update to {{check talk wp}}. But it of course still keeps quiet on Wikipedia space pages. {{check talk wp}} is only used by four templates, which are very easy to find with "What links here", so it too didn't need Category:Templates using check talk template. But I didn't add the messy "category =" parameter, since this template didn't use it, so I only added the "nocat = true" parameter.
- --David Göthberg (talk) 14:53, 27 November 2009 (UTC)
Improper warning in editnotices of articles
editWhen editing the article Paris Lees we get this warning:
This template is misplaced. It belongs on the talk page: Talk:Paris Lees.
This appears when Template:Editnotices/Page/Paris Lees is displayed. That editnotice contains {{MOS-TW}}
which uses {{check talk}}
. Is it possible to amend Template:Check talk so that this warning is not shown for editnotices? It detracts from the important stuff in the two boxes. --Redrose64 🌹 (talk) 19:06, 28 May 2019 (UTC)
Error class
editI notice that {{Check talk wp}} doesn't use the error class or {{Error}}, but {{Check talk}} does. Could we fix up check talk wp? {{u|Sdkb}} talk 22:27, 17 June 2021 (UTC)