Template:VisualDataPrint: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 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 =  
|pagetitle-name =
|articleid-name =
}}
}}
</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": "show/hide pagetitle",
            "type": "boolean",
            "required": false,
            "default": "1",
            "example": ""
        },
        "pagetitle-name": {
            "label": "pagetitle-name",
            "description": "",
            "type": "string",
            "required": false,
            "default": "pagetitle",
            "example": ""
        },
        "articleid-name": {
            "label": "articleid-name",
             "description": "",
             "description": "",
             "type": "string",
             "type": "string",
             "required": false,
             "required": false,
             "default": "articleid",
             "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|1}}}|pagetitle-name = {{{pagetitle-name|pagetitle}}}|articleid-name = {{{articleid-name|articleid}}} }}
<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

Template parameters

ParameterDescriptionTypeStatus
schemaschema

Default
Example
Stringrequired
separatorseparator

Default
Example
Stringoptional
values-separatorvalues-separator

Default
,
Example
Stringoptional
templatetemplate

Default
Example
Stringoptional
modulemodule

Default
Example
Stringoptional
limitlimit

Default
100
Example
Numberoptional
offsetoffset

Default
0
Example
Numberoptional
orderorder

Default
Example
Stringoptional
formatformat

Default
Example
Stringrequired
pagetitlepagetitle

Default
page title
Example
Stringoptional