Difference between revisions of "Template:SnowglobeDownloadBox"

From Second Life Wiki
Jump to navigation Jump to search
m (made release candidate be yellow and snapshot be less saturated.)
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{User:Boroondas Gupte/sandbox/SnowglobeDownloadBox
<noinclude>
|name    ={{Snowglobe_2-installers-trunk/{{{1|en}}}}}
== Usage ==
=== Parameters ===
;name
: '''(optional)''' Name of the download. If omitted, "Snowglobe w.x.y" will be used instead (with x, y and z as given below).
;type
: <code>release</code>: Blue background, macsuffix is ignored.
: <code>release candidate</code>: Yellow background, macsuffix is  ignored.
: <code>test build</code>: Yellow background.
: <code>snapshot</code>: Red background, prevents generating a 'release notes' link.
: Other values don't have any effect for now.
;w, x, y, z
: Components of the version number: Major, Minor, Sub-Minor and "build number" (for SG actually the SVN revision)
;year, branch
: correspond to the respective parts of the SVN URL
;date
: Other than 'year' above, this is the actual date of when the build was done
;macsuffix
: '''(optional)''' Part of the .dmg filename for trunk builds. Assumed empty when omitted. Ignored when <code>type = release</code>.
=== Examples ===
<code>release</code> causes blue background. <code>macsuffix</code> could be omitted without any effect, as it is ignored. <code>name</code> was omitted.
<pre>
{{SnowglobeDownloadBox
|type    = release
|type    = release
|w        =2                
|w        = 2
|x        =1                 
|x        = 0
|y        =0                
|y        = 2
|z        =3565             
|z        = 3576
|branch  =trunk             
|branch  = 2.0
|date    =July 27, 2010    
|date    = July 29, 2010
|year    =2010              
|year    = 2010     
|macsuffix=_SNOWGLOBETESTBUILD}}
|macsuffix= _THISWILLBEIGNORED
}}
</pre>
{{SnowglobeDownloadBox
|type    = release
|w        = 2
|x        = 0
|y        = 2
|z        = 3576
|branch  = 2.0
|date    = July 29, 2010
|year    = 2010
|macsuffix= _THISWILLBEIGNORED
}}


