Open main menu

Changes

Template:Infobox scripts

1,535 bytes added, 10:21, 25 June 2013
Created page with "{| cellspacing="0" cellpadding="3" class="infobox" |- ! Type | {{#switch: {{{type|script}}} | script = Category:Relax_script_repo | tutorial = Category:Tutorials..."
{| cellspacing="0" cellpadding="3" class="infobox"
|-
! Type
| {{#switch: {{{type|script}}}
| script = [[Category:Relax_script_repo]]
| tutorial = [[Category:Tutorials]]
| {{{type}}}
}}
|-
! Download
| {{#if: {{{filename|}}}
| [https://github.com/tlinnet/relax_script_repo/raw/master/{{{filename}}} {{{filename}}}]
| {{{download|}}}
}}
|-
! Author(s)
| {{{author|anonymous}}}
|-
! License
| {{#switch: {{{license|}}}
| GPL = [http://www.gnu.org/licenses/gpl.html {{{license}}}]
| GPL-3.0
| {{{license|}}}
}}
|-
|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|relax script repo]]
|
}}
|}<noinclude>
This is a info box for scripts in the relax script repo.

== Usage ==

<pre>
{{Infobox script-repo
|type =
|filename =
|author =
|license =
}}
</pre>

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 <code>http://www.gnu.org/licenses/gpl.html</code> by default.

== Examples ==

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

</noinclude>