Editing Module:Infobox/doc
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 28: | Line 28: | ||
===Map your arguments to parsing functions=== |
===Map your arguments to parsing functions=== |
||
{{Main|Module:Param Parse}} |
{{Main|Module:Param Parse}} |
||
Use the |
Use the functions in [[Module:Param Parse]] to validate and format the data. |
||
<syntaxhighlight lang="lua"> |
<syntaxhighlight lang="lua"> |
||
local params = { |
local params = { |
||
{name = 'name', func = parse.has_content, smw_property = 'Name'}, |
|||
parse.name, |
|||
{name = 'image', func = parse.image, smw_property = 'Image', smw_func = parse.image_smw, category_incomplete = 'Scenery missing Image'}, |
|||
parse.image, |
|||
{name = 'examine', func = parse.has_content |
{name = 'examine', func = parse.has_content}, |
||
{name = 'episode', func = parse.episode, smw_property = 'Episode', smw_func = parse.episode_smw, category_incomplete = 'Scenery missing Episode'}, |
|||
parse.episode, |
|||
... |
... |
||
} |
} |