Difference between revisions 23947589 and 23947702 on svwikip = {} function p.diagram(frame) local pFrame = frame:getParent() local args = pFrame.args local text = '' local namn = args.namn or frame.args.namn local max = -math.huge if namn == nil or namn == ''then return 'Inget namn är angivet' end local fran = tonumber(args.fran) or 1800 local fran2 = math.huge local till2 = -math.huge⏎ local till = tonumber(args.till) or tonumber(os.date("%Y")) local step = 1 if till < fran then step = -1 end for i = fran, till, step do local pu = 'inv' .. i if tonumber(args[pu]) then text = text .. args[pu] .. ' 'if tonumber(args[pu]) > max then max = tonumber(args[pu]) end if i > till2 then till2 = i end if i < fran2 then fran2 = i end end end --text = mw.text.tag('table', {cellspacing="0", cellpadding="0", style="clear:none;float:none;border:silver solid 1px; font-size:90%; padding:0.4em;margin:0.4em;width:650px"}, text) return text .. '; ' .. fran2 .. '-' .. till2 end return p All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://sv.wikipedia.org/w/index.php?diff=prev&oldid=23947702.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|