Module:Lockbox/sandbox: Difference between revisions

Content deleted Content added
use the parent frame title instead of the current title
don't transclude the current page - there should already be a transclusion from the lockbox from using #invoke there
Line 19:
-- check if the transcluding page is cascade-protected
-- XXX: unfortunately there is no other way; title.protectionLevels does not report cascading protection status
mw.title.getCurrentTitle():getContent() -- self-transclude; see [[mw:Extension:Scribunto/Lua reference manual#Title objects]]
do
local parent_title = frame:getParent():getTitle()