Template

CourseQuery: Difference between revisions

(update query to include categories)
(added variable)
 
Line 6: Line 6:
WHERE {
WHERE {
{
{
   BIND (wd:Q468 as ?course).  
   BIND (wd:{{{item|Q468}}} as ?course).  
   ?course wdt:P14 ?category.
   ?course wdt:P14 ?category.
   Minus {?category wdt:P3 wd:Q427}
   Minus {?category wdt:P3 wd:Q427}

Latest revision as of 15:07, 22 November 2023

All dependencies for the course Q468



Usage

Simple:

{{CourseQuery|item=Q468}}


Use with PageForms:

{{Special:RunQuery/CourseQuery}}

or

{{#queryformlink:form=CourseQuery|link text=Run|link type=button|tooltip=All items and their links}}