<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cosmicpe.me/index.php?action=history&amp;feed=atom&amp;title=Module%3ACLabel</id>
	<title>Module:CLabel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cosmicpe.me/index.php?action=history&amp;feed=atom&amp;title=Module%3ACLabel"/>
	<link rel="alternate" type="text/html" href="https://wiki.cosmicpe.me/index.php?title=Module:CLabel&amp;action=history"/>
	<updated>2026-07-19T20:40:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.cosmicpe.me/index.php?title=Module:CLabel&amp;diff=7395&amp;oldid=prev</id>
		<title>Muqsit at 17:27, 8 March 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.cosmicpe.me/index.php?title=Module:CLabel&amp;diff=7395&amp;oldid=prev"/>
		<updated>2026-03-08T17:27:07Z</updated>

		<summary type="html">&lt;p&gt;&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:27, 8 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot;&gt;Line 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     -- Generate icon&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     -- Generate icon&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local iconFile = args.icon or game .. &#039;_&#039; .. chara .. &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;_Icon&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;png&lt;/del&gt;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local iconFile = args.icon or game .. &#039;_&#039; .. chara .. &#039;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;webp&lt;/ins&gt;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local altText = &amp;#039;&amp;#039;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local altText = &amp;#039;&amp;#039;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if args.label == &amp;#039;none&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if args.label == &amp;#039;none&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Muqsit</name></author>
	</entry>
	<entry>
		<id>https://wiki.cosmicpe.me/index.php?title=Module:CLabel&amp;diff=7393&amp;oldid=prev</id>
		<title>Muqsit: Created page with &quot;local p = {} local mArguments  function p.main(frame)     mArguments = require(&#039;Module:Arguments&#039;)     local args = mArguments.getArgs(frame)     return p._main(args) end  function p._main(args)     -- Get current frame for extensionTag     local frame = mw.getCurrentFrame()      -- Determine game parameter with fallbacks     local game = args.game     if not game or game == &#039;&#039; then         if args.chara and args.chara ~= &#039;&#039; then             game = args[1] or &#039;&#039;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cosmicpe.me/index.php?title=Module:CLabel&amp;diff=7393&amp;oldid=prev"/>
		<updated>2026-03-08T17:19:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} local mArguments  function p.main(frame)     mArguments = require(&amp;#039;Module:Arguments&amp;#039;)     local args = mArguments.getArgs(frame)     return p._main(args) end  function p._main(args)     -- Get current frame for extensionTag     local frame = mw.getCurrentFrame()      -- Determine game parameter with fallbacks     local game = args.game     if not game or game == &amp;#039;&amp;#039; then         if args.chara and args.chara ~= &amp;#039;&amp;#039; then             game = args[1] or &amp;#039;&amp;#039;...&amp;quot;&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;
local mArguments&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
    local args = mArguments.getArgs(frame)&lt;br /&gt;
    return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
    -- Get current frame for extensionTag&lt;br /&gt;
    local frame = mw.getCurrentFrame()&lt;br /&gt;
&lt;br /&gt;
    -- Determine game parameter with fallbacks&lt;br /&gt;
    local game = args.game&lt;br /&gt;
    if not game or game == &amp;#039;&amp;#039; then&lt;br /&gt;
        if args.chara and args.chara ~= &amp;#039;&amp;#039; then&lt;br /&gt;
            game = args[1] or &amp;#039;&amp;#039;&lt;br /&gt;
        else&lt;br /&gt;
            game = args[2] and args[1] or mw.title.getCurrentTitle().rootText&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Determine chara parameter with fallbacks&lt;br /&gt;
    local chara = args.chara&lt;br /&gt;
    if not chara or chara == &amp;#039;&amp;#039; then&lt;br /&gt;
        chara = args[2] or args[1] or mw.title.getCurrentTitle():getText():match(&amp;quot;/([^/]+)$&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Generate link&lt;br /&gt;
    local link = &amp;#039;&amp;#039;&lt;br /&gt;
    if args.linkOverride or args.link then&lt;br /&gt;
        local linkVal = args.linkOverride or args.link&lt;br /&gt;
        if linkVal ~= &amp;#039;none&amp;#039; and linkVal ~= &amp;#039;&amp;#039; then&lt;br /&gt;
            if linkVal == &amp;#039;auto&amp;#039; then&lt;br /&gt;
                link = game .. &amp;#039;/&amp;#039; .. chara&lt;br /&gt;
            else&lt;br /&gt;
                link = linkVal:gsub(&amp;#039;:&amp;#039;, &amp;#039;&amp;amp;#58;&amp;#039;)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        link = game .. &amp;#039;/&amp;#039; .. chara&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Generate icon&lt;br /&gt;
	local iconFile = args.icon or game .. &amp;#039;_&amp;#039; .. chara .. &amp;#039;_Icon.png&amp;#039;&lt;br /&gt;
	local altText = &amp;#039;&amp;#039; &lt;br /&gt;
    if args.label == &amp;#039;none&amp;#039; then&lt;br /&gt;
        altText = chara&lt;br /&gt;
    end&lt;br /&gt;
    local size = args.size or &amp;#039;24px&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    -- Build HTML using mw.html with classes&lt;br /&gt;
    local root = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;clabel-container&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    if args.label == &amp;#039;none&amp;#039; then&lt;br /&gt;
        root:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel&amp;#039;)&lt;br /&gt;
            :wikitext(&amp;#039;[[File:&amp;#039; .. iconFile .. &amp;#039;|link=&amp;#039; .. link .. &amp;#039;|x&amp;#039; .. size .. &amp;#039;|alt=&amp;#039; .. altText .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
            :done()&lt;br /&gt;
    else&lt;br /&gt;
        root:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel&amp;#039;)&lt;br /&gt;
            :wikitext(&amp;#039;[[File:&amp;#039; .. iconFile .. &amp;#039;|link=&amp;#039; .. link .. &amp;#039;|x&amp;#039; .. size .. &amp;#039;|alt=&amp;#039; .. altText .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
            :done()&lt;br /&gt;
        :tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-invisible-space&amp;#039;)&lt;br /&gt;
            :wikitext(&amp;#039; &amp;#039;)&lt;br /&gt;
            :done()&lt;br /&gt;
        :tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-text&amp;#039;)&lt;br /&gt;
            :wikitext(p.formatText(args, chara, link))&lt;br /&gt;
            :done()&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.formatText(args, chara, link)&lt;br /&gt;
    local labelText = args.label or chara&lt;br /&gt;
    local formattedText = &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    if args.format == &amp;#039;none&amp;#039; then&lt;br /&gt;
        formattedText = labelText&lt;br /&gt;
    elseif args.format == &amp;#039;italic&amp;#039; then&lt;br /&gt;
        formattedText = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-italic&amp;#039;)&lt;br /&gt;
            :wikitext(labelText)&lt;br /&gt;
            :done()&lt;br /&gt;
    elseif args.format == &amp;#039;bold&amp;#039; then&lt;br /&gt;
        formattedText = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-bold&amp;#039;)&lt;br /&gt;
            :wikitext(labelText)&lt;br /&gt;
            :done()&lt;br /&gt;
    elseif args.format == &amp;#039;italicbold&amp;#039; or args.format == &amp;#039;bolditalic&amp;#039; then&lt;br /&gt;
        formattedText = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-bold&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-italic&amp;#039;)&lt;br /&gt;
            :wikitext(labelText)&lt;br /&gt;
            :done()&lt;br /&gt;
    else&lt;br /&gt;
        -- Default to semi-bold&lt;br /&gt;
        formattedText = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;clabel-semi-bold&amp;#039;)&lt;br /&gt;
            :wikitext(labelText)&lt;br /&gt;
            :done()&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if link ~= &amp;#039;&amp;#039; then&lt;br /&gt;
        return &amp;#039;[[&amp;#039; .. link .. &amp;#039;|&amp;#039; .. tostring(formattedText) .. &amp;#039;]]&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return tostring(formattedText)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Muqsit</name></author>
	</entry>
</feed>