Difference between revisions of "Template:ProjectByResTopic"
From AIRWiki
m |
|||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template takes as first input a [[:Category:Research | + | This template takes as first input a [[:Category:Research Topic|Research Topic]] and returns a paragraph having with the name of the topic as its title, including all the [[:Category:Project| Projects]] belonging to that Area, visualizing it with the [[Template:ProjectViz]] template. |
− | It can be used to dynamically generate list of [[:Category: | + | It can be used to dynamically generate list of [[:Category:Project|Projects]] grouped by their [[:Category:Research Topic|Research Topic]], with the following query: |
<pre><nowiki> | <pre><nowiki> | ||
{{#ask:[[Category:Research Topic]]|format=template|link=none|template=ProjectByResTopic}} | {{#ask:[[Category:Research Topic]]|format=template|link=none|template=ProjectByResTopic}} | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | If you only want to show projects belonging to a single research area (e.g., because you want to list them in the AIRWiki page dedicated to that area) you can use the following query instead: | ||
+ | <pre><nowiki> | ||
+ | {{#ask:[[Category:Research Topic]][[BelongsToArea::NameOfTheChosenResearchArea]]|format=template|link=none|template=ProjectByResTopic}} | ||
+ | </nowiki></pre> | ||
+ | Of course, the last query will consider ''only'' research topics which include | ||
+ | <pre><nowiki> | ||
+ | [[belongsToArea::NameOfTheChosenResearchArea]] | ||
+ | </nowiki></pre> | ||
+ | in their wiki source code. | ||
Source Code: | Source Code: | ||
Line 10: | Line 19: | ||
<pre><nowiki> | <pre><nowiki> | ||
<includeonly> | <includeonly> | ||
− | + | ==== {{{1}}} ==== | |
− | {{#ask: [[Category:Project | + | {{#ask: [[Category:Project]][[PrjResTopic::{{{1}}}]] |
| ?PrjTitle | | ?PrjTitle | ||
| ?PrjImage | | ?PrjImage | ||
Line 17: | Line 26: | ||
| ?PrjCoordinator | | ?PrjCoordinator | ||
| ?PrjTutor | | ?PrjTutor | ||
− | | ? | + | | ?PrjCollaborator |
− | | ? | + | | ?PrjStudent |
− | | ? | + | | ?PrjStart |
− | | ? | + | | ?PrjEnd |
− | + | ||
| ?PrjResArea | | ?PrjResArea | ||
| ?PrjResTopic | | ?PrjResTopic | ||
+ | | ?PrjLevel | ||
+ | | ?PrjType | ||
+ | | ?PrjStatus | ||
| format = template | | format = template | ||
− | | template = | + | | template = ProjectVizSlim |
}} | }} | ||
</includeonly> | </includeonly> | ||
Line 32: | Line 43: | ||
<includeonly> | <includeonly> | ||
− | + | ==== {{{1}}} ==== | |
− | {{#ask: [[Category:Project | + | {{#ask: [[Category:Project]][[PrjResTopic::{{{1}}}]] |
| ?PrjTitle | | ?PrjTitle | ||
| ?PrjImage | | ?PrjImage | ||
Line 39: | Line 50: | ||
| ?PrjCoordinator | | ?PrjCoordinator | ||
| ?PrjTutor | | ?PrjTutor | ||
− | | ? | + | | ?PrjCollaborator |
− | | ? | + | | ?PrjStudent |
− | | ? | + | | ?PrjStart |
− | | ? | + | | ?PrjEnd |
− | + | ||
| ?PrjResArea | | ?PrjResArea | ||
| ?PrjResTopic | | ?PrjResTopic | ||
+ | | ?PrjLevel | ||
+ | | ?PrjType | ||
+ | | ?PrjStatus | ||
| format = template | | format = template | ||
− | | template = | + | | template = ProjectVizSlim |
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 13:18, 2 March 2010
This template takes as first input a Research Topic and returns a paragraph having with the name of the topic as its title, including all the Projects belonging to that Area, visualizing it with the Template:ProjectViz template. It can be used to dynamically generate list of Projects grouped by their Research Topic, with the following query:
{{#ask:[[Category:Research Topic]]|format=template|link=none|template=ProjectByResTopic}}
If you only want to show projects belonging to a single research area (e.g., because you want to list them in the AIRWiki page dedicated to that area) you can use the following query instead:
{{#ask:[[Category:Research Topic]][[BelongsToArea::NameOfTheChosenResearchArea]]|format=template|link=none|template=ProjectByResTopic}}
Of course, the last query will consider only research topics which include
[[belongsToArea::NameOfTheChosenResearchArea]]
in their wiki source code.
Source Code:
<includeonly> ==== {{{1}}} ==== {{#ask: [[Category:Project]][[PrjResTopic::{{{1}}}]] | ?PrjTitle | ?PrjImage | ?PrjDescription | ?PrjCoordinator | ?PrjTutor | ?PrjCollaborator | ?PrjStudent | ?PrjStart | ?PrjEnd | ?PrjResArea | ?PrjResTopic | ?PrjLevel | ?PrjType | ?PrjStatus | format = template | template = ProjectVizSlim }} </includeonly>