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
Created page with "local p function p.i ( frame ) local args = frame.args local text = args[1] text = text:gsub("Hand", "''Hand''"):gsub("Mouth", "''Mouth''") return frame:preprocess( text ) end"
 
// via Wikitext Extension for VSCode
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p
local p = {}


function p.i ( frame )
function p.i ( frame )
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''")
text = "''0 lbs.''"
end
return frame:preprocess( text )
return frame:preprocess( text )
end
end

return p

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