Editing Module:Param Parse
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 6: | Line 6: | ||
local Infobox = require('Module:Infobox') |
local Infobox = require('Module:Infobox') |
||
local currency = require('Module:Currency').parse |
local currency = require('Module:Currency').parse |
||
local editbutton = require('Module:Edit button') |
|||
local edit = editbutton("'''?''' (edit)") |
|||
local parse = {} |
local parse = {} |
||
Line 310: | Line 308: | ||
category_incomplete = 'Needs release date', |
category_incomplete = 'Needs release date', |
||
smw_property = 'Release Date', |
smw_property = 'Release Date', |
||
smw_func = parse.release_smw, |
|||
} |
|||
parse.removal = { |
|||
name = 'removal', |
|||
func = parse.release_func, |
|||
smw_property = 'Removal Date', |
|||
smw_func = parse.release_smw, |
smw_func = parse.release_smw, |
||
} |
} |
||
Line 526: | Line 518: | ||
['item'] = 'Item', |
['item'] = 'Item', |
||
['monster'] = 'Monster', |
['monster'] = 'Monster', |
||
['skill node'] = 'Skill node' |
['skill node'] = 'Skill node' |
||
['venture'] = 'Venture' |
|||
} |
} |
||
function parse.variant_type_func(type) |
function parse.variant_type_func(type) |
||
local valid_type = valid_variant_types[string.lower(type or '')] |
local valid_type = valid_variant_types[string.lower(type or '')] |
||
if valid_type then |
if valid_type then |
||
return valid_type..'[[Category:'..valid_type..' |
return valid_type..'[[Category:'..valid_type..' variant]]' |
||
else |
else |
||
return |
return '[[Category:Invalid variant type]]' |
||
end |
end |
||
return nil |
return nil |
||
Line 817: | Line 808: | ||
func = parse.has_content, |
func = parse.has_content, |
||
smw_property = 'Slot', |
smw_property = 'Slot', |
||
} |
|||
-- Event predecessor |
|||
parse.predecessor = { |
|||
name = 'predecessor', |
|||
func = parse.has_content |
|||
} |
|||
-- Event successor |
|||
parse.successor = { |
|||
name = 'successor', |
|||
func = parse.has_content |
|||
} |
} |
||