Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2249b3aec5b879c

Jump to content

Module talk:Clade/hidden

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

Accepting values for "expanded"

[edit]

Currently if the parameter 'expanded' is used it is always set to true, even if 'expanded=false' is used.

Might be better to change:

local initialState = mw.getCurrentFrame():getParent().args['expanded']

to:

local initialState = mw.getCurrentFrame():getParent().args['expanded']

if mw.getCurrentFrame():getParent().args['expanded'] == "true" then

initialState = true

else

initialState = false

end

or something similar. Southernants (talk) 22:13, 21 May 2023 (UTC)Reply

 Done @Southernants: I wrote the code to use expanded as a flag, i.e. any value or empty parameter would set the initial stated expanded. However, the documentation didn't reflect this. It now takes true or yes to set the initial state. —  Jts1882 | talk  08:11, 22 May 2023 (UTC)Reply