Module:Param Parse: Difference between revisions

22 bytes added ,  Yesterday at 20:35
Append hours to duration param
(Remove examine)
(Append hours to duration param)
 
(2 intermediate revisions by 2 users not shown)
Line 142:
parse.description = {
name = 'description',
func = {name = parse.has_content, params = {Infobox.raw_param('description')}},
smw_property = 'Description',
category_incomplete = 'Needs description',
Line 400:
func = {name = parse.number_or_number_range_high, params = {Infobox.raw_param('profession_b_level')}},
smw_property = 'Profession Level B High',
 
parse.profession = {
name = 'profession',
func = parse.has_content,
category_incomplete = 'Needs profession',
smw_property = 'Profession' -- TODO - Need to create property page
}
 
Line 422 ⟶ 415:
smw_func = parse.yes_no_smw,
category_incomplete = 'Needs passiveness'
 
function parse.duration_func(hours)
hours = string.gsub(hours or '',',','')
return (tonumber(hours) .. " Hours")
end
 
parse.professionduration = {
name = 'professionduration',
func = parse.has_contentduration_func,
smw_property = 'Duration',
category_incomplete = 'Needs professionduration',
}
 
592

edits