Form

New User Page: Difference between revisions

m (adjust "user" namespace)
m (remove free text)
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
if a page with that name already exists, you will be sent to a form to edit that page.
if a page with that name already exists, you will be sent to a form to edit that page.


{{#forminput:form=New User Page|query string=namespace=User|autocomplete on category=Items|placeholder=your username}}
{{#forminput:form=New User Page|query string=namespace=User|placeholder=Max Mustermann|default value={{#username:your username}}}}


</noinclude><includeonly>
</noinclude><includeonly>
Line 11: Line 11:
{| class="formtable"
{| class="formtable"
! My GraphIT Item:  
! My GraphIT Item:  
| {{{field|Item|input type=text with autocomplete|placeholder=Q157|autocomplete from external data=student|description=studentLabel}}}
| {{{field|Item|input type=combobox|placeholder=Q157|values from external data=qid|description=description_student}}}
|}
|}
{{{end template}}}
{{{end template}}}


'''Free text:'''
</includeonly>


{{{standard input|free text|rows=10}}}
{{#get_web_data:url=http://query.graphit.ur.de/proxy/wdqs/bigdata/namespace/wdq/sparql?query=%23defaultView%3ATable%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fgraphit.ur.de%2Fentity%2F%3E%0APREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fgraphit.ur.de%2Fprop%2Fdirect%2F%3E%0ASELECT%20%3Fstudent%20%3FstudentLabel%20%3Fqid%0AWHERE%20%7B%0A%20%20%3Fstudent%20wdt%3AP3%20wd%3AQ167.%0A%20%20MINUS%20%7B%3Fstudent%20a%20wikibase%3AProperty%7D.%0A%20%20BIND(STRAFTER(STR(%3Fstudent)%2C%20STR(wd%3A))%20AS%20%3Fqid)%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%20ORDER%20BY%20DESC(%3Fqid)%20LIMIT%2010%0A&format=json
</includeonly>
|format=json
|use jsonpath
|data=student=$.results.bindings[*].student.value,
description_student=$.results.bindings[*].studentLabel.value,
qid=$.results.bindings[*].qid.value,
}}


<noinclude>
<noinclude>
{{Note|type=info|text= Make a external_data_query for all students, then do: values from external data=student|description=studentLabel for My GraphIT Item:}}


{{#get_web_data:
 
 
</noinclude>
</noinclude>

Latest revision as of 08:17, 20 December 2023

This is the "New User Page" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.