View source for Module:Person weight
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- This module implements [[Template:Infobox person/weight]]
local p = {}
local function clean_weight(s)
s = mw.ustring.gsub(s, 'kilogram', 'kg')
s = mw.ustring.gsub(s, 'kgs', 'kg')
s = mw.ustring.gsub(s, 'kg[%.,]', 'kg')
s = mw.ustring.gsub(s, 'pound', 'lb')
s = mw.ustring.gsub(s, 'lbs', 'lb')
s = mw.ustring.gsub(s, 'lb[%.,]', 'lb')
s = mw.ustring.gsub(s, 'stone', 'st')
s = mw.ustring.gsub(s, 'sts', 'st')
s = mw.ustring.gsub(s, 'st[%.,]', 'st')
s = mw.ustring.gsub(s, '%[%[kg%]%]s', '[[Kilogram|kg]]')
return s
end
000
1:0
Template used on this page:
Return to Module:Person weight.