Changes

Jump to navigation Jump to search
no edit summary
{{documentation subpage}}
{{warning|As of 4 October 2019 (and since early July 2019 at least), the graph extension no longer works when linked to a wikidata query. Until a solution is found, this template should not be used in articles. See [https://phabricator.wikimedia.org/T226250 the Phabricator ticket] for more information.}}
This graph's main version resides at '''[https://www.mediawiki.org/wiki/Template:Graph:Lines Template:Graph:Lines].''' Please make or suggest all the changes there, and copy it everywhere else (until the copying is automated)

{|
| style="text-align: left;" |
<nowiki>{{</nowiki>{{BASEPAGENAME}}
&#124; table=bls.gov/US Women's weekly earnings as a percent of men's by age, annual averages.tab
&#124; type=year &#124; xField=year
&#124; series="age_16_24", "age_25_34", "age_35_44", "age_45_54"
&#124; title=Gender pay gap in the United States_
&#124; yZero=false &#124; xAxis=Year &#124; yAxis=Percentage &#124; yMax=100 &#124; yGrid=y &#124; legend=Age group
<nowiki>}}</nowiki>
|-
| {{{{BASEPAGENAME}}
| table=bls.gov/US Women's weekly earnings as a percent of men's by age, annual averages.tab
| type=year
| xField=year
| series="age_16_24", "age_25_34", "age_35_44", "age_45_54"
| yZero=false
| title=Gender pay gap in the United States
| xAxis=Year
| yAxis=Percentage
| yMax=100
| yGrid=y
| legend=Age group
}}
|-
|
----
|-
| style="text-align: left;" |
<nowiki>{{</nowiki>{{BASEPAGENAME}}
&#124; tabletype=query
&#124; table=
<source lang="sparql">
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
</source>
&#124; series="count" &#124; type=year &#124; xField=decade
&#124; title=Paintings by decade
<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
}}
|-
|
----
|-
| style="text-align: left;" | Wikidata query produces three columns - year, population size, and country name. This graph shows one line per country.
<nowiki>{{</nowiki>{{BASEPAGENAME}}
&#124; tabletype=query
&#124; table=
<source lang="sparql">
#Population of countries sharing a border with Germany
SELECT ?year ?population ?countryLabel
WHERE {
{
SELECT ?country ?year (AVG(?population) AS ?population) WHERE {
{
SELECT ?country (YEAR(?date) AS ?year) ?population WHERE {
?country wdt:P47 wd:Q183.
?country p:P1082 ?populationStatement.
?populationStatement ps:P1082 ?population.
?populationStatement pq:P585 ?date.
?country wdt:P31 wd:Q3624078.
}
}
}
GROUP BY ?country ?year
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}</source>
&#124; type=year &#124; xField=year &#124; group=countryLabel &#124; value=population
&#124; title=Population of countries bordering Germany
&#124; legend=- &#124; xGrid=y &#124; yGrid=y &#124; yTicks=7 &#124; width=600
<nowiki>}}</nowiki>
|-
| {{{{BASEPAGENAME}}
| tabletype=query
| table=
#Population of countries sharing a border with Germany
SELECT ?year ?population ?countryLabel WHERE {
{
SELECT ?country ?year (AVG(?population) AS ?population) WHERE {
{
SELECT ?country (YEAR(?date) AS ?year) ?population WHERE {
?country wdt:P47 wd:Q183.
?country p:P1082 ?populationStatement.
?populationStatement ps:P1082 ?population.
?populationStatement pq:P585 ?date.
?country wdt:P31 wd:Q3624078.
}
}
}
GROUP BY ?country ?year
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
| type=year | xField=year
| group=countryLabel | value=population
| title=Population of countries bordering Germany
| legend=- | xGrid=y | yGrid=y | yTicks=7 | width=600
}}
|}

{{#invoke:TNT|doc|Graph:Lines}}<!-- Translations are at https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab -->
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:Graph Template Collection]]
}}</includeonly>
Anonymous user

Navigation menu