Difference between revisions of "Template:ProjectProposalByResArea"

From AIRWiki
Jump to: navigation, search
Line 9: Line 9:
 
</noinclude>
 
</noinclude>
  
<includeonly>{{#if: {{#ask: [[Category:ProjectProposal]] [[PrjResArea::{{{1}}}]][[PrjStatus::Active]]}} |  
+
<includeonly>{{#if: {{#ask: [[Category:ProjectProposal]] [[PrjResArea::{{{1}}}]][[PrjStatus::Active]]}} | ===== {{{1}}} =====  
===== {{{1}}} =====  
+
  
 
{{#ask: [[Category:ProjectProposal]] [[PrjResArea::{{{1}}}]][[PrjStatus::Active]]
 
{{#ask: [[Category:ProjectProposal]] [[PrjResArea::{{{1}}}]][[PrjStatus::Active]]
Line 26: Line 25:
 
| format = template
 
| format = template
 
| template = ProjectProposalViz
 
| template = ProjectProposalViz
}}}}</includeonly>
+
}} | <!-- {{{1}}} -->
 +
}}</includeonly>

Revision as of 21:24, 6 January 2015

This template takes as first input a Research Area and returns a paragraph with title that Area and containing all the ProjectProposal belonging to that Area, visualizing it with the Template:ProjectProposalViz. It can be used to dynamically generate list of ProjectProposal grouped by their Research Area, with the following query:

   {{#ask: [[Category:Research Area]]|format=template|template=ProjectProposalByResArea}}

Pay attention to the missing newline after <includeonly> tag, is by design to avoid unnecessary newlines.