תבנית:Graph:Lines – הבדלי גרסאות

נוספו 286 בתים ,  לפני 5 שנים
אין תקציר עריכה
אין תקציר עריכה
אין תקציר עריכה
<includeonly>{{#tag:{{#if:{{{debug|}}}|syntaxhighlight|graph}}|</includeonly><noinclude>{{documentation}}<!--syntaxhighlight lang=html><graph></syntaxhighlight>{{#tag:syntaxhighlight|</noinclude>
Insert /doc page if available, otherwise insert itself-->{{#ifexist:{{FULLPAGENAME}}/doc|{{documentation}}|{{ :{{FULLPAGENAME}}}}}}<syntaxhighlight lang=html><graph></syntaxhighlight>{{#tag:syntaxhighlight|</noinclude>
{
//
"data": [{
"name": "chart",
 
"url": "tabular:///{{{table|}}}",
{{#switch: {{{tabletype|tab}}}
"format": {"type": "json", "property": "data"
|tab= "url": "tabular:///{{{table|}}}",
|query= "url": "wikidatasparql:///?query={{{table}}}",
}}
"format": {"type": "json", "property": "data"
{{#ifeq:{{{tabletype|tab}}}|tab|
, "property": "data"
}}
{{#ifeq:{{{type|}}}|time|
, "parse": {"{{{xField}}}": "date"}
}}
},
{"type": "fold", "fields": [{{{series|}}}]}
]
},
{{#ifeq: {{{tabletype|tab}}} | tab |
{
"name": "labels",
"url": "tabular:///{{{table|}}}",
"format": {"type": "json", "property": "schema.fields"}
}],
}}
],
"scales": [
{
"name": "labels",
"type": "ordinal",
{{#ifeq: {{{tabletype|tab}}} | tab
| "domain": {"data": "labels", "field": "name"},
"range": {"data": "labels", "field": "title"},
| "domain": [{{{series|}}}],
"range": [{{{series|}}}],
}}
}
],
}
<includeonly>}}
<small>{{#switch: {{{tabletype|tab}}}
<small>|tab= See or edit [[{{#ifeq:{{SITENAME}}|Wikimedia Commons||commons:}}data:{{{table}}}|raw graph data]].</small>
|query= See [https://query.wikidata.org/#{{{table}}} source Wikidata query].
}}</small>
</includeonly><noinclude>|lang=javascript}}<syntaxhighlight lang=html></graph></syntaxhighlight></noinclude>