Difference between revisions of "Template:Resource info devel"
Line 16: | Line 16: | ||
|commissioning date=2007 | |commissioning date=2007 | ||
|decommissioning date= | |decommissioning date= | ||
+ | |software=Blast,HMMER,Gaussian | ||
}} | }} | ||
</pre> | </pre> | ||
Line 22: | Line 23: | ||
{{#set: name={{{name|{{PAGENAME}}}}}|description={{{description}}}|centre={{{centre}}}}}{{#if: {{{description|}}}||<span style="font-weight: bold; color: red;">ERROR: No description.</span>}}{{#if: {{{centre|}}}||<span style="font-weight: bold; color: red;">ERROR: No centre.</span>}}| | {{#set: name={{{name|{{PAGENAME}}}}}|description={{{description}}}|centre={{{centre}}}}}{{#if: {{{description|}}}||<span style="font-weight: bold; color: red;">ERROR: No description.</span>}}{{#if: {{{centre|}}}||<span style="font-weight: bold; color: red;">ERROR: No centre.</span>}}| | ||
{{resource info table|name={{{name|{{PAGENAME}}}}}|description={{{description|}}}|centre={{{centre|}}}|production={{{production|}}}|commissioning date={{{commissioning date|}}}|decommissioning date={{{decommissioning date|}}}}} | {{resource info table|name={{{name|{{PAGENAME}}}}}|description={{{description|}}}|centre={{{centre|}}}|production={{{production|}}}|commissioning date={{{commissioning date|}}}|decommissioning date={{{decommissioning date|}}}}} | ||
− | }} | + | }}{{set list|software|{{{software|}}}|sep=,|quiet=true}} |
[[Category:Resource]]</includeonly> | [[Category:Resource]]</includeonly> |
Latest revision as of 14:39, 6 February 2012
This template creates a standard info blurb for a resource, 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: {{resource info|description=|centre=|name={{PAGENAME}}}}
All the parameters are named, and can be given in any order. description should be a shortest-possible style description of what the resource is, eg. it should fit into the second formatter of "%s is a %s." (note absence of capital first letter, leading word "a", and ending full stop character). commissioning date and decommissioning date specify when the resource opened and started accepting jobs from users, and when it will close (optional). active states whether or not the project is currently considered to be active, and is used both to simplify queries and to handle corner cases in an explicit manner. name defaults to {{PAGENAME}} and should in principle never have to be set to anything else.
Example:
{{resource info |description=capability cluster resource of 60 Tflops with full bisection interconnect |centre=NSC |production=yes |commissioning date=2007 |decommissioning date= |software=Blast,HMMER,Gaussian }}