Template:VisualDataPrint: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(7 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!!
A parser function to print article-related data
Parameter | Description | Type | Status | |
---|---|---|---|---|
schema | schema |
| String | required |
separator | separator |
| String | optional |
values-separator | values-separator |
| String | optional |
template | template |
| String | optional |
module | module |
| String | optional |
limit | limit |
| Number | optional |
offset | offset |
| Number | optional |
order | order |
| String | optional |
format | format |
| String | required |
pagetitle | pagetitle |
| String | optional |