TemplateFunc
From CODECS: Online Database and e-Resources for Celtic Studies
This extension has not been released yet.
Parameters
{ "name": "tf-convert", "parameters": { "page": { "description": "The wiki page to serve as the data source. Supports use of the magic word `{{FULLPAGENAME}}`.", "required": true }, "slot": { "description": "Name of the content slot role (mediawiki.org/wiki/Manual:Slot). Defaults to the main slot.", "default": "main", "required": false }, "sourceformat": { "description": "The data format of the wiki page: `template`, `json`, or `raw`.", "options": { "template": "", "json": "", "raw": "Get the unprocessed source code" }, "default": "template" }, "sourcetemplate": { "description": "Used only if `sourceformat=template`. The template containing your data. To select an embedded multiple-instance template, you can use an expression in the format `ParentTemplate[parametername].ChildTemplate`, for instance `Recipe[Ingredients].Ingredient`, where `Ingredient` is the multiple-instance child template." }, "sourcenode": { "description": "Used only if `sourceformat=json`. The node to get the data from. Defaults to the root node.", "default": "" }, "targettemplate": { "description": "Name of the wiki template (without Template namespace prefix) to pass the data to." }, "targetwidget": { "description": "Name of the widget (without Widget namespace prefix) to pass the data to." }, "targetmodule": { "description": "Name of the Lua module (without Module namespace prefix) to pass the data to." }, "targetmustache": { "description": "Name of the Mustache template to pass the data to." }, "targetmustachedir": { "description": "Directory on the server containing the Mustache templates." }, "target": { "description": "Can be set to `raw` to transfer code verbatim, especially for use in form inputs.", "default": null }, "data": { "description": "Map the parameter names of the source code to parameters of the target, e.g. `sourceparam1=targetparam1, sourceparam2=targetparam2`. Use `data=all` (default) to map all parameters verbatim.", "default": "all" }, "indexname": { "description": "What to name the index parameter in the target.", "default": "index" }, "userparam*": { "description": "Multiple user parameters beginning with `userparam` and a string or number attached to it, e.g. `userparam1`, `userparam2`, etc." }, "mode": { "description": "Not normally used but can be set to `raw` to produce unparsed content, which can be useful for debugging purposes. Experimentally supports `lazy` for loading content lazily.", "options": { "normal": "", "raw": "", "lazy": "" }, "default": "normal" }, "action": { "description": "@todo. Self-documentation." } } }