Difference between revisions of "Template:Infobox script-repo"

From PyMOLWiki
Jump to: navigation, search
(class infobox)
(homepage)
Line 27: Line 27:
 
   }}
 
   }}
 
|-
 
|-
|colspan="2" style="text-align:center; font-size:80%; background-color: #ddd"| {{#if: {{{filename|}}}
+
|colspan="2" style="text-align:center; font-size:80%; background-color: #ddd"| {{#if: {{{homepage|}}}
 +
  | {{{homepage}}}<br>
 +
  |
 +
  }} {{#if: {{{filename|}}}
 
   | This code has been put under version control in the project [[Git intro|Pymol-script-repo]]
 
   | This code has been put under version control in the project [[Git intro|Pymol-script-repo]]
 
   |
 
   |

Revision as of 03:56, 12 December 2011

Type Python Script
Download
Author(s) anonymous
License

This is a info box for scripts in the Pymol-script-repo.

Usage

{{Infobox script-repo
|type      =
|filename  =
|author    =
|license   =
}}

Argument type can be one of:

  • module
  • plugin
  • script (for python script)
  • pml (for python script)
  • or some free description

The filename argument must match a file in the Pymol-script-repo. If the script is not in the repo, the download argument can be provided as an alternative.

Some licenses (currently BSD, GPL and LGPL) are linked with opensource.org/licenses by default.

Examples

{{Infobox script-repo
|type      = plugin
|filename  = plugins/dynoplot.py
|author    = Dan Kulp
|license   =
}}
{{Infobox script-repo
|type      = module
|filename  = anglebetweenhelices.py
|author    = [[Users:Speleo3|Thomas Holder]]
|license   = BSD
}}

If script is not in repo:

{{Infobox script-repo
|type      = pml
|download  = please copy&paste script
|author    = 
|license   = BSD
}}