Difference between revisions of "Template:Bioinformatics application"

From SEQwiki
Jump to: navigation, search
(Moved the software summary field out of the table, so the rest of the table can be narrower)
(Moved the 'software summary' text to appear 'after the table' (the table floats right, so it should appear to the left of the table. also, tested one row without the dumb tr template)
Line 5: Line 5:
  
 
== Notes ==
 
== Notes ==
The table rows are almost all conditional, and the table elements are filled in using the 'tr' helper template.
+
The table rows are almost all conditional, and the table elements are filled in using the 'tr' helper template (why?). They style of the table is defined (confusingly?) in the 'special' [[MediaWiki:Common.css]] page.
  
  
 
== TODO ==
 
== TODO ==
 
* There is an issue with vertical whitespace caused by the conditional rows. I tried to resolve this with the [http://www.mediawiki.org/wiki/Extension:StringFunctionsEscaped|StringFunctionsEscaped extension] (specifically the [http://www.mediawiki.org/wiki/Extension:StringFunctionsEscaped#stripnewlines|stripnewlines parser function]), but that destroyed the table syntax for some reason :(
 
* There is an issue with vertical whitespace caused by the conditional rows. I tried to resolve this with the [http://www.mediawiki.org/wiki/Extension:StringFunctionsEscaped|StringFunctionsEscaped extension] (specifically the [http://www.mediawiki.org/wiki/Extension:StringFunctionsEscaped#stripnewlines|stripnewlines parser function]), but that destroyed the table syntax for some reason :(
 +
* Remove the dumb tr template usage
 +
* Calculate a score based on what properties are defined.
  
 
== Template code ==
 
== Template code ==
 
</noinclude><includeonly>
 
</noinclude><includeonly>
'''Summary:'''
 
[[Software summary::{{{sw summary|''missing''}}}]]
 
 
 
{| id="bifx-app"
 
{| id="bifx-app"
  
! colspan=2  style="background: red; text-align: center;" | Bioinformatics application  
+
! colspan=2  style="background: red; text-align: center;" | '''Bioinformatics application'''
  
{{#if: {{{created by|}}}
+
{{#if: {{{created by|}}} |
  | {{tr | h=Created by
+
|-
        | {{#arraymap: {{{created by}}} | , | var | [[Created by::var]] }} }}
+
! Created by
 +
| {{#arraymap: {{{created by}}} | , | var | [[Created by::var]] }}
 
}}
 
}}
 
{{#if: {{{bio domain|}}}
 
{{#if: {{{bio domain|}}}
Line 72: Line 72:
 
}}
 
}}
 
|}
 
|}
 +
 +
'''Summary:'''
 +
[[Software summary::{{{sw summary|''missing''}}}]]
  
 
{{#if: {{{sw logo|}}} | [[{{{sw logo}}}|200px|right]]}}
 
{{#if: {{{sw logo|}}} | [[{{{sw logo}}}|200px|right]]}}
Line 77: Line 80:
 
{{DEFAULTSORT:{{uc:{{PAGENAME}}}}}} <!-- Blame Eric ;-) -->
 
{{DEFAULTSORT:{{uc:{{PAGENAME}}}}}} <!-- Blame Eric ;-) -->
 
[[Category:Bioinformatics application]]
 
[[Category:Bioinformatics application]]
 
 
</includeonly>
 
</includeonly>

Revision as of 20:02, 14 September 2011

This is the 'Bioinformatics application' template.

It should be called by using the Bioinformatics application Form.


Notes

The table rows are almost all conditional, and the table elements are filled in using the 'tr' helper template (why?). They style of the table is defined (confusingly?) in the 'special' MediaWiki:Common.css page.


TODO

  • There is an issue with vertical whitespace caused by the conditional rows. I tried to resolve this with the extension (specifically the parser function), but that destroyed the table syntax for some reason :(
  • Remove the dumb tr template usage
  • Calculate a score based on what properties are defined.

Template code