יחידה:ParamValidator: הבדלים בין גרסאות בדף
אופסי |
docu |
||
| שורה 1: | שורה 1: | ||
--[[ | --[=[ | ||
This module is based on idea and original code of [[User:IKhitron]]. | |||
it exports a single function: validateParams, which expects a frame object | |||
it retrieves the template's templatedata, and uses it to validate the parameters passed to the template. | it retrieves the template's templatedata, and uses it to validate the parameters passed to the template. | ||
| שורה 42: | שורה 48: | ||
the appropriate one for the "options" parameter. | the appropriate one for the "options" parameter. | ||
]] | ]=] | ||
function extract_options( frame ) | function extract_options( frame ) | ||