יחידה:ParamValidator: הבדלים בין גרסאות בדף
מ תקלדה |
מ תקלדה |
||
| שורה 35: | שורה 35: | ||
it expects a parameter named "options", which contains the definition of the output. typically, it's used by placing something like so: | it expects a parameter named "options", which contains the definition of the output. typically, it's used by placing something like so: | ||
<includeonly>{{#invoke: | <includeonly>{{#invoke:ParamValidator | validateParams | options = {{PV default options}} }}</includeonly> | ||
at the top of the template (be mindful not to add extra spaces and newlines to the template). | at the top of the template (be mindful not to add extra spaces and newlines to the template). | ||
| שורה 91: | שורה 91: | ||
typically, this JSON structure will be placed in a separate template, and retrieved for the module-use as shown above. | typically, this JSON structure will be placed in a separate template, and retrieved for the module-use as shown above. | ||
<includeonly>{{#invoke: | <includeonly>{{#invoke:ParamValidator | validateParams | options = {{PV default options}} | options1 = {"key":"value"} }}</includeonly> | ||
"key" can override any of the options fields described above. | "key" can override any of the options fields described above. | ||