Template:Key Question Page: Difference between revisions

From AquaPedia Case Study Database
Jump to navigation Jump to search
Hide SMW query default message completely
Use conditional to only show SMW query when results exist
Line 11: Line 11:
''Key Question Categor(ies):[[Key Question Category::{{{Key Question Category|}}}]]''
''Key Question Categor(ies):[[Key Question Category::{{{Key Question Category|}}}]]''


<includeonly>{{#ask:[[Has subobject::+]][[Question::{{SUBJECTPAGENAME}}]]
{{#if:{{#ask:[[Has subobject::+]][[Question::{{SUBJECTPAGENAME}}]]|format=count}}
{{#ask:[[Has subobject::+]][[Question::{{SUBJECTPAGENAME}}]]
  | mainlabel=-
  | mainlabel=-
  | ?Case Study
  | ?Case Study
Line 20: Line 21:
  | default=
  | default=
  | template=Case and Answer
  | template=Case and Answer
}}</includeonly>
}}
{{#if:}}


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

Revision as of 20:45, 4 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.