<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nb">
	<id>https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AConvert_character_width</id>
	<title>Modul:Convert character width - Sideversjonshistorikk</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AConvert_character_width"/>
	<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Convert_character_width&amp;action=history"/>
	<updated>2026-04-30T17:46:40Z</updated>
	<subtitle>Versjonshistorikk for denne siden på wikien</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Convert_character_width&amp;diff=2185&amp;oldid=prev</id>
		<title>Wikisida: Én sideversjon ble importert</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Convert_character_width&amp;diff=2185&amp;oldid=prev"/>
		<updated>2026-02-08T17:30:29Z</updated>

		<summary type="html">&lt;p&gt;Én sideversjon ble importert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nb&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Eldre sideversjon&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Sideversjonen fra 8. feb. 2026 kl. 17:30&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;nb&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen forskjell)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key c1wiki:diff:1.41:old-2184:rev-2185 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wikisida</name></author>
	</entry>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Convert_character_width&amp;diff=2184&amp;oldid=prev</id>
		<title>nb&gt;Tholme: 5 revisjoner ble importert fra :en:Module:Convert_character_width</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Convert_character_width&amp;diff=2184&amp;oldid=prev"/>
		<updated>2022-10-04T17:02:39Z</updated>

		<summary type="html">&lt;p&gt;5 revisjoner ble importert fra &lt;a href=&quot;https://en.wikipedia.org/wiki/Module:Convert_character_width&quot; class=&quot;extiw&quot; title=&quot;en:Module:Convert character width&quot;&gt;en:Module:Convert_character_width&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny side&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module converts support characters from half-width to full-width, and vice versa.&lt;br /&gt;
-- See [[Halfwidth and fullwidth forms]] for an explanation of half- and full-width characters.&lt;br /&gt;
&lt;br /&gt;
-- @todo FIXME: Needs more characters adding, needs support for diacritic marks.&lt;br /&gt;
&lt;br /&gt;
local data = mw.loadData( &amp;#039;Module:Convert character width/data&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Converts one half-width character to one full-width character.&lt;br /&gt;
local function getFull( s )&lt;br /&gt;
    return data[ s ] or s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Converts one full-width character to one half-width character.&lt;br /&gt;
local function getHalf( s )&lt;br /&gt;
    for half, full in pairs( data ) do&lt;br /&gt;
        if s == full then&lt;br /&gt;
            return half&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Converts multiple half-width characters to full-width characters.&lt;br /&gt;
function p.full( frame )&lt;br /&gt;
    local s = type( frame ) == &amp;#039;table&amp;#039; and frame.args and frame.args[ 1 ] or frame&lt;br /&gt;
    s = type( s ) == &amp;#039;number&amp;#039; and tostring( s ) or s&lt;br /&gt;
    if type( s ) ~= &amp;#039;string&amp;#039; then return end&lt;br /&gt;
    return ( mw.ustring.gsub( s, &amp;#039;.&amp;#039;, getFull ) )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Converts multiple full-width characters to half-width characters.&lt;br /&gt;
function p.half( frame )&lt;br /&gt;
    local s = type( frame ) == &amp;#039;table&amp;#039; and frame.args and frame.args[ 1 ] or frame&lt;br /&gt;
    s = type( s ) == &amp;#039;number&amp;#039; and tostring( s ) or s&lt;br /&gt;
    if type( s ) ~= &amp;#039;string&amp;#039; then return end&lt;br /&gt;
    return ( mw.ustring.gsub( s, &amp;#039;.&amp;#039;, getHalf ) )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>nb&gt;Tholme</name></author>
	</entry>
</feed>