Open main menu

Changes

Template:Infobox scripts

591 bytes added, 15:03, 23 July 2013
no edit summary
|-
! Type
| {{#switch: {{{type|script}}} | script relax_scripts = [[Relax_script_reporelax_scripts|Relax script reporelax scripts]] | devel_scripts = [[devel_scripts|devel scripts]]
| tutorial = [[Tutorials]]
| {{{type}}}
|-
! Download
| {{#if: {{{filename|}}} | [https://github.com/tlinnetnmr-relax/relax_script_reporelax_scripts/raw/master/{{{filename}}} {{{filename}}}] | {{{download|}}} }}
|-
! Author(s)
! License
| {{#switch: {{{license|}}}
| GPL = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}] | gpl = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}] | GPLv3 = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}] | gplv3 = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}] | GPL-3.0 = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}] | gpl-3.0 = [http://www.gnu.org/licenses/gpl-3.0.html {{{license}}}]
| {{{license|}}}
}}
|-
|colspan="2" style="text-align:center; font-size:80%; background-color: #fff5F7F96"| {{#if: {{{homepage|}}}
| {{{homepage}}}<br>
|
}} {{#if: {{{filename|}}}
| This code has been put under version control in the project [[Relax_script_reporelax_scripts|relax script reporelax_scripts repository]]
|
}}
|} <noinclude>This is a info box for scripts in the relax script Github relax_scripts repo.
== Usage ==
<pre>
{{Infobox script-reporelax_scripts
|type =
|filename =
Argument '''type''' can be one of:
* script relax_scripts (for user python script)
* tutorial
The '''filename''' argument must match a file in the relax script Github relax_scripts 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 <code>http://www.gnu.org/licenses/gpl-3.0.html</code> by default.
== Examples ==
<pre>
{{Infobox script-reporelax_scripts|type = scriptrelax_scripts
|filename = hello_world.py
|author = [[User:tlinnet|Troels E. Linnet]]
}}
</pre>
 
! Download
| {{#if: {{{filename|}}}
| [https://github.com/nmr-relax/relax_scripts/raw/master/{{{filename}}} {{{filename}}}]
| {{{download|}}}
}}
</noinclude>