Changes
Jump to navigation
Jump to search
Template:Graph:Stacked/doc (view source)
Revision as of 20:45, 15 January 2017
, 20:45, 15 January 2017no edit summary
{{documentation subpage}}
'''This graph's main version resides at [https://www.mediawiki.org/wiki/Template:Graph:Stacked Template:Graph:Stacked]. Please make or suggest all the changes there, and copy it everywhere else (until the copying is automated)'''
{| class="wikitable"
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| table=Bea.gov/GDP by state.tab<br>
| type=year | xField=year | barwidth=14<br>
| series="TX","NY","CA"<br>
| title=Per state GDP<br>
<nowiki>}}</nowiki>
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| table=Bea.gov/GDP by state.tab<br>
| type=year | xField=year | legend=States<br>
| series="TX","NY","CA"<br>
| title=Per state GDP<br>
<nowiki>}}</nowiki>
|-
| {{{{BASEPAGENAME}}
| table=Bea.gov/GDP by state.tab
| type=year
| xField=year
| barwidth=14
| series="TX","NY","CA"
| title=Per state GDP
}}
| {{{{BASEPAGENAME}}
| table=Bea.gov/GDP by state.tab
| type=year
| xField=year
| series="TX","NY","CA"
| title=Per state GDP
| legend=States
}}
|-
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| tabletype=query | table=<pre>
SELECT ?decade (COUNT(?decade) AS ?count) WHERE {
?item wdt:P31 wd:Q3305213 .
?item wdt:P571 ?inception .
BIND( year(?inception) as ?year ).
BIND( ROUND(?year/10)*10 as ?decade ) .
FILTER( ?year > 1400)
} GROUP BY ?decade ORDER BY ?decade
</pre>
| series="count" | type=year | xField=decade<br>
| title=Paintings by decade<br>
<nowiki>}}</nowiki>
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| tabletype=query | table=<pre>
SELECT ?year (COUNT(?_genre) AS ?count ) (SAMPLE(?_genreLabel) AS ?label ) WHERE {
?item wdt:P31 wd:Q11424.
?item wdt:P577 ?_publication_date.
?item wdt:P136 ?_genre.
?_genre rdfs:label ?_genreLabel.
BIND(str(YEAR(?_publication_date)) AS ?year)
FILTER((LANG(?_genreLabel)) = "en")
FILTER (?_publication_date >= "2000-00-00T00:00:00Z"^^xsd:dateTime)
}
GROUP BY ?_genreLabel ?year
HAVING (?count > 30)
</pre>
| type=year | xField=year | group=label | value=count | legend=- <br>
| title=Number of films by year and genre<br>
| xGrid=y | yGrid=y | colors="category20" | height=460 | barwidth=16<br>
<nowiki>}}</nowiki>
|-
| {{{{BASEPAGENAME}}
|tabletype=query
|table=
SELECT ?decade (COUNT(?decade) AS ?count) WHERE {
?item wdt:P31 wd:Q3305213 .
?item wdt:P571 ?inception .
BIND( year(?inception) as ?year ).
BIND( ROUND(?year/10)*10 as ?decade ) .
FILTER( ?year > 1400)
} GROUP BY ?decade ORDER BY ?decade
|series="count"
|type=year
|xField=decade
|title=Paintings by decade
}}
| {{{{BASEPAGENAME}}
| tabletype=query | table=
SELECT ?year (COUNT(?_genre) AS ?count ) (SAMPLE(?_genreLabel) AS ?label ) WHERE {
?item wdt:P31 wd:Q11424.
?item wdt:P577 ?_publication_date.
?item wdt:P136 ?_genre.
?_genre rdfs:label ?_genreLabel.
BIND(str(YEAR(?_publication_date)) AS ?year)
FILTER((LANG(?_genreLabel)) = "en")
FILTER (?_publication_date >= "2000-00-00T00:00:00Z"^^xsd:dateTime)
}
GROUP BY ?_genreLabel ?year
HAVING (?count > 30)
| type=year | xField=year | group=label | value=count | legend=-
| title=Number of films by year and genre
| xGrid=y | yGrid=y | colors="category20" | height=460 | barwidth=16
}}
|}
{{#invoke:TNT|doc|Graph:Stacked}}<!-- Translations are at https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Stacked.tab -->
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:Graph Template Collection]]
}}</includeonly>
'''This graph's main version resides at [https://www.mediawiki.org/wiki/Template:Graph:Stacked Template:Graph:Stacked]. Please make or suggest all the changes there, and copy it everywhere else (until the copying is automated)'''
{| class="wikitable"
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| table=Bea.gov/GDP by state.tab<br>
| type=year | xField=year | barwidth=14<br>
| series="TX","NY","CA"<br>
| title=Per state GDP<br>
<nowiki>}}</nowiki>
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| table=Bea.gov/GDP by state.tab<br>
| type=year | xField=year | legend=States<br>
| series="TX","NY","CA"<br>
| title=Per state GDP<br>
<nowiki>}}</nowiki>
|-
| {{{{BASEPAGENAME}}
| table=Bea.gov/GDP by state.tab
| type=year
| xField=year
| barwidth=14
| series="TX","NY","CA"
| title=Per state GDP
}}
| {{{{BASEPAGENAME}}
| table=Bea.gov/GDP by state.tab
| type=year
| xField=year
| series="TX","NY","CA"
| title=Per state GDP
| legend=States
}}
|-
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| tabletype=query | table=<pre>
SELECT ?decade (COUNT(?decade) AS ?count) WHERE {
?item wdt:P31 wd:Q3305213 .
?item wdt:P571 ?inception .
BIND( year(?inception) as ?year ).
BIND( ROUND(?year/10)*10 as ?decade ) .
FILTER( ?year > 1400)
} GROUP BY ?decade ORDER BY ?decade
</pre>
| series="count" | type=year | xField=decade<br>
| title=Paintings by decade<br>
<nowiki>}}</nowiki>
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
| tabletype=query | table=<pre>
SELECT ?year (COUNT(?_genre) AS ?count ) (SAMPLE(?_genreLabel) AS ?label ) WHERE {
?item wdt:P31 wd:Q11424.
?item wdt:P577 ?_publication_date.
?item wdt:P136 ?_genre.
?_genre rdfs:label ?_genreLabel.
BIND(str(YEAR(?_publication_date)) AS ?year)
FILTER((LANG(?_genreLabel)) = "en")
FILTER (?_publication_date >= "2000-00-00T00:00:00Z"^^xsd:dateTime)
}
GROUP BY ?_genreLabel ?year
HAVING (?count > 30)
</pre>
| type=year | xField=year | group=label | value=count | legend=- <br>
| title=Number of films by year and genre<br>
| xGrid=y | yGrid=y | colors="category20" | height=460 | barwidth=16<br>
<nowiki>}}</nowiki>
|-
| {{{{BASEPAGENAME}}
|tabletype=query
|table=
SELECT ?decade (COUNT(?decade) AS ?count) WHERE {
?item wdt:P31 wd:Q3305213 .
?item wdt:P571 ?inception .
BIND( year(?inception) as ?year ).
BIND( ROUND(?year/10)*10 as ?decade ) .
FILTER( ?year > 1400)
} GROUP BY ?decade ORDER BY ?decade
|series="count"
|type=year
|xField=decade
|title=Paintings by decade
}}
| {{{{BASEPAGENAME}}
| tabletype=query | table=
SELECT ?year (COUNT(?_genre) AS ?count ) (SAMPLE(?_genreLabel) AS ?label ) WHERE {
?item wdt:P31 wd:Q11424.
?item wdt:P577 ?_publication_date.
?item wdt:P136 ?_genre.
?_genre rdfs:label ?_genreLabel.
BIND(str(YEAR(?_publication_date)) AS ?year)
FILTER((LANG(?_genreLabel)) = "en")
FILTER (?_publication_date >= "2000-00-00T00:00:00Z"^^xsd:dateTime)
}
GROUP BY ?_genreLabel ?year
HAVING (?count > 30)
| type=year | xField=year | group=label | value=count | legend=-
| title=Number of films by year and genre
| xGrid=y | yGrid=y | colors="category20" | height=460 | barwidth=16
}}
|}
{{#invoke:TNT|doc|Graph:Stacked}}<!-- Translations are at https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Stacked.tab -->
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:Graph Template Collection]]
}}</includeonly>