Difference between revisions of "Template:Research area info"

From SNIC Documentation
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
This template creates a standard info blurb for a research area, and registers the relevant categories and properties. Will protest loudly in bold red if mandatory information is missing. If you do not wish to provide a certain piece of required information: do not use this template. Or else you will corrupt the database with incorrect information.
 
This template creates a standard info blurb for a research area, and registers the relevant categories and properties. Will protest loudly in bold red if mandatory information is missing. If you do not wish to provide a certain piece of required information: do not use this template. Or else you will corrupt the database with incorrect information.
  
Usage: <nowiki>{{</nowiki>research area info|''description''=}}</nowiki>
+
Usage: <nowiki>{{</nowiki>research area info|''description''=}}
  
 
Example:
 
Example:
Line 12: Line 12:
 
</pre>
 
</pre>
  
</noinclude><includeonly><onlyinclude>{{#if: {{{description|}}}|{{#set: description={{{description}}}|<span style="font-weight: bold; color: red;">ERROR: No description.</span>}}}}
+
</noinclude><includeonly><onlyinclude>{{field info|description={{{description|}}}}}{{set category|parent category|research area|quiet=true}}</onlyinclude></includeonly>
{{set category|parent category|research area|quiet=true}}
 
</onlyinclude></includeonly>
 

Latest revision as of 13:01, 8 July 2011

This template creates a standard info blurb for a research area, and registers the relevant categories and properties. Will protest loudly in bold red if mandatory information is missing. If you do not wish to provide a certain piece of required information: do not use this template. Or else you will corrupt the database with incorrect information.

Usage: {{research area info|description=}}

Example:

{{research area info
|description=the science of information handling in biology
}}