Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Italics: Difference between revisions

From Teriock
Content deleted Content added
No edit summary
// via Wikitext Extension for VSCode
 
Line 4: Line 4:
local args = frame.args
local args = frame.args
local text = args[1]
local text = args[1]
if text == "0 lbs." then
text = text:gsub("Hand", "''Hand''"):gsub("Mouth", "''Mouth''"):gsub("0 lbs.", "''0 lbs.''")
text = "''0 lbs.''"
end
return frame:preprocess( text )
return frame:preprocess( text )
end
end

Latest revision as of 00:25, 9 February 2025

Documentation for this module may be created at Module:Italics/doc

local p = {}

function p.i ( frame )
	local args = frame.args
	local text = args[1]
	if text == "0 lbs." then
        text = "''0 lbs.''"
    end
	return frame:preprocess( text )
end

return p