Difference between revisions of "Template:GenericDownloadBox"

From Second Life Wiki
Jump to navigation Jump to search
Line 81: Line 81:




</noinclude><includeonly>
</noinclude><includeonly>{{#vardefine: urlprefix | http://download.cloud.secondlife.com/Viewer-{{w}}}}{{ColorBox|[[File:Crystal_Clear_app_download_manager.png|32px|left|link=]] {{{name|Second Life {{{w}}}.{{{x}}}.{{{y}}}}}}| ({{{w}}}.{{{x}}}.{{{y}}}.{{{z}}}, {{{date}}}) {{#ifeq: {{{type}}} | beta | |([[Release Notes/Second Life Beta Viewer/{{{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;
{{#vardefine: urlprefix | http://download.cloud.secondlife.com/Viewer-{{w}}}}
|3={{#switch: {{{type}}} | release = #EBFDFF | beta = #FFFFD0 | test build = #FFFFD0 | project = #FFD0D0 | #default = #FFFFD0}}}}</includeonly><noinclude>
 
{{ColorBox|[[File:Crystal_Clear_app_download_manager.png|32px|left|link=]] {{{name|Second Life {{{w}}}.{{{x}}}.{{{y}}}}}}| ({{{w}}}.{{{x}}}.{{{y}}}.{{{z}}}, {{{date}}}) {{#ifeq: {{{type}}} | beta | |([[Release Notes/Second Life Beta Viewer/{{{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>
[[Category:Box templates]]</noinclude>

Revision as of 12:53, 18 October 2012

History

This is based on Template:SnowglobeDownloadBox, but with tweaks for Linden colours per the style guide.

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: Teal background, macsuffix is ignored.
Beta: Orange-yellow background.
Project: Red background.
release candidate: Yellow background, macsuffix is ignored.
Beta: Yellow background.
napshot: 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: Version, Major, Minor, build number
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.

{{GenericDownloadBox
|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
Second Life 2.0.2
(2.0.2.3576, July 29, 2010) (release notes)
[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia:{{{1}}}_2-0-2-3576_Setup.exe Windows] | [https://en.wikipedia.org/wiki/{{{1}}} Wikipedia:{{{1}}}_2_0_2_3576.dmg Mac] | [https://en.wikipedia.org/wiki/{{{1}}} Wikipedia:{{{1}}}-i686-2.0.2.3576.tar.bz2 Linux] ]


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

{{GenericDownloadBox
|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)
[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia:{{{1}}}_2-1-0-3565_Setup.exe Windows] | [https://en.wikipedia.org/wiki/{{{1}}} Wikipedia:{{{1}}}_2_1_0_3565_SNOWGLOBETESTBUILD.dmg Mac] | [https://en.wikipedia.org/wiki/{{{1}}} Wikipedia:{{{1}}}-i686-2.1.0.3565.tar.bz2 Linux] ]



http://download.cloud.secondlife.com/Viewer-3/SecondLife-i686-3.4.0.264911.tar.bz2