Difference between revisions 24028364 and 24073936 on svwikip = {} function p.huvudkategkallori(frame) local text = '' local table entity = mw.wikibase.getEntity()⏎ if entity then⏎ ⏎ ⏎ if entity.claims.p910 then local i = 0 while entity.claims.p910[i] do if entity.claims.p910[i].mainsnak.snaktype == 'value' then local id = entity.claims.p910[i].mainsnak.datavalue.value['numeric-id'] local sort = entity.claims.p910[i].mainsnak.datavalue.value['entity-type'] if sort == 'item' then id = 'q' .. id elseif sort == 'property' then id = 'p' .. id else return '' end local u = mw.wikibase.sitelink( id ) if string.sub(u, 1, 9) == 'Kategori:' then text = text .. '[[' .. u .. '| ' .. i .. ']]' end end i = i +claims = entity.claims if claims then for i, statement in pairs( claims.p910 ) do local t = 1 end end end return text'' 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=24073936.
![]() ![]() 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.
|