Module:Subpage tabs

local linkUtil = require('Module:LinkUtil') local p = {}

function p.produceTabs(frame) args = frame:getParent.args tabs = "{| style=\"border:2px solid #4f6087; border-radius:7px; clear:both; text-align:center; background-color:#9ca1af; white-space: nowrap;\"\n| style=\"width:5%; background-color:#8795a8; border-radius:3px; padding:3px;\" | " .. linkUtil.stripDab(args[1]) .. " " done = false i = 2 while not done do		if args[i] and args[i] ~= "" then tabs = tabs .. "\n| style=\"width:5%; background-color:#8795a8; border-radius:3px; padding:3px;\" | " .. args[i] .. " " i = i + 1 else done = true end end return tabs end

return p