Difference between revisions of "Template:ProjectProposalByResArea"
From AIRWiki
DavideTateo (Talk | contribs) |
|||
(41 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | == {{{1}}} == | + | <noinclude> |
− | {{#ask: [[Category:ProjectProposal]] | + | This template takes as first input a [[:Category:Research Area|Research Area]] and returns a paragraph with title that Area and containing all the [[:Category:ProjectProposal| ProjectProposal]] belonging to that Area, visualizing it with the [[Template:ProjectProposalViz]]. |
− | [[PrjResArea::{{{1}}}]] | + | It can be used to dynamically generate list of [[:Category:ProjectProposal|ProjectProposal]] grouped by their [[:Category:Research Area|Research Area]], with the following query: |
− | ?PrjTitle | + | <pre><nowiki> |
− | ?PrjImage | + | {{#ask: [[Category:Research Area]]|format=template|template=ProjectProposalByResArea}} |
− | ?PrjDescription | + | </nowiki></pre> |
− | ?PrjTutor | + | |
− | ?PrjStarts | + | Pay attention to the missing newline after <nowiki><includeonly></nowiki> tag, is by design to avoid unnecessary newlines. |
− | ?PrjStudMin | + | </noinclude> |
− | ?PrjStudMax | + | |
− | ?PrjCFUMin | + | <includeonly>{{#if: {{#ask: [[Category:ProjectProposal]] [[PrjResArea::{{{1}}}]][[PrjStatus::Active]]}} | ===== {{{1}}} ===== |
− | ?PrjCFUMax | + | |
− | ?PrjResArea | + | {{#ask: [[Category:ProjectProposal]] [[PrjResArea::{{{1}}}]][[PrjStatus::Active]] |
− | ?PrjResTopic | + | | ?PrjTitle |
− | format = template | + | | ?PrjImage |
− | template = ProjectProposalViz | + | | ?PrjDescription |
+ | | ?PrjTutor# | ||
+ | | ?PrjStarts | ||
+ | | ?PrjStudMin | ||
+ | | ?PrjStudMax | ||
+ | | ?PrjCFUMin | ||
+ | | ?PrjCFUMax | ||
+ | | ?PrjResArea | ||
+ | | ?PrjResTopic | ||
+ | | format = template | ||
+ | | template = ProjectProposalViz | ||
}} | }} | ||
+ | }}</includeonly> |
Latest revision as of 23:25, 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.