<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/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://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AFt.dk_link"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ft.dk_link&amp;action=history"/>
	<updated>2026-05-24T06:21:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Ft.dk_link&amp;diff=136331&amp;oldid=prev</id>
		<title>imported&gt;Ysangkok: handle í and á for e.g. Annita á Fríðriksmørk</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ft.dk_link&amp;diff=136331&amp;oldid=prev"/>
		<updated>2020-02-28T15:52:20Z</updated>

		<summary type="html">&lt;p&gt;handle í and á for e.g. Annita á Fríðriksmørk&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, &amp;#039;æ&amp;#039;, &amp;#039;ae&amp;#039;)&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;ø&amp;#039;, &amp;#039;oe&amp;#039;)&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;ð&amp;#039;, &amp;#039;oe&amp;#039;) -- e.g. Sjúrður Skaale&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;ö&amp;#039;, &amp;#039;oe&amp;#039;) -- e.g. Özlem Cekic&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;å&amp;#039;, &amp;#039;aa&amp;#039;)&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;ú&amp;#039;, &amp;#039;u&amp;#039;)  -- e.g. Sjúrður Skaale&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;á&amp;#039;, &amp;#039;a&amp;#039;)  -- e.g. Annita á Fríðriksmørk&lt;br /&gt;
    ft_id = mw.ustring.gsub(ft_id, &amp;#039;í&amp;#039;, &amp;#039;i&amp;#039;)  -- 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 = &amp;#039;https://www.thedanishparliament.dk/members/&amp;#039;&lt;br /&gt;
&lt;br /&gt;
function p.link_url(entity)&lt;br /&gt;
    local prop = entity and mw.wikibase.getBestStatements(entity, &amp;#039;P7882&amp;#039;)&lt;br /&gt;
    if prop and prop[1] and prop[1].mainsnak.snaktype == &amp;#039;value&amp;#039; then&lt;br /&gt;
        local ft_id = prop[1].mainsnak.datavalue.value&lt;br /&gt;
        slash_position = mw.ustring.find(ft_id, &amp;#039;/&amp;#039;)&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 &amp;#039;oe/&amp;#039;&lt;br /&gt;
            -- because this is needed in the Danish version of the biography URL.&lt;br /&gt;
            -- It isn&amp;#039;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&amp;#039;t&lt;br /&gt;
        return url_prefix .. ft_id&lt;br /&gt;
    end&lt;br /&gt;
    return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Ysangkok</name></author>
	</entry>
</feed>