Content deleted Content added
Jackmcbarn (talk | contribs) use mw.html |
Jackmcbarn (talk | contribs) various fixes |
||
Line 1:
-- This module implements {{portal bar}}.
require('Module:No globals')
local p = {}
Line 11 ⟶ 13:
if #portals < 1 then return '' end -- Don't display a blank navbox if no portals were specified.
local list = mw.html.create( 'ul' )
for
list
:tag( 'li' )
Line 18 ⟶ 20:
:tag( 'span' )
:css( 'margin', 'auto 0.5em' )
:wikitext(
:done()
:tag( 'span' )
:css( 'font-weight', 'bold' )
:wikitext(
end
if yesno( args.border ) == false then -- Don't display a border if args.border is "no", "n", "false", 0 or false.
:css( 'width', '100%' )
:node( list )
else
return buildNavbox{
bodyclass = 'noprint',
list1 = tostring( list )
Line 51 ⟶ 52:
-- or from another Lua module.
local origArgs
if type( frame.getParent ) ==
origArgs = frame:getParent().args
for k, v in pairs( frame.args ) do
|