Template:VisualDataPrint: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
|values-separator = | |values-separator = | ||
|template = | |template = | ||
|module = | |||
|limit = | |limit = | ||
|offset = | |offset = | ||
| Line 11: | Line 12: | ||
|format = | |format = | ||
|pagetitle = | |pagetitle = | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 47: | Line 46: | ||
"template": { | "template": { | ||
"label": "template", | "label": "template", | ||
"description": "", | |||
"type": "string", | |||
"required": false, | |||
"default": "", | |||
"example": "" | |||
}, | |||
"module": { | |||
"label": "module", | |||
"description": "", | "description": "", | ||
"type": "string", | "type": "string", | ||
| Line 87: | Line 94: | ||
"pagetitle": { | "pagetitle": { | ||
"label": "pagetitle", | "label": "pagetitle", | ||
"description": "", | "description": "", | ||
"type": "string", | "type": "string", | ||
"required": false, | "required": false, | ||
"default": " | "default": "page title", | ||
"example": "" | "example": "" | ||
} | } | ||
| Line 113: | Line 104: | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#visualdataprint:{{{schema}}}|separator = {{{separator|}}}|values-separator = {{{values-separator|, }}}|template = {{{template|}}}|limit = {{{limit|100}}}|offset = {{{offset|}}}|order = {{{order|}}}|format = {{{format|}}}|pagetitle = {{{pagetitle| | <includeonly>{{#visualdataprint:{{{schema}}}|separator = {{{separator|}}}|values-separator = {{{values-separator|, }}}|template = {{{template|}}}|module = {{{module|}}}|limit = {{{limit|100}}}|offset = {{{offset|}}}|order = {{{order|}}}|format = {{{format|}}}|pagetitle = {{{pagetitle|page title}}} }} | ||
</includeonly> | </includeonly> | ||
Latest revision as of 08:25, 16 August 2024
{{VisualDataPrint
|schema =
|separator =
|values-separator =
|template =
|module =
|limit =
|offset =
|order =
|format =
|pagetitle =
}}
Attention! VisualEditor won't handle the template correctly if it contains new lines!! <templatedata> {
"description": "A parser function to print article-related data",
"params": {
"schema": {
"label": "schema",
"description": "",
"type": "string",
"required": true,
"default": "",
"example": ""
},
"separator": {
"label": "separator",
"description": "",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"values-separator": {
"label": "values-separator",
"description": "",
"type": "string",
"required": false,
"default": ", ",
"example": ""
},
"template": {
"label": "template",
"description": "",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"module": {
"label": "module",
"description": "",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"limit": {
"label": "limit",
"description": "",
"type": "number",
"required": false,
"default": "100",
"example": ""
},
"offset": {
"label": "offset",
"description": "",
"type": "number",
"required": false,
"default": "0",
"example": ""
},
"order": {
"label": "order",
"description": "",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"format": {
"label": "format",
"description": "",
"type": "string",
"required": true,
"default": "",
"example": ""
},
"pagetitle": {
"label": "pagetitle",
"description": "",
"type": "string",
"required": false,
"default": "page title",
"example": ""
}
}
} </templatedata>