Πρότυπο:Graph:Lines: Διαφορά μεταξύ των αναθεωρήσεων

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
μ Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html].
Χωρίς σύνοψη επεξεργασίας
Γραμμή 1:
<includeonly>{{#tag:{{#if:{{{debug|}}}|syntaxhighlight|graph}}|</includeonly><noinclude>{{documentation}}<syntaxhighlight lang="html"><graph mode="interactive" title=""></syntaxhighlight>{{#tag:syntaxhighlight|</noinclude>
{
//
Γραμμή 19:
 
{{#switch: {{{tabletype|tab}}}
|tab= "url": "tabular:///{{{table}}}",
|query= "url": "wikidatasparql:///?query={{urlencode:{{{table}}}|PATH}}",
}}
"format": {"type": "json"
Γραμμή 37:
| "datum.{{{xField}}}"
}}
},
, {"type": "sort", "by": ["_xfield"]},
{{#if:{{{series|}}}
| , {"type": "fold", "fields": [{{{series}}}]}
}}
{{#if:{{{replaceZerosWith|}}}
| , {"type": "formula", "field": "_yfield", "expr": "max(datum.{{#if:{{{series|}}}|value|{{{value|value}}}}}, {{{replaceZerosWith}}})" }
| , {"type": "formula", "field": "_yfield", "expr": "datum.{{#if:{{{series|}}}|value|{{{value|value}}}}}" }
}}
{{#ifeq:{{{yScale|}}}|log
| , {"type": "filter", "test": "datum._yfield != 0"}
}}
]
Γραμμή 67 ⟶ 74 :
{
"name": "y",
"type": "{{{yScale|linear}}}",
"range": "height",
"domain": {"data": "chart", "field": "{{{value|value}}}_yfield"},
{{#if:{{{yZero|}}}|"zero": {{{yZero}}},}}
{{#if:{{{yMin|}}}|"domainMin": {{{yMin}}},}}
Γραμμή 129 ⟶ 136 :
"properties": {
"enter": {
"y": {"scale": "y", "field": "{{{value|value}}}_yfield"},
"x": {"scale": "x", "field": "_xfield"},
"stroke": {"scale": "color", "field": "{{{group|key}}}"},
Γραμμή 164 ⟶ 171 :
|query= {{#invoke:TNT|msg|I18n/Template:Graphs.tab|source_wdqs|https://query.wikidata.org/#{{urlencode:{{{table}}}|PATH}}}}.
}}</small>
</includeonly><noinclude>|lang=javascript}}<syntaxhighlight lang="html"></graph></syntaxhighlight></noinclude>