Module:Tabs: Difference between revisions

Want an adless experience? Log in or Create an account.
m
or put the editlink after the transclusion since it's position:absolute anyway. avoids double newline adding actual space
m (need newline between editlink and transclude (dunno how T2D/Transclude works without it))
m (or put the editlink after the transclusion since it's position:absolute anyway. avoids double newline adding actual space)
Line 263: Line 263:
         tabs:addContent{
         tabs:addContent{
           selection = { left = leftSelection, top = topSelection },
           selection = { left = leftSelection, top = topSelection },
           content = tostring( editlink ) .. '\n' .. mw.getCurrentFrame():expandTemplate{ title = ':' .. template }
           content = mw.getCurrentFrame():expandTemplate{ title = ':' .. template } .. tostring( editlink )
         }
         }
       end
       end