Template talk:Editnotices/Group/Template:POTD protected

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

Expression error: Unexpected < operator

Ravenpuff, this edit notice produces an error, when it is used on Template:POTD protected/doc (edit). —⁠andrybak (talk) 11:52, 1 October 2020 (UTC)[reply]

The problem seems to be in the first #ifexpr: {{#ifexpr:{{#time:U}}-{{#time:U|{{#titleparts:Template:POTD protected/doc|1|2}}}}<86400|...|...}}, which is caused by #time returning an error: {{#time:U|{{#titleparts:Template:POTD protected/doc|1|2}}}}, because {{#titleparts:Template:POTD protected/doc|1|2}} returns "doc", which is not a timestamp in a valid time format. —⁠andrybak (talk) 12:03, 1 October 2020 (UTC)[reply]
Perhaps, wrapping it in {{Sandbox other}} will be sufficient? It takes care of both "sandbox" and "doc" subpage names. —⁠andrybak (talk) 12:04, 1 October 2020 (UTC)[reply]

Template-protected edit request on 1 October 2020

Please wrap the whole code of this edit notice in {{Sandbox other||...}}, so that the edit notice is not shown on /doc and /sandbox subpages. —⁠andrybak (talk) 14:54, 1 October 2020 (UTC)[reply]

 Done @Andrybak: Thanks for pointing this out. I've used #iferror instead to catch the cases in which the subpage isn't in a date format; please let me know if you find any other problems. — RAVENPVFF · talk · 10:41, 3 October 2020 (UTC)[reply]