יחידה:ParamValidator: הבדלים בין גרסאות בדף
מ לפעמים '-' הוא פרמטר חוקי, ולפעמים הוא בא במקום של פרמטר חובה, וגורם בעיות. יש למצוא פתרון אחר (ראה שימוש ב{{אם מכיל אחד מ}} ב{{גאוגרפיה של מדינה}} |
ניסוי, ניסוי |
||
| שורה 278: | שורה 278: | ||
-- this is the "user" version, called with {{#invoke:}} returns a string, as defined by the options parameter | -- this is the "user" version, called with {{#invoke:}} returns a string, as defined by the options parameter | ||
function validateParams( frame ) | function validateParams( frame ) | ||
-- for purple pages: | |||
if frame.args['skip parameters validation'] then return '' end | |||
local options, report, template_name = util.extract_options( frame ), '', frame:getParent():getTitle() | local options, report, template_name = util.extract_options( frame ), '', frame:getParent():getTitle() | ||