<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FGonnym%2FScript_basic_documentation</id>
	<title>Module:Sandbox/Gonnym/Script basic documentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FGonnym%2FScript_basic_documentation"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Sandbox/Gonnym/Script_basic_documentation&amp;action=history"/>
	<updated>2026-04-23T03:25:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Sandbox/Gonnym/Script_basic_documentation&amp;diff=23417095&amp;oldid=prev</id>
		<title>imported&gt;Gonnym at 12:34, 6 June 2024</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Sandbox/Gonnym/Script_basic_documentation&amp;diff=23417095&amp;oldid=prev"/>
		<updated>2024-06-06T12:34:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;quot;strict&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
--- @module&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function extractFontNames(text)&lt;br /&gt;
	local fontNames = {}&lt;br /&gt;
	for fonts in text:gmatch(&amp;quot;font%-family:%s*([^;}]+);&amp;quot;) do&lt;br /&gt;
		for font in fonts:gmatch(&amp;quot;([^,]+)&amp;quot;) do&lt;br /&gt;
			font = font:match(&amp;quot;^%s*(.-)%s*$&amp;quot;) -- Trim leading and trailing whitespace&lt;br /&gt;
			font = font:gsub(&amp;#039;&amp;quot;&amp;#039;, &amp;quot;&amp;quot;) -- Remove double quotes&lt;br /&gt;
			font = font:gsub(&amp;quot;&amp;#039;&amp;quot;, &amp;quot;&amp;quot;) -- Remove single quotes&lt;br /&gt;
			table.insert(fontNames, font)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return fontNames&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local pageName = mw.ustring.lower(page.subpageText)&lt;br /&gt;
	local styles = &amp;quot;Template:Script/styles &amp;quot; .. pageName .. &amp;quot;.css&amp;quot;&lt;br /&gt;
	local text = mw.title.new(styles):getContent() or page:getContent()&lt;br /&gt;
	&lt;br /&gt;
	if text then&lt;br /&gt;
		local fonts = extractFontNames(text)&lt;br /&gt;
		return table.concat(fonts, &amp;quot;, &amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	return nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Gonnym</name></author>
	</entry>
</feed>