</noinclude><includeonly>{{ColorBox|{{{name}}}
Non-release <code>type</code> causes yellow background. <code>macsuffix</code> is ''needed'' here to get the correct URL for the MacOS download.
| ({{{w}}}.{{{x}}}.{{{y}}}.{{{z}}}, {{{date}}}) ([[Release Notes/Snowglobe Release/{{{w}}}.{{{x}}}|release notes]]) <br />
<pre>
&#91;
{{SnowglobeDownloadBox
'''[http://secondlife.com/developers/opensource/downloads/{{{year}}}/{{{branch}}}/{{{z}}}/Snowglobe_{{{w}}}-{{{x}}}-{{{y}}}-{{{z}}}_Setup.exe Windows]'''
|name    = {{Snowglobe_2-installers-trunk/{{{1|en}}}}}
&nbsp;&#124;&nbsp;
|type    = test build
'''[http://secondlife.com/developers/opensource/downloads/{{{year}}}/{{{branch}}}/{{{z}}}/Snowglobe_{{{w}}}_{{{x}}}_{{{y}}}_{{{z}}}{{{macsuffix}}}.dmg Mac]'''
|w       = 2
&nbsp;&#124;&nbsp;
|x       = 1
'''[http://secondlife.com/developers/opensource/downloads/{{{year}}}/{{{branch}}}/{{{z}}}/Snowglobe-i686-{{{w}}}.{{{x}}}.{{{y}}}.{{{z}}}.tar.bz2 Linux]'''
|y       = 0
&#93;
|z       = 3565
|{{#ifeq: {{{type}}}|release|#FFFFD0|#EBFDFF}}
|branch  = trunk
|{{#ifeq: {{{type}}}|release|#87A5CC|#87A5CC}}
|date    = July 27, 2010
|year     = 2010
|macsuffix= _SNOWGLOBETESTBUILD
}}
</pre>
{{SnowglobeDownloadBox
|name    = {{Snowglobe_2-installers-trunk/{{{1|en}}}}}
|type    = test build
|w        = 2
|x        = 1
|y        = 0
|z        = 3565
|branch  = trunk
|date    = July 27, 2010
|year    = 2010
|macsuffix= _SNOWGLOBETESTBUILD
}}
}}
{{#ifeq: {{{type}}}|release|FFFFD0|EBFDFF}}
 
</includeonly>
</noinclude><includeonly>{{#vardefine: urlprefix | http://secondlife.com/developers/opensource/downloads/{{{year}}}/{{{branch}}}/{{{z}}}/Snowglobe
}}{{ColorBox|[[File:Crystal_Clear_app_download_manager.png|32px|left|link=]] {{{name|Snowglobe {{{w}}}.{{{x}}}.{{{y}}}}}}| ({{{w}}}.{{{x}}}.{{{y}}}.{{{z}}}, {{{date}}}) {{#ifeq: {{{type}}} | snapshot | |([[Release Notes/Snowglobe Release/{{{w}}}.{{{x}}}|release notes]])}} <br /> &#91;&nbsp;'''[{{#var:urlprefix}}_{{{w}}}-{{{x}}}-{{{y}}}-{{{z}}}_Setup.exe Windows]'''&nbsp;&#124;&nbsp;'''[{{#var:urlprefix}}_{{{w}}}_{{{x}}}_{{{y}}}_{{{z}}}{{#switch: {{{type}}} | release = | release candidate = | #default = {{{macsuffix|}}}}}.dmg Mac]'''&nbsp;&#124;&nbsp;'''[{{#var:urlprefix}}-i686-{{{w}}}.{{{x}}}.{{{y}}}.{{{z}}}.tar.bz2 Linux]'''&nbsp;&#93;
|3={{#switch: {{{type}}} | release = #EBFDFF | release candidate = #FFFFD0 | test build = #FFFFD0 | snapshot = #FFD0D0 | #default = #FFFFD0}}}}</includeonly><noinclude>
 
[[Category:Box templates]]</noinclude>

Latest revision as of 13:03, 4 August 2010

Usage

Parameters

name
(optional) Name of the download. If omitted, "Snowglobe w.x.y" will be used instead (with x, y and z as given below).
type
release: Blue background, macsuffix is ignored.
release candidate: Yellow background, macsuffix is ignored.
test build: Yellow background.
snapshot: Red background, prevents generating a 'release notes' link.
Other values don't have any effect for now.
w, x, y, z
Components of the version number: Major, Minor, Sub-Minor and "build number" (for SG actually the SVN revision)
year, branch
correspond to the respective parts of the SVN URL
date
Other than 'year' above, this is the actual date of when the build was done
macsuffix
(optional) Part of the .dmg filename for trunk builds. Assumed empty when omitted. Ignored when type = release.

Examples

release causes blue background. macsuffix could be omitted without any effect, as it is ignored. name was omitted.

{{SnowglobeDownloadBox
|type     = release
|w        = 2
|x        = 0
|y        = 2
|z        = 3576
|branch   = 2.0
|date     = July 29, 2010
|year     = 2010      
|macsuffix= _THISWILLBEIGNORED
}}
Crystal Clear app download manager.png
Snowglobe 2.0.2
(2.0.2.3576, July 29, 2010) (release notes)
Windows | Mac | Linux ]


Non-release type causes yellow background. macsuffix is needed here to get the correct URL for the MacOS download.

{{SnowglobeDownloadBox
|name     = {{Snowglobe_2-installers-trunk/{{{1|en}}}}}
|type     = test build
|w        = 2
|x        = 1
|y        = 0
|z        = 3565
|branch   = trunk
|date     = July 27, 2010
|year     = 2010
|macsuffix= _SNOWGLOBETESTBUILD
}}
Crystal Clear app download manager.png
Snowglobe 2.1.0 Test Build (trunk)
(2.1.0.3565, July 27, 2010) (release notes)
Windows | Mac | Linux ]