Template talk:Ds/aware

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Template-protected edit request on 18 July 2019[edit]

<noinclude>{{pp-template|small=yes}}</noinclude> can be removed, because it is automatically handled by {{Documentation}}. Retro (talk | contribs) 02:56, 18 July 2019 (UTC)[reply]

 Done DannyS712 (talk) 03:17, 18 July 2019 (UTC)[reply]

Is the exact title important? If so...[edit]

@Galobtter: If the current title of this template is important in allowing this template to be implemented properly, then I think we have a problem. You are probably aware that the current title of this template is Ds/aware. However, in the motion approving this template for use, the template title was rendered as DS/Aware.

In general in seems a bit strange that an exact title would be needed and I would be interested in an explanation of why this is necessary. Ideally, redirects would be allowed, because it's likely to lead to even more confusion otherwise, especially given the motion text and JFG's quickly-reverted move. Retro (talk | contribs) 03:04, 18 July 2019 (UTC)[reply]

Yes, I moved to {{DS/aware}} and then reverted to {{Ds/aware}}, because apparently the relevant code was case-sensitive. I do believe it would be more convenient for editors if the system worked with both spellings. I could edit Module:Ds/aware accordingly, but I'd rather let Galobtter amend the code as he sees fit… which he did while I was typing this.[1] Thanks! — JFG talk 03:34, 18 July 2019 (UTC)[reply]
I made the title of this template with a lowercase "s" to be consistent with Template:Ds/alert. As JFG mentioned, a Lua module, Module:Ds/aware searches the wikitext for the template, so every redirect requires a modification of the Lua pattern. Galobtter (pingó mió) 03:39, 18 July 2019 (UTC)[reply]
I think it's a bit confusing that the documentation says not to create redirects but then lists two shortcuts, one of which doesn't match the names listed as mandatory for the edit filter to work. I appreciate there is a desire to document the different ways the template can be used, but I think it would be better to leave it to the message box and avoid the usual shortcut box. Having the shortcut box may just encourage people to create more re-directs. isaacl (talk) 14:03, 21 July 2019 (UTC)[reply]
Regarding this edit: Does the edit filter need to key off a specific name so that it can display the appropriate warning when trying to alert an editor? Or is the only issue the detect function, which if I understand correctly is there to avoid having to replicate the sample template use twice in the documentation? isaacl (talk) 23:33, 21 July 2019 (UTC)[reply]
The filter itself only checks for addition of {{Ds/alert}}. The filter message, MediaWiki:Abusefilter-warning-DS, uses the detect function to display the appropriate warning. Galobtter (pingó mió) 01:49, 22 July 2019 (UTC)[reply]
The motion should obviously have been spelled Ds/aware and not DS. I have now boldly changed the motions so that they contain the correct template name, and I feel sure that my colleagues will not object. AGK ■ 09:41, 4 August 2019 (UTC)[reply]

Aware of all sanctions?[edit]

@Galobtter: Is there a way for users to specify that they are aware of all sanctions? This might primarily apply to admins. Sandstein 09:46, 9 August 2019 (UTC)[reply]

Sandstein, Not exactly - Atsme has listed themselves as aware of all current sanctions through <!-- {{Ds/aware|9/11|a-a|a-i|ab|acu|aerc|at|mos|b|blp|cam|cc|cid|e-e|ecig|fg|gc|ggtf|gap|gmo|ipa|lr|lw|muh-im|old|pa|pr|ps|r-i|saq|sen|sci|tm|tpm|tt|we}} -->, but I think a true "aware of all sanctions, current and future" would require an arbcom motion. Galobtter (pingó mió) 19:54, 10 August 2019 (UTC)[reply]
Sandstein - see the custom alert at the top of my UTP - in the text is a link to WP:Arbitration enforcement log which is kept current (right? 😊), so by linking to the log, you have acknowledged awareness of whatever is included on the log. Over time, users will become accustomed to looking at the top of a UTP for DS aware notices. 🤞🏼 Atsme Talk 📧 21:04, 10 August 2019 (UTC)[reply]

Should we add something to say it should be place at the top of a UTP?[edit]

Coming here as I just saw someone put it at the bottom of their page. Doug Weller talk 11:23, 11 August 2019 (UTC)[reply]

It has worked for me, and will improve reliability if editors know to pin it at the top of their UTP (above the TOC) where it is unobtrusive and permanent. Atsme Talk 📧 14:27, 11 August 2019 (UTC)[reply]
There's already a note about that at Template:Ds/aware/doc#Usage. Galobtter (pingó mió) 20:04, 11 August 2019 (UTC)[reply]

Template-protected edit request on 9 February 2020[edit]

Replace the word "They" in the template based on this change to the sandbox. Editors can choose a gender in their Preferences and this change would allow the template to reflect their preferred pronouns. feminist (talk) 07:22, 9 February 2020 (UTC)[reply]

 Done qedk (t c) 07:56, 9 February 2020 (UTC)[reply]

Error on non-existing page[edit]

