Template talk:Editnotices/Group/Template:POTD protected
Appearance
Expression error: Unexpected < operator
Ravenpuff, this edit notice produces an error, when it is used on Template:POTD protected/doc ( ). —andrybak (talk) 11:52, 1 October 2020 (UTC)
- 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) - 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)
Template-protected edit request on 1 October 2020
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
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)