Difference between revisions of "Template:Infobox scripts"

From relax wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
! Type
 
! Type
 
| {{#switch: {{{type|script}}}
 
| {{#switch: {{{type|script}}}
   | script = [[Relax_script_repo|Relax script repo]]
+
   | script = [[Relax_scripts|Relax scripts]]
 
   | tutorial = [[Tutorials]]
 
   | tutorial = [[Tutorials]]
 
   | {{{type}}}
 
   | {{{type}}}
Line 10: Line 10:
 
! Download
 
! Download
 
| {{#if: {{{filename|}}}
 
| {{#if: {{{filename|}}}
   | [https://github.com/tlinnet/relax_script_repo/raw/master/{{{filename}}} {{{filename}}}]
+
   | [https://github.com/nmr-relax/relax_scripts/raw/master/{{{filename}}} {{{filename}}}]
 
   | {{{download|}}}
 
   | {{{download|}}}
 
   }}
 
   }}
Line 19: Line 19:
 
! License
 
! License
 
| {{#switch: {{{license|}}}
 
| {{#switch: {{{license|}}}
   | GPL    = [http://www.gnu.org/licenses/gpl.html {{{license}}}]
+
   | GPL    = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}]
   | GPL-3.0
+
  | gpl    = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}]
 +
   | GPL-3.0 = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}]
 
   | {{{license|}}}
 
   | {{{license|}}}
 
   }}
 
   }}

Revision as of 16:18, 22 July 2013

Type Relax scripts
Download
Author(s) anonymous
License

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

Usage

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

Argument type can be one of:

  • script (for python script)
  • tutorial

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

Only GPL-3.0 license (GPL) are accepted, and linked with http://www.gnu.org/licenses/gpl.html by default.

Examples

{{Infobox script-repo
|type      = script
|filename  = hello_world.py
|author    = [[User:tlinnet|Troels E. Linnet]]
|license   = GPL
}}