<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFt.dk_link</id>
	<title>Module:Ft.dk link - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFt.dk_link"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Ft.dk_link&amp;action=history"/>
	<updated>2026-06-13T21:43:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Ft.dk_link&amp;diff=471798&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Ft.dk_link&amp;diff=471798&amp;oldid=prev"/>
		<updated>2021-07-15T21:47:34Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.link_url_for_current_page()&lt;br /&gt;
    return p.link_url(mw.wikibase.getEntityIdForCurrentPage())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.asciify(ft_id)&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'æ', 'ae')&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'ø', 'oe')&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'ð', 'oe') -- e.g. Sjúrður Skaale&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'ö', 'oe') -- e.g. Özlem Cekic&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'å', 'aa')&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'ú', 'u')  -- e.g. Sjúrður Skaale&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'á', 'a')  -- e.g. Annita á Fríðriksmørk&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, 'í', 'i')  -- e.g. Annita á Fríðriksmørk&lt;br /&gt;
    return ft_id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local url_prefix = 'https://www.thedanishparliament.dk/members/'&lt;br /&gt;
&lt;br /&gt;
function p.link_url(entity)&lt;br /&gt;
    local prop = entity and mw.wikibase.getBestStatements(entity, 'P7882')&lt;br /&gt;
    if prop and prop[1] and prop[1].mainsnak.snaktype == 'value' then&lt;br /&gt;
        local ft_id = prop[1].mainsnak.datavalue.value&lt;br /&gt;
        slash_position = mw.ustring.find(ft_id, '/')&lt;br /&gt;
        if slash_position ~= nil then&lt;br /&gt;
            -- There are politicians like e.g. Özlem Cekic where the property string will start with 'oe/'&lt;br /&gt;
            -- because this is needed in the Danish version of the biography URL.&lt;br /&gt;
            -- It isn't there in the English version, so we strip off that part.&lt;br /&gt;
            ft_id = mw.ustring.sub(ft_id, slash_position + 1)&lt;br /&gt;
        end&lt;br /&gt;
        ft_id = p.asciify(ft_id) -- The Danish version allows unicode but the English doesn't&lt;br /&gt;
        return url_prefix .. ft_id&lt;br /&gt;
    end&lt;br /&gt;
    return ''&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>