A rare problem but one which I just saw occurs when putting an alert on the non-existent talk page of a new user. That gives: "Lua error in Module:Ds/aware at line 13: bad argument #1 to 'match' (string expected, got nil). Do you wish to alert this user?..." After content = title:getContent() it needs an if content then, or perhaps just stick or '' after getContent(). Johnuniq (talk) 00:59, 11 June 2020 (UTC)[reply]

Lua error[edit]

I get "Lua error in Module:Ds/aware at line 13: bad argument #1 to 'match' (string expected, got nil). Do you wish to alert this user? If so, click 'Publish changes' again. If not, click 'Cancel'." when trying to notify a user whose talk page was not yet created. The work-around is to save a heading and then add the template, but it's an avoidable error if it skips the check for an editor whose talk page doesn't exist. --RexxS (talk) 17:28, 28 September 2020 (UTC)[reply]

Fixed I think, and briefly tested (thanks to GN for assisting). I think setting content to an empty string (also proposed by Johnuniq above) will do the trick, as it causes the next match to fail and so the function to return as if no {{Ds/aware}} was present. Feel free to revert if issues. ProcrastinatingReader (talk) 18:24, 29 September 2020 (UTC)[reply]

make hidden[edit]

can we make this a template that does not display anything but will show the abuse filter notice? nableezy - 22:41, 22 February 2021 (UTC)[reply]

Amen! My talk page shouldn't have this monster banner on top. The normal human readers of my talk page don't need it. This template is providing information that needs to be picked up by the tool which adds the controversial topic warnings. In web terms, this template is like a statement in a .htaccess file. -- M.boli (talk) 14:48, 24 March 2021 (UTC)[reply]
See the top of my UTP for ideas - having the links on your UTP trips the filter, and that's really all you need. It was approved at ARCA. Atsme 💬 📧 15:10, 24 March 2021 (UTC)[reply]
Thanks, having it as a hidden comment seems to work in triggering the filter. nableezy - 15:37, 24 March 2021 (UTC)[reply]
Well, it saves editors from having to search your contributions to see if you've been advised within the year, so it actually does have a purpose. I think you're spinning your wheels trying to get a hidden DS notice approved, especially considering any editor or admin may simply be looking to see if you've been made aware. Looking doesn't trigger the filter. Atsme 💬 📧 18:10, 24 March 2021 (UTC)[reply]
Not sure what you mean, having it in a hidden comment shows in the edit filter when somebody attempts to save a notice that I am already aware. Thats all I wanted. nableezy - 18:29, 24 March 2021 (UTC)[reply]
I agree with this sentiment (and have wondered the same before). ProcrastinatingReader (talk) 19:02, 24 March 2021 (UTC)[reply]

Is this template operating properly?[edit]

Another editor recently added a Ds/alert-gg on my Talk page, which I immediately reverted as contrary to ArbCom awareness criteria. They pleaded innocent, saying nothing turned up in the 602 filter. If they are correct, then I owe them an apology, and this template needs to be fixed, as it can generate unnecessary strife and misunderstanding. Can someone enlighten me on whether this template is in working order or not? If there's a "Ds/alert-test" feature and you need a live Talk page upon which to place it to perform the test, feel free to add a test alert to my Talk page. Thanks, Mathglot (talk) 01:53, 28 August 2021 (UTC)[reply]

It's been over half a year and the original dispute is probably not worth following up on, but I saw your comment and checked to see whether edit filter 602 (hist · log) is working properly. Using the sandbox page at User talk:Sandbox, I can confirm that the {{Ds/aware}} template does cause filter 602 to display a warning containing the words "It is not necessary to notify this user of sanctions for the following topic area(s):" and that the user must submit the edit a second time for it to go through. Although I cannot confirm the contents of the warning message that was displayed, according to Special:AbuseLog/30729057, the edit in question (Special:Diff/1040971867) did generate a warning. — Newslinger talk 05:52, 17 March 2022 (UTC)[reply]
Thanks for this comment, and you're right, probably not worth following up at this point. Mathglot (talk) 09:23, 17 March 2022 (UTC)[reply]

How to?[edit]

How to "specify in the template the topic areas that you would like to opt out of alerts about"? Do I add an equal sign in the brackets somewhere or what? Should this information not be in the template? I've received a rather hostile message from User:Doug Weller scolding me for doing something that was not evident. Thanks. Kire1975 (talk) 21:57, 26 May 2022 (UTC)[reply]

You would add fields, eg {{Ds/aware|ap|e-e|gg}}, or if you just want American politics {{Ds/aware|ap}}. That wasnt a hostile message, you're saying you're aware of nothing if you just place ds/aware without any other field. You need to add a field for each topic area you wish to waive any notification requirement for. nableezy - 22:08, 26 May 2022 (UTC)[reply]
Thanks. What is the difference between ap and tpm? Kire1975 (talk) 00:24, 27 May 2022 (UTC)[reply]
You can see the list of codes here. See the note "Note that the ap and tpm topic codes are interchangeable. tpm is preferred." nableezy - 02:55, 27 May 2022 (UTC)[reply]