Latest revision |
Your text |
Line 1: |
Line 1: |
|
| | |
| {{#visualdataform: City | | {{#visualdataform: City |
| |title = Add City | | |title = Add City |
| |action = create | | |action = create |
Line 12: |
Line 12: |
| |edit-categories = false | | |edit-categories = false |
| |edit-content-model = false | | |edit-content-model = false |
| |target-slot = jsondata | | |target-slot_ = main |
| |default-categories = | | |default-categories = |
| |default-content-model = wikitext | | |default-content-model = wikitext |
| |layout-align = top | | |layout-align = top |
| |popup-help = false | | |popup-help = true |
| |submit-button-text = | | |submit-button-text = |
| |layout = tabs | | |layout = tabs |
Line 23: |
Line 23: |
| }} | | }} |
|
| |
|
| All cities: | | All citiies: |
|
| |
|
| {{#visualdataquery: [[city::+]] | | {{#visualdataquery: [[city::+]] |
Line 31: |
Line 31: |
| |?population | | |?population |
| |format=table | | |format=table |
| |order=population desc
| | |limit=100 |
| |limit=20 | |
| }} | | }} |
| | | |
Line 46: |
Line 45: |
| --> | | --> |
|
| |
|
| The following table uses (in the first column) the printout template [[Template:Link to country]] to perform a join with the "Country article" schema. | | The following table uses the printout template [[Template:Link to country]] to perform a join with the "Country article" schema |
| | |
| The column "city" is the actual subject of the query, whose link is still retrieved using a template, but without an additional query.
| |
|
| |
|
| {{#visualdataquery: [[city::+]][[population::> 3000000]] | | {{#visualdataquery: [[city::+]][[population::> 3000000]] |
Line 56: |
Line 53: |
| |?population | | |?population |
| |template?country=Link to country | | |template?country=Link to country |
| |template?city=Link to city
| |
| |pagetitle=false | | |pagetitle=false |
| |order=population desc
| |
| |format=table | | |format=table |
| |limit=100 | | |limit=100 |
| }} | | }} |
|
| |
|
| |
|
| |
| == See also ==
| |
|
| |
| {{Demo VisualData footer}}
| |
Line 1: |
Line 1: |
| { | | {} |
| "categories": [
| |
| "A"
| |
| ]
| |
| } | |