Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module talk:Validate gadgets

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Validate gadgets/doc)
Latest comment: 6 months ago by SD0001 in topic Boolean options

Is actions=view valid?

[edit]

@SD0001 I think actions=view should be valid even though there is no such message? E.g. Russian Wikipedia has it for the edittop gadget. Jack who built the house (talk) 03:14, 6 September 2025 (UTC)Reply

Fw: @DonRumata @Stjn Jack who built the house (talk) 03:15, 6 September 2025 (UTC)Reply
I've changed it to go back to a manual list of valid actions. I tried to get action-view added to core, before realizing that the action-* message series corresponds to user rights instead of actions (see translatewiki:Template:Doc-action), so isn't reliable for this purpose. – SD0001 (talk) 04:09, 6 September 2025 (UTC)Reply

Vue extension

[edit]

I suggest adding some code like in this diff, so that .vue extension files don't return warnings (see mw:Extension:Gadgets#Page_names) MonAx (talk) 14:20, 9 December 2025 (UTC)Reply

 DoneSD0001 (talk) 17:12, 9 December 2025 (UTC)Reply

Boolean options

[edit]

@SD0001: supportsUrlLoad is a little bit more special than the rest, as it is the only one enabled by default. To disable it, the definition needs to specify supportsUrlLoad=false. See extension code. NguoiDungKhongDinhDanh 17:59, 7 January 2026 (UTC)Reply

You're misreading the code; it's not enabled by default. Setting supportsUrlLoad=false has the same effect as not specifying the option – a failsafe for people expecting "false" to disable the option instead of enabling it.
Although we could configure the validator to accept supportsUrlLoad=false, its redundant as the option can be removed altogether, so I think a warning is still useful. – SD0001 (talk) 18:13, 7 January 2026 (UTC)Reply