Template:Key Question Page: Difference between revisions

From AquaPedia Case Study Database
Jump to navigation Jump to search
[unchecked revision][checked revision]
Use conditional to only show SMW query when results exist
Remove SMW query to allow manual content display without default message
Line 10: Line 10:
</noinclude><includeonly>
</noinclude><includeonly>
''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:[[Has subobject::+]][[Question::{{SUBJECTPAGENAME}}]]
| mainlabel=-
| ?Case Study
| ?Answer#
| format=list
| sep=&#32;
| intro=
| default=
| template=Case and Answer
}}
{{#if:}}


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

Revision as of 19:46, 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.