Template talk:Editnotice
![]() | Template:Editnotice 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. |
|
|
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III. |
Using plainlinks by default
[edit]This template calls {{fmbox}}, which calls Module:Message box' default behavior, which wraps all output in the class plainlinks
. I'm not sure that this is desirable behavior. For templates like {{Pronoun editnotice}} which support arbitrary external links, there's no reason to suppress the default MW behavior of flagging external links. For instance, someone looking at Template:Editnotices/Page/Elliot Page would expect that "source" is going to be a local link (or, if they notice the slight difference in color, a link to an affiliated site), when in fact it's to theguardian.com.
I see two ways we could handle this:
- Add a
|plainlinks={{{plainlinks|yes}}}
to {{fmbox}} and then add a|plainlinks=no
to this template's call of {{fmbox}} - Add a
|plainlinks={{{plainlinks|yes}}}
to {{fmbox}}, add a|plainlinks={{{plainlinks|yes}}}
to this template's call of {{fmbox}}, and then let transcluding templates disable that behavior case-by-case if they want.
I favor #1. I don't think we should be suppressing the internal links icon as default behavior. If people creating editnotices have a good reason to do so, they can suppress it explicitly with <span class="plainlinks">...</span>
. Thoughts? -- Tamzin[cetacean needed] (she/they) 08:56, 25 January 2022 (UTC)
- @Tamzin: I agree. I came here to make an edit request for this. Do you want to go ahead with the edit? SilverLocust 🃏 💬 23:35, 28 January 2024 (UTC)
- Heh, 2 years is probably long enough for someone to object. Long enough, in fact, that I've become an admin since I wrote this and won't even need to FPER it. Yeah, I'll get to this tonight or tomorrow. -- Tamzin[cetacean needed] (they|xe) 23:52, 28 January 2024 (UTC)
- Seems reasonable. {{u|Sdkb}} talk 07:21, 29 January 2024 (UTC)
Done (using option 1 from above). This can be overridden either inline or by giving the whole editnotice
|class=plainlinks
. -- Tamzin[cetacean needed] (they|xe) 00:16, 30 January 2024 (UTC)
- Seems reasonable. {{u|Sdkb}} talk 07:21, 29 January 2024 (UTC)
- Heh, 2 years is probably long enough for someone to object. Long enough, in fact, that I've become an admin since I wrote this and won't even need to FPER it. Yeah, I'll get to this tonight or tomorrow. -- Tamzin[cetacean needed] (they|xe) 23:52, 28 January 2024 (UTC)
Disable display in mainspace
[edit]As you can see at Quarry 59537, it's fairly common for people to mistake templates like {{American English}} for their cousins like {{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}}}}
|<!-- Ignore -->
|{{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]]
}}
|<rest of template>
}}
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:Editnotice/styles.css
[edit]We should use TemplateStyles for this template. 187.175.48.172 (talk) 19:27, 3 August 2022 (UTC)
Linking editnotice guide in the notice
[edit]Given that {{Editnotice/notice}} serves as a kind of quasi-documentation for editnotices, I'm planning to edit that template to link to Wikipedia:Editnotice over editnotice
. Please let me know if there are any concerns. Cheers, Sdkb talk 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! Sdkb talk 16:19, 4 September 2024 (UTC)
Namespace key off topic
[edit]I don't see how any parameter of {{Editnotice}} uses the IDs in Template:Editnotice/doc § Namespace key. The only things worth keeping are the two {{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)