Editing Module:Param Parse

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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..' variants]]'
return valid_type..'[[Category:'..valid_type..' variant]]'
else
else
return edit..'[[Category:Invalid variant type]]'
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
}
}


Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

This page is a member of a hidden category: