<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://xn--jrnvgshistoria-5hbd.se/index.php?action=history&amp;feed=atom&amp;title=Modul%3AHuvudkategori</id>
	<title>Modul:Huvudkategori - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://xn--jrnvgshistoria-5hbd.se/index.php?action=history&amp;feed=atom&amp;title=Modul%3AHuvudkategori"/>
	<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Huvudkategori&amp;action=history"/>
	<updated>2026-06-30T19:05:11Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Huvudkategori&amp;diff=106446&amp;oldid=prev</id>
		<title>Jan Karlsson: Skapade sidan med 'p = {}   function p.huvudkategori(frame)     local text = ''     local table entity = mw.wikibase.getEntityObject()     if entity then       if entity.claims then         if entity.claims.P910 then             local i = 1             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']                     if id then...'</title>
		<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Huvudkategori&amp;diff=106446&amp;oldid=prev"/>
		<updated>2023-06-09T06:41:47Z</updated>

		<summary type="html">&lt;p&gt;Skapade sidan med &amp;#039;p = {}   function p.huvudkategori(frame)     local text = &amp;#039;&amp;#039;     local table entity = mw.wikibase.getEntityObject()     if entity then       if entity.claims then         if entity.claims.P910 then             local i = 1             while entity.claims.P910[i] do                 if entity.claims.P910[i].mainsnak.snaktype == &amp;#039;value&amp;#039; then                     local id = entity.claims.P910[i].mainsnak.datavalue.value[&amp;#039;numeric-id&amp;#039;]                     if id then...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny sida&lt;/b&gt;&lt;/p&gt;&lt;div&gt;p = {}&lt;br /&gt;
 &lt;br /&gt;
function p.huvudkategori(frame)&lt;br /&gt;
    local text = ''&lt;br /&gt;
    local table entity = mw.wikibase.getEntityObject()&lt;br /&gt;
    if entity then&lt;br /&gt;
      if entity.claims then&lt;br /&gt;
        if entity.claims.P910 then&lt;br /&gt;
            local i = 1&lt;br /&gt;
            while entity.claims.P910[i] do&lt;br /&gt;
                if entity.claims.P910[i].mainsnak.snaktype == 'value' then&lt;br /&gt;
                    local id = entity.claims.P910[i].mainsnak.datavalue.value['numeric-id']&lt;br /&gt;
                    if id then&lt;br /&gt;
                        local sort = entity.claims.P910[i].mainsnak.datavalue.value['entity-type']&lt;br /&gt;
                        if sort == 'item' then &lt;br /&gt;
                            id = 'q' .. id&lt;br /&gt;
                        elseif sort == 'property' then&lt;br /&gt;
                            id = 'p' .. id&lt;br /&gt;
                        else&lt;br /&gt;
                            return ''&lt;br /&gt;
                        end&lt;br /&gt;
                        local u = mw.wikibase.sitelink( id )&lt;br /&gt;
                        if string.sub(u, 1, 9) == 'Kategori:' then&lt;br /&gt;
                            text = text .. '[[' .. u .. '| ' .. i .. ']]'&lt;br /&gt;
                        end&lt;br /&gt;
                    end&lt;br /&gt;
                end&lt;br /&gt;
                i = i + 1&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    return text&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Jan Karlsson</name></author>
	</entry>
</feed>