[go: nahoru, domu]

Jump to content

Template talk:Editnotice: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Gadget850 (talk | contribs)
→‎Template-protected edit request on 9 August 2014: There is no {{para|imagesize}} ''documented''
(140 intermediate revisions by 32 users not shown)
Line 1: Line 1:
{{Permanently protected}}
{{archives|search=yes}}
{{archives|search=yes}}


== Why is this standard? ==
== New parameter ==


I'd like to add a new parameter to this template (perhaps {{para|category}}) to specify a category used to check usage of the edit notice. For example [[:Category:Pages with editnotice Romeo notice]] tracks usage of {{tl|Romeo notice}}. Currently this is hard-coded in each template, but I think it could be simpler for this meta template to handle it. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:24, 15 September 2014 (UTC)
It's ''very'' annoying to me to show up at a talk page and see a redlink in the corner pushing the bar down. I'd love to know why this was made standard on talk pages. It's a useful template but forcing it up there is not going to make anyone's experience better. <span style="font-family:Verdana,Arial,Helvetica"><b><font color="black">[[User:Resident Mario|Res]]</font></b><font color="black">[[User_talk:Resident_Mario#top|Mar]]</font></span> 01:29, 9 January 2010 (UTC)


== Background colour ==
:Hi ResMar. You have come to almost the right place. The red "Page notice" link you see on user talk pages is added by the editnotice system, not by this template. So I have copied your message to [[Wikipedia talk:Editnotice#Why is this standard?]] and responded there.
:--[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 06:45, 9 January 2010 (UTC)


I'm working on a warning editbox for an inactive project's talkpage and want the warning pink background to run under the text AND the image. Setting textstyle = #fdd will do it for the text, but not for the image. I've succeeded by substing then replacing the type in the call to fmbox from "editnotice" to "warning". ([[User:Bazj/SandboxTemplate|Example]]) Could a parameter be added to expose the type of the call to fmbox with a default of "editnotice" and an option of "warning"? [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 13:49, 14 February 2015 (UTC)
== ID ==


:The issue is <nowiki>{{fmbox |type = editnotice</nowiki>, where <code>editnotice</code> sets a transparent background per {{tl|fmbox}}. Looks like the {{tl|fmbox}} editors presumed that editnotices would never have a backgrount but the {{tl|editnotice}} editors added support for background.
If {{para|id}} is not specified, then the editnotice fails validation because it creates a blank id. This needs to be made optional. I have to run away for a bit, but will look at it if no one else gets to it. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 17:19, 17 July 2010 (UTC)
:We could change {{para|type|editnotice}} to {{para|type|<nowiki>{{{type|editnotice}}}</nowiki>}}. Then setting {{para|type|warning}} would set the warning triangle and the pink background.
:The problem is actually in {{tl|fmbox}}, so I have proposed a fix there. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 22:04, 17 July 2010 (UTC)
::[[File:Green check.svg|15px]] '''Done''' -'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 14:16, 26 July 2010 (UTC)
:Discussion? --<span style="color:Turquoise">''''' &nbsp;[[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup></span> 14:18, 14 February 2015 (UTC)
::The version I currently have in the sandbox uses :
<nowiki>|{{fmbox
|type = {{#ifeq: {{{warning_notice|}}} | warning | warning | editnotice }}</nowiki>
::to protect against any other (invalid) values for the fmbox's type. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 14:36, 14 February 2015 (UTC)
:::You say that you are setting <code>textstyle = #fdd</code> - this shouldn't do anything at all, since the {{para|textstyle}} parameter is intended for a CSS [http://www.w3.org/TR/css-style-attr/#syntax declaration-list] - a semicolon-separated list of valid CSS [http://www.w3.org/TR/CSS21/syndata.html#declaration declarations] (with optional whitespace between tokens), and <code>#fdd</code> is not a CSS declaration. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 18:04, 14 February 2015 (UTC)
::::Sorry, should have copied & pasted what I meant to say... <code>| textstyle = background-color: #fdd;</code> [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 18:40, 14 February 2015 (UTC)


*Parameter renamed ''type'' as suggested. Also included fmbox's "''system''" type in the same way as "''warning''". Test cases updated & checked.
== Expiry date ==
<nowiki>{{edit template-protected}}</nowiki>
Please copy sandbox to live. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 15:07, 20 February 2015 (UTC)
:If we are going to do this, I favour Gadget850's simplistic approach. But better still, why not just use {{tl|fmbox}} instead? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:46, 20 February 2015 (UTC)
::I took the wordier approach to prevent invalid types being passed to fmbox. The reason for doing it here is that I intend using it in a shedload of editnotices and it seemed more logical to fix up the editnotice template rather than use fmbox. Having found the peculiarity that a colour could be placed under the text but NOT under the image it seemed the responsible thing to try and fix it. (Edit request on hold pending your reply) [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 16:21, 20 February 2015 (UTC)


{{edit template-protected|answered=yes}} Please copy sandbox to live. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 22:37, 25 February 2015 (UTC)
I suspect that most edit notices eventually become unneeded or out of date. I'm wondering whether adding an expiry parameter might be a good idea, so that the notice won't appear after a certain date. Even if the exact expiry date is not known, making it last for a year might be better than making it last forever. The expiry date could always be extended if the notice is still needed. I'm concerned that we may have a lot of irrelevant edit notices out there, which will take a lot of time sorting through some day. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 16:11, 15 October 2010 (UTC)
:[[File:Red information icon with gradient background.svg|20px|link=]] '''Not done:''' please establish a [[Wikipedia:Consensus|consensus]] for this alteration before using the {{tlx|edit template-protected}} template.<!-- Template:ETp --> Hex color codes should be 6 digits, not 3. Also, I don't see the consensus here. I see "let's do this", "no, let's do it like this instead", "yeah, I like that idea better", "no, I'm doing this way instead"... That does not a consensus make. — <code class="nowrap">&#123;&#123;U&#124;[[User:Technical 13|Technical 13]]&#125;&#125; <sup>([[Special:EmailUser/Technical 13|e]] • [[User talk:Technical 13|t]] • [[Special:Contribs/Technical 13|c]])</sup></code> 14:33, 28 February 2015 (UTC)
: Good idea. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 17:29, 15 October 2010 (UTC)
::{{ping|Bazj}} The [//en.wikipedia.org/wiki/Special:ComparePages?rev1=625486345&rev2=648045957 proposed change] won't work as intended, since {{pf|ifeq}} only takes four parameters; any additional parameters are ignored. This means the fallback type is "system" rather than "editnotice". You may want to use {{pf|switch}} instead.
::As long as there is some warning such as a notice on the article talk page and/or creator talk before expiration and a method to renew the editnotice. ---'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]<span style="color:darkblue">&nbsp;'''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 17:59, 15 October 2010 (UTC)
::{{ping|Technical 13}} "{{tq|Hex color codes should be 6 digits, not 3.}}" &ndash; Who says that? Also, neither the sandbox nor the live template currently contains ''any'' color codes.
:::An automatic reminder on the editnotice itself could certainly be arranged. I'm not sure any further warning system could be achieved without a bot. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:08, 25 January 2011 (UTC)
::<span style="font-family:serif;">[[User:SiBr4|SiBr<sub>4</sub>]] ([[User talk:SiBr4|talk]])</span> 14:48, 28 February 2015 (UTC)
:::Some proposed code is on [[Template:Editnotice/sandbox]]. I've been using [[Template:Editnotices/Page/1982 Lebanon War]] and [[1982 Lebanon War]] to test it. Any checks or comments would be appreciated. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:34, 26 January 2011 (UTC)


:::{{u|Technical 13}}, I'm aware discussion makes consensus. Unfortunately experience in this thread shows that discussion only starts once I ask for the edit to be executed. [[User talk:MSGJ#Template talk:Editnotice#Background colour|Other efforts]] to get the discussion to progress have failed.
I've added this code. Please let me know of any problems. I will update the documentation shortly. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:49, 28 January 2011 (UTC)
:::Your summary of the discussion so far rather mis-represents it. I see a series of comments to which I've replied and then met with silence.
:The edit notice at [[WP:Help desk]] is not displaying properly - the text beginining "This page is only for questions..." is formatted wrongly. I'm pretty sure it was OK yesterday, so is this a side-effect of the edit to {{tp|Editnotice}}? -- [[User:John of Reading|John of Reading]] ([[User talk:John of Reading|talk]]) 09:23, 28 January 2011 (UTC)
:::* {{u|Gadget850}} suggested a pithier parameter name, which I implemented in the sandbox. G850 also suggested some syntax, I already had similar in the sandbox and explained that my version would prevent invalid values being passed through to fmbox. ''No further comment received on the issue.''
::Apologies, a [http://en.wikipedia.org/w/index.php?title=Template:Editnotice/sandbox&diff=410539374&oldid=410182188 extra space] was causing this I believe. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:39, 28 January 2011 (UTC)
:::* {{u|Redrose64}} raised a point about my initial problem, I corrected myself. ''No further comment received on the issue.''
::: I agree. I've restored the code and removed the space, looks good now. Cheers, [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 11:40, 28 January 2011 (UTC)
::::''No comment for 6 days - so I raise edit request.''
Slight bug: when editing an editnotice the [[Template:Editnotice/notice|/notice]] of [[Template:Editnotices/Group/Template:Editnotices]] is also displayed. I'll have to improve the check to ensure that it's only displayed on the page of the actual editnotice (not any editnotice). &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 16:17, 28 January 2011 (UTC)
:::* {{u|MSGJ}} suggested using fmbox instead. I explained my reasoning. Despite prompting, ''no further comment received on the issue.''
:I think this can be remedied, by not actually using Template:Editnotice on [[Template:Editnotices/Group/Template:Editnotices]]. [[User:117Avenue|117Avenue]] ([[User talk:117Avenue|talk]]) 00:00, 1 February 2011 (UTC)
::::''No comment for 3 days - so I raise edit request.''
:::T13, what else would you have me do to establish consensus? I'm happy to wait for the matter to be discussed further, so long as there is some discussion. I'm also aware I still owe you some comments promised at [[WT:WPT#Participants List]] regarding your non-consensual edit.


:::{{u|SiBr4}} thanks for pointing out the deficiencies in ifeq. Will fix. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 16:45, 28 February 2015 (UTC)
:Do you want the editnotice to disappear after the expiry date? If so, you'll need to update it with my edit to the sandbox, which closes the #ifexpr. Also, shouldn't it go into a category where admins are alerted, and either delete it or change the expiry? [[User:117Avenue|117Avenue]] ([[User talk:117Avenue|talk]]) 01:11, 29 January 2011 (UTC)
::::Done. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 17:05, 28 February 2015 (UTC)
:: Changing categorization via parser function doesn't work, I'm afraid, you always need a (null) edit or purge for that. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 09:41, 29 January 2011 (UTC)
::* {{U|SiBr4}} As was pointed out by {{U|Redrose64}} {{Diff|User_talk:Technical_13|638424091|638422005|in this comment}} {{Tq|three-digit hex codes like <code>#F00</code> for red are a different matter, since they are not recognised by earlier versions of IE}}.
:::Then what is the purpose of it expiring if there is no way of seeing the ones that have? Pages are automatically purged every week. [[User:117Avenue|117Avenue]] ([[User talk:117Avenue|talk]]) 20:44, 29 January 2011 (UTC)
::* "No further comment" is not the same as "commented as resolved". Have you tried going to the talk page of those editors who raised concerns and asking them if their concern was resolved or addressed? I don't see a consensus to make an edit here. Even your own summary (which differs only slightly from mine and doesn't offer yourself the same amount of [[WP:AGF]] that mine did), shows there is no consensus and goes a step further to say that your reply to MSGJ is simply [[WP:IDHT]]. Anyways, I won't make this edit for you at this time, but feel free to ask the user's whom objected (two of them are administrators) and are as versed or more so in templates and code as/than I am and would be happy to make a change for you once everything is resolved. Good luck and happy editing! — <code class="nowrap">&#123;&#123;U&#124;[[User:Technical 13|Technical 13]]&#125;&#125; <sup>([[Special:EmailUser/Technical 13|e]] • [[User talk:Technical 13|t]] • [[Special:Contribs/Technical 13|c]])</sup></code> 20:47, 28 February 2015 (UTC)
::I think the current code is correct actually. It should always display on the template itself, but not on the article when it has expired, obviously. And in fact the >1 is not required if you are only using ifexpr to compare between zero and non-zero - try it! &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:17, 29 January 2011 (UTC)
:::Okay, it is comparing it with 0, then the first 1/0 should be swapped, because currently, even if its expired (0) it is still 1 for being on Template:Editnotices. [[User:117Avenue|117Avenue]] ([[User talk:117Avenue|talk]]) 22:57, 29 January 2011 (UTC)
::::Yeah, that is the intended behaviour. I wanted it to appear on the editnotice template page even when expired. But it won't appear on the article as an editnotice when it has expired. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 23:00, 29 January 2011 (UTC)
:::::So when it is displaying while editing an article, its FULLROOTPAGENAME isn't Template:Editnotices? This is still new to me, since I am new to making edits in the Template:Editnotices space. A disclaimer will need to be added to the documentation, instructing not to use expiry when using it in a different space, as it will cause the box to disappear. [[User:117Avenue|117Avenue]] ([[User talk:117Avenue|talk]]) 23:10, 29 January 2011 (UTC)
::::::Correct, PAGENAME returns the name of the current page, so on an article this will be the name of the article. The meaning of your last sentence is lost on me though. I suggest you try it and either convince yourself that it is working properly or else give an example of where it is not working. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:30, 31 January 2011 (UTC)
:::::::If this template is used on a different space, with an expiry, it will disappear. [[User:117Avenue|117Avenue]] ([[User talk:117Avenue|talk]]) 23:20, 31 January 2011 (UTC)
{{editnotice|expiry=23:20, 31 January 2011 (UTC)|text=You can't see this.}}
::::::::Correct, it's not supposed to produce any output if it has expired! &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:01, 1 February 2011 (UTC)
Just a reminder, the documentation still needs to be updated to include information on the expiry parameter. -- [[User:OlEnglish|<font size="5">&oelig;</font>]][[User talk:OlEnglish|<sup>&trade;</sup>]] 09:30, 29 January 2011 (UTC)
:Yup, I haven't forgotten ;) Will do shortly. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:44, 29 January 2011 (UTC)
::{{done}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:01, 1 February 2011 (UTC)


* ''background-color:#FDD'' - I'd like to be able to point you to the location from which I lifted the colour code so that you could fix them. However none of the 6 templates which use that code rings a bell. Widening the search to templates, articles,and user pages throws up 15 matches, none of which is familiar to me, not even [[User:Technical 13/Scripts/Gadget-codeAnchors.js]].
I think a [http://en.wikipedia.org/w/index.php?oldid=367076462&diff=411412939 tweak] to [[Template:Active editnotice]] is in order. Can someone double-check this for me? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 18:01, 1 February 2011 (UTC)
* I take your point that my suggestion and the pings to elicit further comment have done nothing but ''[[:q:William Whitelaw, 1st Viscount Whitelaw|stir up apathy]]''. The sandbox has been restored to a copy of live and the testcases relevant only to this change removed. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 12:51, 2 March 2015 (UTC)
:*I'm sorry I didn't have time to respond to your earlier comment. I think the underlying request is uncontroversial; it's just the way you were proposing it that seemed to reach disagreement. I've passed the type parameter to fmbox now. If that's all that's required, I think we can mark this as resolved. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:08, 2 March 2015 (UTC)
:::Thank you. I've refreshed the sandbox again but left the testcases since the changes weren't relevant to the live version. [[User:Bazj|Bazj]] ([[User talk:Bazj|talk]]) 08:11, 3 March 2015 (UTC)


== Any objections to sync [[Template:Editnotice/notice/sandbox]] to live? ==
* Sorry to be negative, and for not bringing this up earlier (I was only aware of the new feature now), but this is really, really annoying - especially because those who are explicitly declaring that an editnotice will apply indefinitely (by means of <tt>expiry=indefinite</tt>) are ''still'' faced with an ugly "This template is set to never expire. Please insert an expiry date" messagebox. [[User talk:AGK|<font color="black">'''AGK'''</font>]]<small> <nowiki>[</nowikI>[[User:AGK/Arbitration and content|&bull;]]<nowiki>]</nowiki></small> 22:54, 20 February 2011 (UTC)
*:I think it is important that the expiry date is displayed somewhere on the editnotice template, otherwise it would cause more confusion ("why isn't the template displaying?"). I suppose the information about setting the parameter could be left out, when the parameter has been set. Feel free to make the change to [[Template:Editnotice/notice]]. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:44, 21 February 2011 (UTC)


{{re|MSGJ}} The issue is that the expiry notice for an editnotice as {{tl|Editnotices/Namespace/Module}} is incorrectly pointing to the mainspace page [[Module]] rather than a link to, say, [[Wikipedia:Namespace|the Module namespace]]. Currently, at {{tl|Editnotice/notice/sandbox}}, I put in special cases for editnotices with a prefix "Template:Editnotices/Group" and "Template:Editnotices/Namespace". (I don't know if there are other special cases.) — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 07:51, 17 May 2016 (UTC)
== Edit request on 2 January 2012 ==
:Thanks for fixing this. I don't have time to check your code right now, but will try and find time later today &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:55, 17 May 2016 (UTC)
::I'm confident to sync what I have, but I can wait. I did some preliminary testing by switching the prefix and seeing its output, and it looks okay to me. The thing that's left to resolve is whether there are other special cases. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 08:01, 17 May 2016 (UTC)
:::<s>Looks fine to me.</s> There are no special cases that I'm aware of. (I must say I can't stand all the <nowiki><!-- --></nowiki> stuff you've added to the code. But this is just my personal preference.) &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:08, 17 May 2016 (UTC)
:::Tweaked the code a bit. I don't think your code would work for subpages (e.g. [[Template:Editnotices/Group/Template:Taxonomy/preload]]). Please check my revised code. Regards &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:13, 17 May 2016 (UTC)
::::{{re|MSGJ}} Further tweaks. If we don't have a default case, no need to print "(for )". I'm planning on syncing in about 12 hours. Thanks for the review! — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 16:41, 17 May 2016 (UTC)
:::::[[Special:Diff/720825954|Live]]. I left the prefix to check the full 2 base levels to avoid a weird case like "User:Example/Namespace/Module" or something. Thanks for looking this over — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 05:08, 18 May 2016 (UTC)
:::::Looking good on pages like [[Template:Editnotices/Group/Wikipedia:In the news/Candidates]] and [[Template:Editnotices/Namespace/TimedText]] — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 05:12, 18 May 2016 (UTC)


== Auto-tag G8 ==
{{edit protected|answered=yes}}
<!-- Begin request -->
Update the page with the code on [[Template:Editnotice/sandbox]]. This will allow users to change the size of the picture with retaining the original size for other users.


{{re|MSGJ|Redrose64|Callanecc|Nyttend|Amalthea}} who were involved at some point in editing the page in question
<!-- End request -->
[[User:Armbrust|Armbrust, B.Ed.]] <sup><font color="#E3A857">[[User talk:Armbrust|Let's talk about]]</font></sup><sub><font color="#008000">[[Special:Contributions/Armbrust|about my edits?]]</font></sub> 15:33, 2 January 2012 (UTC)
: [[File:Yes check.svg|20px|link=|alt=]] '''Done'''<!-- Template:EP -->, and added {{para|imagerightsize}} too in case someone wants the two images to be different sizes for some reason. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 20:39, 3 January 2012 (UTC)


I have a suggested change for {{tl|Editnotice/notice}} in its [[Template:Editnotice/notice/sandbox|sandbox]]. ([[Special:Diff/726208381/727286188]]) What it does: for page and protection editnotices, if the target page does not exist AND is not specially create-protected in any way, we automatically tag it with [[WP:G8]] for deletion. I've tested this in preview mode on [[Template:Editnotices/Page/Add article]] (protected) and [[Template:Editnotices/Page/Addd articlee]] (and the {{tl|db-g8}} box pops up). It depends on the fact that {{tl|editnotice}} is used in the first place, but should help. Do you think this is a good idea? — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 23:33, 27 June 2016 (UTC)
=== Another image related edit request on 15 Febrary 2012 ===
:I don't understand parser functions one bit (except for stuff like {{{1}}} being used for fillable parameters), so I can't comment on whether your proposal should be implemented. However, I think the idea itself is great: why shouldn't these pages be auto-tagged, if it's possible? [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 00:33, 28 June 2016 (UTC)
{{editprotected|answered=yes}}
::Was thinking about this a bit more. The only slight problem might be that the G8s cannot be declined, unless the target page is re-created. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 01:24, 28 June 2016 (UTC)
It would be nice if the right side image box could have 2 images side by side (if you don't have much text in the box, there's a lot of whitespace left), I'm not quite sure how to get it to work a bit out of touch with wikicode {{smiley}} I actually tried subst'ing it and making my own version but because there's so many ifs and stuff subst'ing it just breaks it horribly:
:::[Assuming that the template does as designed] Why would this be a problem? I can't understand why you'd want to decline it, unless (1) the page shouldn't have been deleted, in which case undeletion or recreation is correct, or (2) the editnotice somehow needs to be moved to a new title. Do we ever intentionally have editnotices for nonexistent pages, e.g. "Template:Editnotice/Willy on wheels" existing with a message of "Don't create this page. We mean it!" I can't see why we'd do that, since there's no real point to saying "Don't create this title", unless the page has been recreated so many times that we should protect it. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 01:35, 28 June 2016 (UTC)
::::Salt detection prevents db-g8 from showing up at [[Template:Editnotices/Page/Enter your new article name here]], for example. And actually, the "decline" problem is not too bad (sometimes I have lapses). The 4 ways to decline: 1. recreate the target; 2. blank the notice; 3. use an fmbox instead; 4. salt the target. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 03:39, 28 June 2016 (UTC)
:::::I think we're in agreement here; I can't imagine why we'd need an editnotice for an unsalted target, and the protection log excerpt at top will serve the purpose of an editnotice for a salted one. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 13:15, 28 June 2016 (UTC)
{{od|5}} Elaborated on rationale. ([[Special:Diff/726208381/727394129|effective diff]]) I plan to act on this in a few days unless I hear otherwise. Thanks — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 18:11, 28 June 2016 (UTC)
:In the "how to decline this tag" bit, you offer "Blank this notice page itself" as an option. Is there a way to force it to produce a link to the editnotice page itself? If I were unfamiliar with editnotices, I wouldn't have a clue how to do this. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 20:01, 28 June 2016 (UTC)
::The db-g8 nom is not by default visible on the target page above the edit box. On the editnotice itself, a link wouldn't really be necessary anyway. The link becomes bolded instead, and, override with red text, so there is no link. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 21:04, 28 June 2016 (UTC)
:::But how am I supposed to blank the editnotice if I'm not familiar with how it works? Maybe we're talking past each other (I don't understand why we can't have a link), but it would help to have the Jerusalem editnotice display a link to https://en.wikipedia.org/w/index.php?title=Template:Editnotices/Page/Jerusalem&action=edit (it would work; it wouldn't be bolded) if [[Jerusalem]] is a redlink. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 22:26, 28 June 2016 (UTC)
::::{{re|Nyttend}} Ahh, misunderstood. [[Special:Diff/727427577|Applied]] your suggestion. I'm unaware if it's possible to replace an existing page's contents in the edit box with something else. <samp>preload</samp> and <samp>preloadparams</samp> work only for nonexistent pages. Thanks — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 22:50, 28 June 2016 (UTC)
:::::Great; thanks! I figured I was misunderstanding a bunch of stuff. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 22:52, 28 June 2016 (UTC)
::::::{{re|Nyttend}} I just discovered 2 pages with potential issues (so far). {{no redirect|Template:Editnotices/Page/List of Filipino architects}} and {{no redirect|Template:Editnotices/Page/List of Canadian architects}} appear to be created in advance, expecting a page at the location, due to the existence of a bunch of other "List of * architects". I can see reason to keep them, but it's weak reasoning. What I could do is make a special case for "List of"-prefixed pages. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 01:06, 29 June 2016 (UTC)


===Arbitrary break 1===
[[User talk:Mistress Selina Kyle/editnotice]] {{smiley}}
{{re|Nyttend}} So the only remaining issue after a scrub through the pseudospace is potentially {{nowrap|[[Template:Editnotices/Page/Wikipedia:Bots/Requests for approval/Approved/sandbox]]}}, whose target, "Wikipedia:Bots/Requests for approval/Approved/sandbox" doesn't exist. The title does makes sense though in the scheme of templates. I'm now thinking that a tracking category for editnotices with (unsalted) redlink targets is more appropriate, which I plan to write in a day or two. (A few dozen other issues were CSD resolved, and 3-4 other issues are at MfD, surely to be deleted.) — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 02:22, 4 July 2016 (UTC)
*As the sandbox of an active page, I think this one's useful; it's not a random page that merely hasn't been created yet. I've tagged that one as {{tl|G8-exempt}} <small>(weird, [[Muscle memory|it's really hard]] not to type "G8-exempty")</small>, but if course if you don't think it useful, I won't object if you un-tag it. Please don't seek to have it deleted until the MFD closes; I don't want someone to object that we started G8-deleting these things without waiting for the MFD. [[User:Nyttend|Nyttend]] ([[User talk:Nyttend|talk]]) 02:58, 4 July 2016 (UTC)
**{{re|Nyttend}} I [[Special:Diff/728703945|updated the notice subpage]] to populate the new tracking category [[:Category:Editnotices with unsalted non-existent targets]] instead of tagging G8, given that there are circumstances where target pages are redlinked and unsalted, like the sandbox example above. Any entries that show up there could then be double-checked for meeting G8. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 02:40, 7 July 2016 (UTC)


== Tracking when editnotices become notices on redirects ==
Thanks for any help {{smiley}} --''[[User:Mistress Selina Kyle|<u>Mistress Selina Kyle</u>]] <sup>'''<span style='color:#800080;'>(</span>'''[[User_talk:Mistress Selina Kyle|Α⇔Ω]] ¦ [[Special:Emailuser/Mistress Selina Kyle|⇒✉]]'''<span style='color:#800080;'>)</span>'''</sup>'' 07:22, 15 February 2012 (UTC)
: It would have to be added to {{tl|fmbox}} which is quite widely used, that would in my opinion be too much [[feature creep]]. If it's only needed for your editnotice I think it can be handled there by passing the desired structure directly. I've made changes to your editnotice that I believe do what you asked for.<br>[[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 11:28, 15 February 2012 (UTC)
::Thanks! {{smiley}} --''[[User:Mistress Selina Kyle|<u>Mistress Selina Kyle</u>]] <sup>'''<span style='color:#800080;'>(</span>'''[[User_talk:Mistress Selina Kyle|Α⇔Ω]] ¦ [[Special:Emailuser/Mistress Selina Kyle|⇒✉]]'''<span style='color:#800080;'>)</span>'''</sup>'' 12:08, 15 February 2012 (UTC)


The current editnotice system is somewhat lacking in awareness when their pages (targets) are moved. 6 weeks back, the introduction of [[:Category:Editnotices with unsalted non-existent targets]], which started tracking editnotices that have become unused/unnecessary on red-links, resulted in cleanup of about a dozen pages. I'm proposing a new category, [[:Category:Editnotices whose targets are redirects]] (or something similar) (self-explanatory name). Many editnotices that would appear in this category may need to be moved, though some, like [[Template:Editnotices/Page/Giants]], are valid.
== Editnotice Showing Twice ==


To track editnotices on redirects, the change would be something like [[Special:Diff/728703945/736968907|this]] (with the check returning the category, not the string of course). Let me know if there's any feedback or comments. If none, I'll create the tracking category and update the notice subtemplate. Cheers, — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 01:01, 31 August 2016 (UTC)
Hi. Does anyone know if this is a bug with Editnotice, or is it just me? Whenever I go to edit a page with an Editnotice on it, the message displays twice. I've noticed this on protected pages, deleted pages, and user talk pages... Here is a screenshot of the problem:<br />
:I have [[Special:Diff/737939780|made the notice subtemplate]] start populating [[:Category:Editnotices whose targets are redirects]]. Expecting several templates to start popping up. Any questions, let me know :) — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 00:04, 6 September 2016 (UTC)
[[File:Editnotice Showing Double.png|center|600px]]<br />
::Good idea. Could you also add a note to this effect on [[Template:Editnotice/notice]]? Perhaps it could even contain a move link to the editnotice of the target of the redirect. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:35, 6 September 2016 (UTC)
—'''<span style="font-family:{{#if: monospace |monospace|sans-serif}};font-size:{{#if: |{{{size}}}|100%}};color:{{#if: |{{{color}}}|black}};background-color:{{#if: #555 |#555|transparent}};{{#if: |{{{css}}}|}}">{{#if: [[User:Jmajeremy|<span style="color:#99ff66">JmaJeremy</span>]] <sup>[[User talk:Jmajeremy|<span style="color:#ffff33">TALK</span>]]</sup> <sub>[[Special:Contributions/Jmajeremy|<span style="color:#ffbbcc">CONTRIBS</span>]]</sub> |[[User:Jmajeremy|<span style="color:#99ff66">JmaJeremy</span>]] <sup>[[User talk:Jmajeremy|<span style="color:#ffff33">TALK</span>]]</sup> <sub>[[Special:Contributions/Jmajeremy|<span style="color:#ffbbcc">CONTRIBS</span>]]</sub>|{{{text}}}}}</span>''' 04:31, 12 March 2012 (UTC)
:::{{re|MSGJ}} Thanks. A note shouldn't be a problem. Though about the move link: I suppose we could add one, but I think there are many examples where a move link might not be appropriate (such as the one for Giants), since they are intended only for the redir page, and to detect this, might need some more expensive parser functions to detect this properly. I'll ponder this, and might get to some of this later in the week as time permits. — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 16:32, 6 September 2016 (UTC)
::::A small note added to the effect, along with some additional logic updates. Could add a move link, but ideally, possibly making it aware an editnotice already exists for the new title (though that could get semantically even heavier on parser functions... not sure) — [[User:Andy M. Wang|'''''Andy W.''''']] <span style="font-size:88%">('''[[User talk:Andy M. Wang|<span style="color:#164">talk</span>]] ·''' [[Special:Contribs/Andy M. Wang|ctb]])</span> 16:36, 7 September 2016 (UTC)


== Start-of-line wiki markup ignored at start of text arg ==
: That's not actually an edit notice.<br>FWIW, I know there used to be a problem with wikEd that used to display some notices twice, do you happen to have that enabled? Does it also happen if you log out?<br>[[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 08:36, 12 March 2012 (UTC)
:: Well, this also happens with editnotices...any notfication that appears before the edit box, it would seem. And yes, I have Twinkle enabled. Do you know if there's a fix for this? I guess it's not a big deal, but it's a little annoying. —'''<span style="font-family:monospace;">[[User:Jmajeremy|<span style="color:#370;">JmaJeremy</span>]][[User talk:Jmajeremy|<sup style="color:#fa0;">TALK</sup>]][[Special:Contributions/Jmajeremy|<sub style="color:#f3d">CONTRIBS</sub>]]</span>''' 19:14, 12 March 2012 (UTC)
::: Twinkle won't do that, I think wikEd did. If it still does you'll have to ask at [[WT:wikEd]], I don't know the first thing about it. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 20:24, 12 March 2012 (UTC)
:::: Right, wikEd...okay, thanks for your help. Much appreciated. —'''<span style="font-family:monospace;">[[User:Jmajeremy|<span style="color:#370;">JmaJeremy</span>]][[User talk:Jmajeremy|<sup style="color:#fa0;">TALK</sup>]][[Special:Contributions/Jmajeremy|<sub style="color:#f3d">CONTRIBS</sub>]]</span>''' 02:44, 13 March 2012 (UTC)
* wikEd ''still'' does it and I had started working on a fix, but never finished it... I'll get back to it someday... [[User:Technical 13|Technical 13]] ([[User talk:Technical 13|talk]]) 01:07, 9 January 2014 (UTC)


If you call {{Tlx|Editnotice}} with:
== Starting date ==


<pre>{{Editnotice|text=
Hi, Just wanted to check if there is any interest of having a starting date just as we have a parameter for expiry date. I realize it might not be used that often but sometimes (if there are consensus) there could be use for a starting date. For example there was a consensus a week ahead of [[2014 FIFA World Cup]] to have an editnotice (for editors not to live update) and with a start date the editnotice could start being shown when the tournament starts and not immediatelly. I dont know how hard it would be to implement it, but I thought I would see if there are any interest in such parameter. <span style="font-family:Verdana">[[User:Qed237|<font color="blue">'''''QED'''''</font><font color="red">'''''237'''''</font>]]&nbsp;[[User talk:Qed237|<font color="green">('''''talk''''')</font>]]</span> 12:39, 11 June 2014 (UTC)
# Point 1
# Point 2
# Point 3
}}</pre>


it renders:
== Template-protected edit request on 9 August 2014 ==


{{edit template-protected|Template:Editnotice|answered=yes}}
{{Editnotice|text=
# Point 1
<!-- Begin request -->
# Point 2
Could someone undo the last two edits. They completely broke [[User talk:Armbrust/Editnotice|my editnotice]].
# Point 3
<!-- End request -->
}}
[[User:Armbrust|Armbrust]] <sup>[[User talk:Armbrust|<font color="#E3A857">The</font> <font color="#008000">Homunculus</font>]]</sup> 11:09, 9 August 2014 (UTC)

:What is broken about it? It is appearing when I go to [https://en.wikipedia.org/w/index.php?title=User:Armbrust&action=edit edit your page]. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#00FF00;">Talk</span>]]</sup> 12:10, 9 August 2014 (UTC)
It ignores the first <code>'#'</code>, even though it starts the line. The issue only occurs when the start of the {{Para|text}} value is one of the characters that are special at the start of a line in WML, including <code>'*'</code> and <code>' '</code> (space).
::The images in the editnotice templates shouldn't be that big. (BTW I'm speaking about the editnotice for my user talk page.) [[User:Armbrust|Armbrust]] <sup>[[User talk:Armbrust|<font color="#E3A857">The</font> <font color="#008000">Homunculus</font>]]</sup> 12:29, 9 August 2014 (UTC)

:::There is no {{para|imagesize}} parameter, thus images will show at original size. Use standard image syntax. --<span style="color:Turquoise">''''' &nbsp;[[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup></span> 15:07, 9 August 2014 (UTC)
A workaround is to put something else in front of it, even if it is invisible, like:
::::fixed the typos, sorry about that. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:17, 9 August 2014 (UTC)
<pre>{{Editnotice|text=<nowiki />
:::::Thanks. It now works as it should. [[User:Armbrust|Armbrust]] <sup>[[User talk:Armbrust|<font color="#E3A857">The</font> <font color="#008000">Homunculus</font>]]</sup> 16:25, 9 August 2014 (UTC)
# Point 1
::::::There is no {{para|imagesize}} ''documented''. --<span style="color:Turquoise">''''' &nbsp;[[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup></span> 17:06, 9 August 2014 (UTC)
# Point 2
# Point 3
}}</pre>

which renders (correctly):

{{Editnotice|text=<nowiki />
# Point 1
# Point 2
# Point 3
}}

Another workaround is to specify a {{Para|header}} parm.

Should this be documented or fixed? <span style="color:red">—[</span>[[User:AlanM1|<span style="font-variant:small-caps;color:green">Alan</span><span style="color:blue">M</span><span style="color:purple">1</span>]]([[User talk:AlanM1#top|talk]])<span style="color:red">]—</span> 02:56, 18 March 2019 (UTC)

Update: I see a similar issue is documented at {{Slink|Template:Quote/doc|Technical issues with block templates}}. <span style="color:red">—[</span>[[User:AlanM1|<span style="font-variant:small-caps;color:green">Alan</span><span style="color:blue">M</span><span style="color:purple">1</span>]]([[User talk:AlanM1#top|talk]])<span style="color:red">]—</span> 11:21, 20 March 2019 (UTC)

== Adding category parameter ==

I see {{u|MSGJ}} asked about this many years ago; it's come up again [[Wikipedia_talk:Help_Project#Category|here]]. Could we find a way to implement this? There's certainly demand for it — I see {{u|Wugapodes}} tried to implement it at [[Template:COVID19 GS editnotice]] (or was that just copied from the Iran notice?), but it looks like that implementation isn't working properly. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 20:43, 23 June 2020 (UTC)
:The code for getting from the editnotice page to the article itself is <code><nowiki>{{#titleparts: {{FULLPAGENAME}} |0|3}}</nowiki></code>, but I'm not sure how to categorize another page. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 21:04, 23 June 2020 (UTC)
::I added code in the sandbox to add {{para|category}} and {{para|sortkey}}. <span style="white-space: nowrap;">— [[User:Wugapodes|Wug·]][[User talk:Wugapodes|a·po·des]]​</span> 21:13, 23 June 2020 (UTC)
:::{{re|Wugapodes}} It looks like that code categorizes the editnotice template page, rather than rather than the article page the editnotice is for. Is that an issue? - <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 01:07, 24 June 2020 (UTC)
::::I was under the impression that was the intended behavior. I don't think we can categorize articles from the editnotice page. <span style="white-space: nowrap;">— [[User:Wugapodes|Wug·]][[User talk:Wugapodes|a·po·des]]​</span> 02:28, 24 June 2020 (UTC)
:::::A page can categorise itself, or a page that it is transcluded to, or both. Since an editnotice is not transcluded to its associated article, it follows that it cannot categorise that article. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 18:16, 24 June 2020 (UTC)
::::::Okay, in that case we're good to implement. Thanks for the coding, Wugapodes! <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 01:43, 25 June 2020 (UTC)

=== Protected edit request on 25 June 2020 ===

{{edit fully-protected|Template:Editnotice|answered=yes}}
Please implement [https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Template%3AEditnotice&page2=Template%3AEditnotice%2Fsandbox&diffmode=source this change] from the sandbox per the discussion above. This adds a parameter allowing an editnotice to add pages to a category. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 01:41, 25 June 2020 (UTC)
:Um, what's the point of this? Why not include the category separate from the transclusion of {{tl|editnotice}}? [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 02:41, 25 June 2020 (UTC)
::{{u|Pppery}}, the request that led to this discussion was [[Wikipedia_talk:Help_Project#Category|here]]. The functionality is a fair bit less useful when it can't go on the page itself, though. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 08:22, 26 June 2020 (UTC)
:[[File:Red information icon with gradient background.svg|20px|link=|alt=]] '''Not done for now:'''<!-- Template:EP --> So... why would we implement functionality in the template that doesn't support any obvious use case not already solved by other mechanisms? [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 14:21, 6 July 2020 (UTC)

== Expiry parameter ==

I just tweaked the documentation. My change is based on the existence of this: {{tl|Editnotice/notice}}

[[User:CapnZapp|CapnZapp]] ([[User talk:CapnZapp|talk]]) 09:59, 17 October 2020 (UTC)

== Icon link ==

In 99% of cases, the image used with an editnotice is just an icon, not anything someone would want to find out more about, so I think we should have {{para|link}} included blank by default to make it so that clicking on it won't bring you to the Commons file for the icon. This is similar to what we do for many other banners. Any objections? <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 21:56, 17 December 2020 (UTC)
:Which ones, specifically? If the image is licensed, for example, [[CC BY]] or [[CC BY-SA]], there must be a link to its file description page in order to satisfy the [[Attribution (copyright)|attribution]] clause of the license. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 23:03, 18 December 2020 (UTC)
::Hmm, that could be a wrinkle. In nearly all cases, though, it's something like [[:File:Ambox important.svg]] or [[:File:Information icon4.svg]], which are fully public domain. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 23:44, 18 December 2020 (UTC)
:::If it's truly a public domain image, then you may set {{para|link}} blank for that specific image. But we cannot assume that all images used in editnotices are PD, therefore, we must not make a blank {{para|link}} be the default. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 22:03, 19 December 2020 (UTC)
::::Well, if certain file names are common (and they're PD), we can code that logic into the template to automatically do so for those. And I'm guessing using Lua it may be possible to do an automatic check for if it'd PD in general. [[User:ProcrastinatingReader|ProcrastinatingReader]] ([[User talk:ProcrastinatingReader|talk]]) 23:29, 19 December 2020 (UTC)
:::::That's probably more effort than it's worth, but if you wanna go for it, feel free. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 23:56, 19 December 2020 (UTC)

== Indexing? ==

I've noticed editnotices showing up on Google before. This isn't desirable, since they're a back-end part of Wikipedia, not something that needs to face the world. Should we add {{tl|NOINDEX}} to this template, or do something else to make sure they don't get indexed? <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 06:57, 5 February 2021 (UTC)
:Okay, I'd like to propose this, but I don't know where exactly the noindex tag should go. Anyone have thoughts? <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 23:35, 14 February 2021 (UTC)
::Why do you want to use a template instead of <code><nowiki>__NOINDEX__</nowiki></code>? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 16:12, 15 February 2021 (UTC)
:::{{u|Redrose64}}, I don't; it was just easier to type, and works the same. I'm more wondering where it should go so that it works for all editnotices but doesn't have any collateral (e.g. if an editnotice is just referenced in a project gallery of templates). <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 19:45, 15 February 2021 (UTC)

== Template-protected edit request on 22 November 2021 ==

{{edit template-protected|Template:Editnotice/notice|answered=yes}}
Please copy [[Template:Editnotice/notice/sandbox]] to [[Template:Editnotice/notice]]. This adds a link to the subpages of the target of a group editnotice, so people can quickly see all of the pages affected by such an editnotice. Thanks. [[User:Danski454|Danski454]] ([[User talk:Danski454|talk]]) 00:22, 22 November 2021 (UTC)
: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 01:14, 22 November 2021 (UTC)

== Using plainlinks by default ==

This template calls {{tl|fmbox}}, which calls [[Module:Message box]]' default behavior, which wraps all output in the class <code>plainlinks</code>. I'm not sure that this is desirable behavior. For templates like {{tl|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 [[Special:Interwiki|affiliated site]]), when in fact it's to theguardian.com.

I see two ways we could handle this:
# Add a {{para|plainlinks|<nowiki>{{{plainlinks|yes}}}</nowiki>}} to {{tlf|fmbox}} and then add a {{para|plainlinks|no}} to this template's call of {{tlf|fmbox}}
# Add a {{para|plainlinks|<nowiki>{{{plainlinks|yes}}}</nowiki>}} to {{tlf|fmbox}}, add a {{para|plainlinks|<nowiki>{{{plainlinks|yes}}}</nowiki>}} to this template's call of {{tlf|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 {{tag|span|attribs=class="plainlinks"}}. Thoughts? <span class="nowrap"> <span style="font-family:courier">-- [[User:Tamzin|<span style="color:deeppink;">Tamzin</span>]]</span><sup>[''[[User talk:Tamzin|<span style="color:deeppink;">cetacean needed</span>]]'']</sup> (she/they)</span> 08:56, 25 January 2022 (UTC)

:{{Reply|Tamzin}} I agree. I came here to make an edit request for this. Do you want to go ahead with the edit? [[User:SilverLocust|<small style="color:#667;background:#fff;border:2px solid;border-radius:.4em;padding:0 .3em">SilverLocust</small>]] <small class="plainlinks sysop-show extendedmover-show">[//w.wiki/8xwX &#x1f0cf;]</small> [[User talk: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. <span style="font-family:courier"> -- [[User:Tamzin|<span style="color:#E6007A">Tamzin</span>]]</span><sup class="nowrap">&#91;[[User talk:Tamzin|<i style="color:#E6007A">cetacean needed</i>]]&#93;</sup> <small>([[User:Tamzin/🤷|they&#124;xe]])</small> 23:52, 28 January 2024 (UTC)
:::Seems reasonable. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 07:21, 29 January 2024 (UTC)
::::{{done}} (using option 1 from above). This can be overridden either inline or by giving the whole editnotice {{para|class|plainlinks}}. <span style="font-family:courier"> -- [[User:Tamzin|<span style="color:#E6007A">Tamzin</span>]]</span><sup class="nowrap">&#91;[[User talk:Tamzin|<i style="color:#E6007A">cetacean needed</i>]]&#93;</sup> <small>([[User:Tamzin/🤷|they&#124;xe]])</small> 00:16, 30 January 2024 (UTC)

== Image linking and alt text parameters ==

The template does not currently appear to support these. Could they be coded? <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 20:10, 27 February 2022 (UTC)

== 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: <syntaxhighlight lang="text">
{{#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>
}}</syntaxhighlight>
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? <span class="nowrap"> <span style="font-family:courier">-- [[User:Tamzin|<span style="color:deeppink;">Tamzin</span>]]</span><sup>[''[[User talk:Tamzin|<span style="color:deeppink;">cetacean needed</span>]]'']</sup> (she/they)</span> 08:26, 23 March 2022 (UTC)

:@[[User:Tamzin|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, <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 15:55, 29 August 2023 (UTC)

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

We should use TemplateStyles for this template. [[Special:Contributions/187.175.48.172|187.175.48.172]] ([[User talk: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, <span style="border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)">[[User:Sdkb|<span style="color:#FFF;text-decoration:inherit;font:1em Lucida Sans">Sdkb</span>]]</span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 18:39, 28 February 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]]. [[Special:Contributions/184.146.170.127|184.146.170.127]] ([[User talk:184.146.170.127|talk]]) 01:39, 17 June 2024 (UTC)

:I (same person) did the copyediting myself, absent others explaining the relevance. [[Special:Contributions/174.92.25.207|174.92.25.207]] ([[User talk:174.92.25.207|talk]]) 08:54, 8 July 2024 (UTC)

Revision as of 08:54, 8 July 2024

New parameter

I'd like to add a new parameter to this template (perhaps |category=) to specify a category used to check usage of the edit notice. For example Category:Pages with editnotice Romeo notice tracks usage of {{Romeo notice}}. Currently this is hard-coded in each template, but I think it could be simpler for this meta template to handle it. — Martin (MSGJ · talk) 19:24, 15 September 2014 (UTC)[reply]

Background colour

I'm working on a warning editbox for an inactive project's talkpage and want the warning pink background to run under the text AND the image. Setting textstyle = #fdd will do it for the text, but not for the image. I've succeeded by substing then replacing the type in the call to fmbox from "editnotice" to "warning". (Example) Could a parameter be added to expose the type of the call to fmbox with a default of "editnotice" and an option of "warning"? Bazj (talk) 13:49, 14 February 2015 (UTC)[reply]

The issue is {{fmbox |type = editnotice, where editnotice sets a transparent background per {{fmbox}}. Looks like the {{fmbox}} editors presumed that editnotices would never have a backgrount but the {{editnotice}} editors added support for background.
We could change |type=editnotice to |type={{{type|editnotice}}}. Then setting |type=warning would set the warning triangle and the pink background.
Discussion? --  Gadget850 talk 14:18, 14 February 2015 (UTC)[reply]
The version I currently have in the sandbox uses :
|{{fmbox
  |type      = {{#ifeq: {{{warning_notice|}}} | warning | warning | editnotice }}
to protect against any other (invalid) values for the fmbox's type. Bazj (talk) 14:36, 14 February 2015 (UTC)[reply]
You say that you are setting textstyle = #fdd - this shouldn't do anything at all, since the |textstyle= parameter is intended for a CSS declaration-list - a semicolon-separated list of valid CSS declarations (with optional whitespace between tokens), and #fdd is not a CSS declaration. --Redrose64 (talk) 18:04, 14 February 2015 (UTC)[reply]
Sorry, should have copied & pasted what I meant to say... | textstyle = background-color: #fdd; Bazj (talk) 18:40, 14 February 2015 (UTC)[reply]
  • Parameter renamed type as suggested. Also included fmbox's "system" type in the same way as "warning". Test cases updated & checked.

{{edit template-protected}} Please copy sandbox to live. Bazj (talk) 15:07, 20 February 2015 (UTC)[reply]

If we are going to do this, I favour Gadget850's simplistic approach. But better still, why not just use {{fmbox}} instead? — Martin (MSGJ · talk) 15:46, 20 February 2015 (UTC)[reply]
I took the wordier approach to prevent invalid types being passed to fmbox. The reason for doing it here is that I intend using it in a shedload of editnotices and it seemed more logical to fix up the editnotice template rather than use fmbox. Having found the peculiarity that a colour could be placed under the text but NOT under the image it seemed the responsible thing to try and fix it. (Edit request on hold pending your reply) Bazj (talk) 16:21, 20 February 2015 (UTC)[reply]

Please copy sandbox to live. Bazj (talk) 22:37, 25 February 2015 (UTC)[reply]

Not done: please establish a consensus for this alteration before using the {{edit template-protected}} template. Hex color codes should be 6 digits, not 3. Also, I don't see the consensus here. I see "let's do this", "no, let's do it like this instead", "yeah, I like that idea better", "no, I'm doing this way instead"... That does not a consensus make. — {{U|Technical 13}} (etc) 14:33, 28 February 2015 (UTC)[reply]
@Bazj: The proposed change won't work as intended, since {{#ifeq}} only takes four parameters; any additional parameters are ignored. This means the fallback type is "system" rather than "editnotice". You may want to use {{#switch}} instead.
@Technical 13: "Hex color codes should be 6 digits, not 3." – Who says that? Also, neither the sandbox nor the live template currently contains any color codes.
SiBr4 (talk) 14:48, 28 February 2015 (UTC)[reply]
Technical 13, I'm aware discussion makes consensus. Unfortunately experience in this thread shows that discussion only starts once I ask for the edit to be executed. Other efforts to get the discussion to progress have failed.
Your summary of the discussion so far rather mis-represents it. I see a series of comments to which I've replied and then met with silence.
  • Gadget850 suggested a pithier parameter name, which I implemented in the sandbox. G850 also suggested some syntax, I already had similar in the sandbox and explained that my version would prevent invalid values being passed through to fmbox. No further comment received on the issue.
  • Redrose64 raised a point about my initial problem, I corrected myself. No further comment received on the issue.
No comment for 6 days - so I raise edit request.
  • MSGJ suggested using fmbox instead. I explained my reasoning. Despite prompting, no further comment received on the issue.
No comment for 3 days - so I raise edit request.
T13, what else would you have me do to establish consensus? I'm happy to wait for the matter to be discussed further, so long as there is some discussion. I'm also aware I still owe you some comments promised at WT:WPT#Participants List regarding your non-consensual edit.
SiBr4 thanks for pointing out the deficiencies in ifeq. Will fix. Bazj (talk) 16:45, 28 February 2015 (UTC)[reply]
Done. Bazj (talk) 17:05, 28 February 2015 (UTC)[reply]
  • SiBr4 As was pointed out by Redrose64 in this comment three-digit hex codes like #F00 for red are a different matter, since they are not recognised by earlier versions of IE.
  • "No further comment" is not the same as "commented as resolved". Have you tried going to the talk page of those editors who raised concerns and asking them if their concern was resolved or addressed? I don't see a consensus to make an edit here. Even your own summary (which differs only slightly from mine and doesn't offer yourself the same amount of WP:AGF that mine did), shows there is no consensus and goes a step further to say that your reply to MSGJ is simply WP:IDHT. Anyways, I won't make this edit for you at this time, but feel free to ask the user's whom objected (two of them are administrators) and are as versed or more so in templates and code as/than I am and would be happy to make a change for you once everything is resolved. Good luck and happy editing! — {{U|Technical 13}} (etc) 20:47, 28 February 2015 (UTC)[reply]
  • background-color:#FDD - I'd like to be able to point you to the location from which I lifted the colour code so that you could fix them. However none of the 6 templates which use that code rings a bell. Widening the search to templates, articles,and user pages throws up 15 matches, none of which is familiar to me, not even User:Technical 13/Scripts/Gadget-codeAnchors.js.
  • I take your point that my suggestion and the pings to elicit further comment have done nothing but stir up apathy. The sandbox has been restored to a copy of live and the testcases relevant only to this change removed. Bazj (talk) 12:51, 2 March 2015 (UTC)[reply]
  • I'm sorry I didn't have time to respond to your earlier comment. I think the underlying request is uncontroversial; it's just the way you were proposing it that seemed to reach disagreement. I've passed the type parameter to fmbox now. If that's all that's required, I think we can mark this as resolved. — Martin (MSGJ · talk) 17:08, 2 March 2015 (UTC)[reply]
Thank you. I've refreshed the sandbox again but left the testcases since the changes weren't relevant to the live version. Bazj (talk) 08:11, 3 March 2015 (UTC)[reply]

Any objections to sync Template:Editnotice/notice/sandbox to live?

@MSGJ: The issue is that the expiry notice for an editnotice as {{Editnotices/Namespace/Module}} is incorrectly pointing to the mainspace page Module rather than a link to, say, the Module namespace. Currently, at {{Editnotice/notice/sandbox}}, I put in special cases for editnotices with a prefix "Template:Editnotices/Group" and "Template:Editnotices/Namespace". (I don't know if there are other special cases.) — Andy W. (talk ·ctb) 07:51, 17 May 2016 (UTC)[reply]

Thanks for fixing this. I don't have time to check your code right now, but will try and find time later today — Martin (MSGJ · talk) 07:55, 17 May 2016 (UTC)[reply]
I'm confident to sync what I have, but I can wait. I did some preliminary testing by switching the prefix and seeing its output, and it looks okay to me. The thing that's left to resolve is whether there are other special cases. — Andy W. (talk ·ctb) 08:01, 17 May 2016 (UTC)[reply]
Looks fine to me. There are no special cases that I'm aware of. (I must say I can't stand all the <!-- --> stuff you've added to the code. But this is just my personal preference.) — Martin (MSGJ · talk) 15:08, 17 May 2016 (UTC)[reply]
Tweaked the code a bit. I don't think your code would work for subpages (e.g. Template:Editnotices/Group/Template:Taxonomy/preload). Please check my revised code. Regards — Martin (MSGJ · talk) 15:13, 17 May 2016 (UTC)[reply]
@MSGJ: Further tweaks. If we don't have a default case, no need to print "(for )". I'm planning on syncing in about 12 hours. Thanks for the review! — Andy W. (talk ·ctb) 16:41, 17 May 2016 (UTC)[reply]
Live. I left the prefix to check the full 2 base levels to avoid a weird case like "User:Example/Namespace/Module" or something. Thanks for looking this over — Andy W. (talk ·ctb) 05:08, 18 May 2016 (UTC)[reply]
Looking good on pages like Template:Editnotices/Group/Wikipedia:In the news/Candidates and Template:Editnotices/Namespace/TimedText — Andy W. (talk ·ctb) 05:12, 18 May 2016 (UTC)[reply]

Auto-tag G8

@MSGJ, Redrose64, Callanecc, Nyttend, and Amalthea: who were involved at some point in editing the page in question

I have a suggested change for {{Editnotice/notice}} in its sandbox. (Special:Diff/726208381/727286188) What it does: for page and protection editnotices, if the target page does not exist AND is not specially create-protected in any way, we automatically tag it with WP:G8 for deletion. I've tested this in preview mode on Template:Editnotices/Page/Add article (protected) and Template:Editnotices/Page/Addd articlee (and the {{db-g8}} box pops up). It depends on the fact that {{editnotice}} is used in the first place, but should help. Do you think this is a good idea? — Andy W. (talk ·ctb) 23:33, 27 June 2016 (UTC)[reply]

I don't understand parser functions one bit (except for stuff like {{{1}}} being used for fillable parameters), so I can't comment on whether your proposal should be implemented. However, I think the idea itself is great: why shouldn't these pages be auto-tagged, if it's possible? Nyttend (talk) 00:33, 28 June 2016 (UTC)[reply]
Was thinking about this a bit more. The only slight problem might be that the G8s cannot be declined, unless the target page is re-created. — Andy W. (talk ·ctb) 01:24, 28 June 2016 (UTC)[reply]
[Assuming that the template does as designed] Why would this be a problem? I can't understand why you'd want to decline it, unless (1) the page shouldn't have been deleted, in which case undeletion or recreation is correct, or (2) the editnotice somehow needs to be moved to a new title. Do we ever intentionally have editnotices for nonexistent pages, e.g. "Template:Editnotice/Willy on wheels" existing with a message of "Don't create this page. We mean it!" I can't see why we'd do that, since there's no real point to saying "Don't create this title", unless the page has been recreated so many times that we should protect it. Nyttend (talk) 01:35, 28 June 2016 (UTC)[reply]
Salt detection prevents db-g8 from showing up at Template:Editnotices/Page/Enter your new article name here, for example. And actually, the "decline" problem is not too bad (sometimes I have lapses). The 4 ways to decline: 1. recreate the target; 2. blank the notice; 3. use an fmbox instead; 4. salt the target. — Andy W. (talk ·ctb) 03:39, 28 June 2016 (UTC)[reply]
I think we're in agreement here; I can't imagine why we'd need an editnotice for an unsalted target, and the protection log excerpt at top will serve the purpose of an editnotice for a salted one. Nyttend (talk) 13:15, 28 June 2016 (UTC)[reply]

Elaborated on rationale. (effective diff) I plan to act on this in a few days unless I hear otherwise. Thanks — Andy W. (talk ·ctb) 18:11, 28 June 2016 (UTC)[reply]

In the "how to decline this tag" bit, you offer "Blank this notice page itself" as an option. Is there a way to force it to produce a link to the editnotice page itself? If I were unfamiliar with editnotices, I wouldn't have a clue how to do this. Nyttend (talk) 20:01, 28 June 2016 (UTC)[reply]
The db-g8 nom is not by default visible on the target page above the edit box. On the editnotice itself, a link wouldn't really be necessary anyway. The link becomes bolded instead, and, override with red text, so there is no link. — Andy W. (talk ·ctb) 21:04, 28 June 2016 (UTC)[reply]
But how am I supposed to blank the editnotice if I'm not familiar with how it works? Maybe we're talking past each other (I don't understand why we can't have a link), but it would help to have the Jerusalem editnotice display a link to https://en.wikipedia.org/w/index.php?title=Template:Editnotices/Page/Jerusalem&action=edit (it would work; it wouldn't be bolded) if Jerusalem is a redlink. Nyttend (talk) 22:26, 28 June 2016 (UTC)[reply]
@Nyttend: Ahh, misunderstood. Applied your suggestion. I'm unaware if it's possible to replace an existing page's contents in the edit box with something else. preload and preloadparams work only for nonexistent pages. Thanks — Andy W. (talk ·ctb) 22:50, 28 June 2016 (UTC)[reply]
Great; thanks! I figured I was misunderstanding a bunch of stuff. Nyttend (talk) 22:52, 28 June 2016 (UTC)[reply]
@Nyttend: I just discovered 2 pages with potential issues (so far). Template:Editnotices/Page/List of Filipino architects and Template:Editnotices/Page/List of Canadian architects appear to be created in advance, expecting a page at the location, due to the existence of a bunch of other "List of * architects". I can see reason to keep them, but it's weak reasoning. What I could do is make a special case for "List of"-prefixed pages. — Andy W. (talk ·ctb) 01:06, 29 June 2016 (UTC)[reply]

Arbitrary break 1

@Nyttend: So the only remaining issue after a scrub through the pseudospace is potentially Template:Editnotices/Page/Wikipedia:Bots/Requests for approval/Approved/sandbox, whose target, "Wikipedia:Bots/Requests for approval/Approved/sandbox" doesn't exist. The title does makes sense though in the scheme of templates. I'm now thinking that a tracking category for editnotices with (unsalted) redlink targets is more appropriate, which I plan to write in a day or two. (A few dozen other issues were CSD resolved, and 3-4 other issues are at MfD, surely to be deleted.) — Andy W. (talk ·ctb) 02:22, 4 July 2016 (UTC)[reply]

Tracking when editnotices become notices on redirects

The current editnotice system is somewhat lacking in awareness when their pages (targets) are moved. 6 weeks back, the introduction of Category:Editnotices with unsalted non-existent targets, which started tracking editnotices that have become unused/unnecessary on red-links, resulted in cleanup of about a dozen pages. I'm proposing a new category, Category:Editnotices whose targets are redirects (or something similar) (self-explanatory name). Many editnotices that would appear in this category may need to be moved, though some, like Template:Editnotices/Page/Giants, are valid.

To track editnotices on redirects, the change would be something like this (with the check returning the category, not the string of course). Let me know if there's any feedback or comments. If none, I'll create the tracking category and update the notice subtemplate. Cheers, — Andy W. (talk ·ctb) 01:01, 31 August 2016 (UTC)[reply]

I have made the notice subtemplate start populating Category:Editnotices whose targets are redirects. Expecting several templates to start popping up. Any questions, let me know :) — Andy W. (talk ·ctb) 00:04, 6 September 2016 (UTC)[reply]
Good idea. Could you also add a note to this effect on Template:Editnotice/notice? Perhaps it could even contain a move link to the editnotice of the target of the redirect. — Martin (MSGJ · talk) 08:35, 6 September 2016 (UTC)[reply]
@MSGJ: Thanks. A note shouldn't be a problem. Though about the move link: I suppose we could add one, but I think there are many examples where a move link might not be appropriate (such as the one for Giants), since they are intended only for the redir page, and to detect this, might need some more expensive parser functions to detect this properly. I'll ponder this, and might get to some of this later in the week as time permits. — Andy W. (talk ·ctb) 16:32, 6 September 2016 (UTC)[reply]
A small note added to the effect, along with some additional logic updates. Could add a move link, but ideally, possibly making it aware an editnotice already exists for the new title (though that could get semantically even heavier on parser functions... not sure) — Andy W. (talk ·ctb) 16:36, 7 September 2016 (UTC)[reply]

Start-of-line wiki markup ignored at start of text arg

If you call {{Editnotice}} with:

{{Editnotice|text=
# Point 1
# Point 2
# Point 3
}}

it renders:

It ignores the first '#', even though it starts the line. The issue only occurs when the start of the |text= value is one of the characters that are special at the start of a line in WML, including '*' and ' ' (space).

A workaround is to put something else in front of it, even if it is invisible, like:

{{Editnotice|text=<nowiki />
# Point 1
# Point 2
# Point 3
}}

which renders (correctly):

Another workaround is to specify a |header= parm.

Should this be documented or fixed? —[AlanM1(talk)]— 02:56, 18 March 2019 (UTC)[reply]

Update: I see a similar issue is documented at Template:Quote/doc § Technical issues with block templates. —[AlanM1(talk)]— 11:21, 20 March 2019 (UTC)[reply]

Adding category parameter

I see MSGJ asked about this many years ago; it's come up again here. Could we find a way to implement this? There's certainly demand for it — I see Wugapodes tried to implement it at Template:COVID19 GS editnotice (or was that just copied from the Iran notice?), but it looks like that implementation isn't working properly. {{u|Sdkb}}talk 20:43, 23 June 2020 (UTC)[reply]

The code for getting from the editnotice page to the article itself is {{#titleparts: {{FULLPAGENAME}} |0|3}}, but I'm not sure how to categorize another page. {{u|Sdkb}}talk 21:04, 23 June 2020 (UTC)[reply]
I added code in the sandbox to add |category= and |sortkey=. Wug·a·po·des 21:13, 23 June 2020 (UTC)[reply]
@Wugapodes: It looks like that code categorizes the editnotice template page, rather than rather than the article page the editnotice is for. Is that an issue? - {{u|Sdkb}}talk 01:07, 24 June 2020 (UTC)[reply]
I was under the impression that was the intended behavior. I don't think we can categorize articles from the editnotice page. Wug·a·po·des 02:28, 24 June 2020 (UTC)[reply]
A page can categorise itself, or a page that it is transcluded to, or both. Since an editnotice is not transcluded to its associated article, it follows that it cannot categorise that article. --Redrose64 🌹 (talk) 18:16, 24 June 2020 (UTC)[reply]
Okay, in that case we're good to implement. Thanks for the coding, Wugapodes! {{u|Sdkb}}talk 01:43, 25 June 2020 (UTC)[reply]

Protected edit request on 25 June 2020

Please implement this change from the sandbox per the discussion above. This adds a parameter allowing an editnotice to add pages to a category. {{u|Sdkb}}talk 01:41, 25 June 2020 (UTC)[reply]

Um, what's the point of this? Why not include the category separate from the transclusion of {{editnotice}}? * Pppery * it has begun... 02:41, 25 June 2020 (UTC)[reply]
Pppery, the request that led to this discussion was here. The functionality is a fair bit less useful when it can't go on the page itself, though. {{u|Sdkb}}talk 08:22, 26 June 2020 (UTC)[reply]
 Not done for now: So... why would we implement functionality in the template that doesn't support any obvious use case not already solved by other mechanisms? Izno (talk) 14:21, 6 July 2020 (UTC)[reply]

Expiry parameter

I just tweaked the documentation. My change is based on the existence of this: {{Editnotice/notice}}

CapnZapp (talk) 09:59, 17 October 2020 (UTC)[reply]

In 99% of cases, the image used with an editnotice is just an icon, not anything someone would want to find out more about, so I think we should have |link= included blank by default to make it so that clicking on it won't bring you to the Commons file for the icon. This is similar to what we do for many other banners. Any objections? {{u|Sdkb}}talk 21:56, 17 December 2020 (UTC)[reply]

Which ones, specifically? If the image is licensed, for example, CC BY or CC BY-SA, there must be a link to its file description page in order to satisfy the attribution clause of the license. --Redrose64 🌹 (talk) 23:03, 18 December 2020 (UTC)[reply]
Hmm, that could be a wrinkle. In nearly all cases, though, it's something like File:Ambox important.svg or File:Information icon4.svg, which are fully public domain. {{u|Sdkb}}talk 23:44, 18 December 2020 (UTC)[reply]
If it's truly a public domain image, then you may set |link= blank for that specific image. But we cannot assume that all images used in editnotices are PD, therefore, we must not make a blank |link= be the default. --Redrose64 🌹 (talk) 22:03, 19 December 2020 (UTC)[reply]
Well, if certain file names are common (and they're PD), we can code that logic into the template to automatically do so for those. And I'm guessing using Lua it may be possible to do an automatic check for if it'd PD in general. ProcrastinatingReader (talk) 23:29, 19 December 2020 (UTC)[reply]
That's probably more effort than it's worth, but if you wanna go for it, feel free. {{u|Sdkb}}talk 23:56, 19 December 2020 (UTC)[reply]

Indexing?

I've noticed editnotices showing up on Google before. This isn't desirable, since they're a back-end part of Wikipedia, not something that needs to face the world. Should we add {{NOINDEX}} to this template, or do something else to make sure they don't get indexed? {{u|Sdkb}}talk 06:57, 5 February 2021 (UTC)[reply]

Okay, I'd like to propose this, but I don't know where exactly the noindex tag should go. Anyone have thoughts? {{u|Sdkb}}talk 23:35, 14 February 2021 (UTC)[reply]
Why do you want to use a template instead of __NOINDEX__? --Redrose64 🌹 (talk) 16:12, 15 February 2021 (UTC)[reply]
Redrose64, I don't; it was just easier to type, and works the same. I'm more wondering where it should go so that it works for all editnotices but doesn't have any collateral (e.g. if an editnotice is just referenced in a project gallery of templates). {{u|Sdkb}}talk 19:45, 15 February 2021 (UTC)[reply]

Template-protected edit request on 22 November 2021

Please copy Template:Editnotice/notice/sandbox to Template:Editnotice/notice. This adds a link to the subpages of the target of a group editnotice, so people can quickly see all of the pages affected by such an editnotice. Thanks. Danski454 (talk) 00:22, 22 November 2021 (UTC)[reply]

 Done * Pppery * it has begun... 01:14, 22 November 2021 (UTC)[reply]

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:

  1. Add a |plainlinks={{{plainlinks|yes}}} to {{fmbox}} and then add a |plainlinks=no to this template's call of {{fmbox}}
  2. 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)[reply]

@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)[reply]
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)[reply]
Seems reasonable. {{u|Sdkb}}talk 07:21, 29 January 2024 (UTC)[reply]
 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)[reply]

Image linking and alt text parameters

The template does not currently appear to support these. Could they be coded? {{u|Sdkb}}talk 20:10, 27 February 2022 (UTC)[reply]

Disable display in mainspace

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)[reply]

@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)[reply]

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

Linking editnotice guide in the notice

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, Sdkbtalk 18:39, 28 February 2024 (UTC)[reply]

Namespace key off topic

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)[reply]

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