Template talk:Editnotice#Adding |category= parameter

{{Permanently protected}}

{{archives|search=yes}}

{{User:MiszaBot/config

| algo = old(365d)

| archive = Template talk:Editnotice/Archive %(counter)d

| counter = 1

| maxarchivesize = 150K

}}

Disable display in mainspace

As you can see at {{quarry|59537}}, it's fairly common for people to mistake templates like {{tl|American English}} for their cousins like {{tl|Use American English}}. I've just fixed the six listed there, my third run through fixing these. Often they stick around for months. I would suggest wrapping this template in the following:

{{#ifeq:{{NAMESPACENUMBER}}|0

|{{#if:{{is redirect|{{FULLPAGENAME}}}}

|

|{{if preview

|{{Error|Page is using editnotice template! Please remove or switch to an appropriate article template instead. (For instance, change {{tl|British English}} to {{tl|Use British English}}.)}}

}}Category:Pages transcluding editnotices

}}

|

}}

The redirect check in there is because some redirects use editnotices to warn people not to turn them into articles, and while that's not exactly standard usage, it's also probably not worth policing. But that check could be removed if desired.

Another option here would be to use Lua to get the name of the template being mistakenly used, allowing for stuff like correcting the template to the "Use" version on the fly (probably still in addition to the error message—which could be more dynamic—and maintenance cat). At least, I'm not aware of a way to do that with just templates.

Thoughts? -- Tamzin[cetacean needed] (she/they) 08:26, 23 March 2022 (UTC)

:@Tamzin I'm a year-and-a-half late on this, but if we're not already monitoring uses of editnotices in mainspace with at least a tracking category, yes, we absolutely ought to be. Cheers, {{u|Sdkb}}talk 15:55, 29 August 2023 (UTC)

TemplateStyles: [[Template:{{BASEPAGENAME}}/styles.css]]

We should use TemplateStyles for this template. 187.175.48.172 (talk) 19:27, 3 August 2022 (UTC)

Linking editnotice guide in the notice

Given that {{t|Editnotice/notice}} serves as a kind of quasi-documentation for editnotices, I'm planning to edit that template to link to Wikipedia:Editnotice over {{tq|editnotice}}. Please let me know if there are any concerns. Cheers, Sdkbtalk 18:39, 28 February 2024 (UTC)

:Done. SilverLocust 💬 10:18, 4 September 2024 (UTC)

::Oops, seems I forgot to circle back to this. Thanks for implementing! Sdkbtalk 16:19, 4 September 2024 (UTC)

Namespace key off topic

I don't see how any parameter of {{t|Editnotice}} uses the IDs in {{slink|Template:Editnotice/doc#Namespace key}}. The only things worth keeping are the two {{t|efn}}s, which need copyediting per WP:PROSELINE. 184.146.170.127 (talk) 01:39, 17 June 2024 (UTC)

:I (same person) did the copyediting myself, absent others explaining the relevance. 174.92.25.207 (talk) 08:54, 8 July 2024 (UTC)