Jump to content

Module talk:Clade/hidden

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Southernants (talk | contribs) at 22:13, 21 May 2023 (Accepting values for "expanded": new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Accepting values for "expanded"

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]