Nested Schemas and Templates Example: Difference between revisions
Jump to navigation
Jump to search
m Filburt moved page User:Filburt/Nested Schemas and Templates Example to User:Filburt/Nested Schemas and Templates Example |
No edit summary |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==== VisualData schemas ==== | |||
* [[VisualDataSchema:School_district]] | |||
* [[VisualDataSchema:School]] | |||
* [[VisualDataSchema:School_class]] | |||
==== Nested Templates ==== | |||
* [[Template:School_district]] | |||
** [[Template:School]] | |||
*** [[Template:School_class]] | |||
== Output == | |||
{{#querylink:User:Filburt/Nested_Schemas_and_Templates_Example|Purge Page Cache|action=purge}} | |||
<div style="max-width: 1000px; margin: 0 auto; "> | |||
<div style="margin-bottom: 10px"> | <div style="margin-bottom: 10px"> | ||
{{#visualdataform: School district | {{#visualdataform: School district | ||
Line 4: | Line 20: | ||
|action = create | |action = create | ||
|edit-page = | |edit-page = | ||
|return-page = | |return-page = {{FULLPAGENAME}} | ||
|view = popup | |view = popup | ||
|popup-size = | |popup-size = medium | ||
|css-class = | |css-class = | ||
|pagename-formula = < | |pagename-formula = school_district/<id increment> | ||
|edit-freetext = false | |edit-freetext = false | ||
|edit-categories = false | |edit-categories = false | ||
Line 19: | Line 35: | ||
|preload-data = | |preload-data = | ||
|layout-align = top | |layout-align = top | ||
|popup-help = | |popup-help = false | ||
|submit-button-text = | |submit-button-text = | ||
|layout = | |layout = | ||
Line 27: | Line 43: | ||
</div> | </div> | ||
{{#visualdataquery:[[ | {{#visualdataquery:[[name::+]] | ||
|?articleid | |||
|?name | |?name | ||
|?school district manager | |?school district manager | ||
|schema = School district | |schema = School district | ||
|format = template | |format = template | ||
|template=school district | |template=school district | ||
}} | }} | ||
</div> | |||
__NOTOC__ __NOEDITSECTION__ | __NOTOC__ __NOEDITSECTION__ |
Latest revision as of 11:21, 17 September 2024
VisualData schemas
Nested Templates
Output
form is loading...
School District: district b
- School district manager: district a manager
(articleid: 1885)
form is loading...
form is loading...
School: school a
- School principal: school a principal
- No. of pupils: 230
(belongs to: 1885) (articleid: 1886)
form is loading...
form is loading...
Class: class a school a
- Teacher: class a school a teacher a
(belongs to: 1886) (articleid: 1887)
form is loading...
School: School b
- School principal: Principal of school b
- No. of pupils: 180
(belongs to: 1885) (articleid: 1888)
form is loading...
form is loading...
Class: Class of school b
- Teacher: Teacher of school b
(belongs to: 1888) (articleid: 1889)
form is loading...