Module:Italics: Difference between revisions
From Teriock
More actions
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] | ||
text = | if text == "0 lbs." then | ||
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