Module:Lang: Difference between revisions

No edit summary
Fixed issue with coloring of spirit icon
Line 38: Line 38:
     if not text or type(text) ~= "string" then return text end
     if not text or type(text) ~= "string" then return text end


     text = text:gsub("{g:citadel_inline_attribute:'SpiritDamage'}",  
     text = text:gsub("{g:citadel_inline_attribute:'SpiritDamage'}", "{{Monster_Domosed/Sandbox|color=purple}}" .. ' <span style="color:#bc8ee8;">spirit damage</span>')
        frame:preprocess("{{Monster_Domosed/Sandbox|icon=AttributeIconTechShieldHealth.png|link=Spirit Damage|size=12px}}") ..  
        ' <span style="color:#bc8ee8;">spirit damage</span>')


     text = text:gsub('<span class="highlight">(.-)</span>', "'''%1'''")
     text = text:gsub('<span class="highlight">(.-)</span>', "'''%1'''")
Line 46: Line 44:
     text = text:gsub('<span class=".-">(.-)</span>', '%1')
     text = text:gsub('<span class=".-">(.-)</span>', '%1')


     return text
     return frame:preprocess(text)
end
end