Difference between revisions of "Template:Infobox scripts"

From relax wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
! Type
 
! Type
| {{#switch: {{{type|script}}}
+
| {{#switch: {{{type|}}}
   | script = [[Relax_script_repo]]
+
   | relax_scripts = [[relax_scripts|relax scripts]]
 +
  | devel_scripts = [[devel_scripts|devel scripts]]
 
   | tutorial = [[Tutorials]]
 
   | tutorial = [[Tutorials]]
 
   | {{{type}}}
 
   | {{{type}}}
Line 9: Line 10:
 
|-
 
|-
 
! Download
 
! Download
| {{#if: {{{filename|}}}
+
| {{#if: {{{filename|}}} | [https://github.com/nmr-relax/relax_scripts/raw/master/{{{filename}}} {{{filename}}}] | {{{download|}}} }}
  | [https://github.com/tlinnet/relax_script_repo/raw/master/{{{filename}}} {{{filename}}}]
 
  | {{{download|}}}
 
  }}
 
 
|-
 
|-
 
! Author(s)
 
! Author(s)
Line 19: Line 17:
 
! 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}}}]
 +
  | 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|}}}
 
   | {{{license|}}}
 
   }}
 
   }}
 
|-
 
|-
|colspan="2" style="text-align:center; font-size:80%; background-color: #ddd"| {{#if: {{{homepage|}}}
+
|colspan="2" style="text-align:center; font-size:80%; background-color: #5F7F96"| {{#if: {{{homepage|}}}
 
   | {{{homepage}}}<br>
 
   | {{{homepage}}}<br>
 
   |
 
   |
 
   }} {{#if: {{{filename|}}}
 
   }} {{#if: {{{filename|}}}
   | This code has been put under version control in the project [[Git intro|relax script repo]]
+
   | This code has been put under version control in the project [[relax_scripts|relax_scripts repository]]
 
   |
 
   |
 
   }}
 
   }}
|}<noinclude>
+
|}
This is a info box for scripts in the relax script repo.
+
 
 +
<noinclude>
 +
This is a info box for scripts in the Github relax_scripts repo.
  
 
== Usage ==
 
== Usage ==
  
 
<pre>
 
<pre>
{{Infobox script-repo
+
{{Infobox relax_scripts
 
|type      =
 
|type      =
 
|filename  =
 
|filename  =
Line 46: Line 50:
  
 
Argument '''type''' can be one of:
 
Argument '''type''' can be one of:
* script (for python script)
+
* relax_scripts (for user python script)
 
* tutorial
 
* tutorial
  
The '''filename''' argument must match a file in the relax script repo.
+
The '''filename''' argument must match a file in the Github relax_scripts repo.
 
If the script is ''not'' in the repo, the '''download''' argument can be provided as an alternative.
 
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.html</code> by default.
+
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 ==
 
== Examples ==
  
 
<pre>
 
<pre>
{{Infobox script-repo
+
{{Infobox relax_scripts
|type      = script
+
|type      = relax_scripts
 
|filename  = hello_world.py
 
|filename  = hello_world.py
 
|author    = [[User:tlinnet|Troels E. Linnet]]
 
|author    = [[User:tlinnet|Troels E. Linnet]]
Line 64: Line 68:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
! Download
 +
| {{#if: {{{filename|}}}
 +
  | [https://github.com/nmr-relax/relax_scripts/raw/master/{{{filename}}} {{{filename}}}]
 +
  | {{{download|}}}
 +
  }}
  
 
</noinclude>
 
</noinclude>

Latest revision as of 15:03, 23 July 2013

Type {{{type}}}
Download
Author(s) anonymous
License


This is a info box for scripts in the Github relax_scripts repo.

Usage

{{Infobox relax_scripts
|type      =
|filename  =
|author    =
|license   =
}}

Argument type can be one of:

  • relax_scripts (for user python script)
  • tutorial

The filename argument must match a file in the 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 http://www.gnu.org/licenses/gpl-3.0.html by default.

Examples

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

! Download |