Template:Key Question Page: Difference between revisions

From AquaPedia Case Study Database
Jump to navigation Jump to search
[unchecked revision][pending revision]
Use conditional to only show SMW query when results exist
Fix SMW query: remove Has subobject::+ filter - Question property query automatically searches subobjects
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
''Key Question Categor(ies):[[Key Question Category::{{{Key Question Category|}}}]]''
''Key Question Categor(ies):[[Key Question Category::{{{Key Question Category|}}}]]''


{{#if:{{#ask:[[Has subobject::+]][[Question::{{SUBJECTPAGENAME}}]]|format=count}}
{{#ask:[[Question::{{SUBJECTPAGENAME}}]] |mainlabel=-
{{#ask:[[Has subobject::+]][[Question::{{SUBJECTPAGENAME}}]]
| mainlabel=-
  | ?Case Study
  | ?Case Study
  | ?Answer#
  | ?Answer#
Line 19: Line 17:
  | sep= 
  | sep= 
  | intro=
  | intro=
  | default=
  | default=No case studies currently include this question.
  | template=Case and Answer
  | template=Case and Answer
}}
}}  
{{#if:}}


[[Category:Key Question]]
[[Category:Key Question]]
__NOTOC__
__NOTOC__
</includeonly>
</includeonly>

Latest revision as of 11:44, 6 December 2025

This is the "Key Question Page" template. It should be called in the following format:

{{Key Question Page
|Key Question Category=
}}

Edit the page to see the template text.