Difference between revisions of "Template:GenericDownloadBox"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<noinclude>
<includeonly>
== History ==
{{ColorPanel|{{{1}}} Project Viewer|
This is based on [[Template:SnowglobeDownloadBox]], but with tweaks for Linden colours per the style guide.
{{{2}}}
== Usage ==
:'''Installers:''' {{#if: {{{windows}}}|[{{{windows}}} Windows]&nbsp;&#124;&nbsp;}}{{#if: {{{macintosh}}}|[{{{macintosh}}} Macintosh]&nbsp;&#124;&nbsp;}}{{#if: {{{linux}}} |[{{{linux}}} Linux]}}
=== Parameters ===
|background={{{background|#EBFDFF}}}
;name
|bordercolor={{{bordercolor|#87A5CC}}}
: '''(optional)''' Name of the download. If omitted, "Snowglobe w.x.y" will be used instead (with x, y and z as given below).
|shadowcolor={{{shadowcolor|#AAF}}}
;type
|cornerradius={{{cornerradius|6px}}}
: <code>Release</code>: Teal background, macsuffix is ignored.
}}</includeonly><noinclude>
: <code>Beta</code>: Orange-yellow background.
 
: <code>Project</code>: Red background.
<nowiki>{{GenericDownloadBox
: <code>release candidate</code>: Yellow background, macsuffix is  ignored.
|Example|
: <code>Beta</code>: Yellow background.
This is the description, and can have whatever you want in it.
: <code>napshot</code>: Red background, prevents generating a 'release notes' link.
&nbsp;
: Other values don't have any effect for now.
Including [[Linked Wiki Pages]].
;w, x, y, z
|windows=http://windows-download-url
: Components of the version number: Version, Major, Minor, build number
|macintosh=http://mac-download-url
;year, branch
|linux=http://linux-download-url
: correspond to the respective parts of the SVN URL
}}</nowiki>
;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>
{{GenericDownloadBox
|type    = release
|w        = 2
|x        = 0
|y        = 2
|z        = 3576
|branch  = 2.0
|date    = July 29, 2010
|year    = 2010     
|macsuffix= _THISWILLBEIGNORED
}}
</pre>
{{GenericDownloadBox
{{GenericDownloadBox
|type    = release
|Example|
|w        = 2
This is the description, and can have whatever you want in it
|x        = 0
|y        = 2
|z        = 3576
|branch  = 2.0
|date    = July 29, 2010
|year    = 2010
|macsuffix= _THISWILLBEIGNORED
}}


Non-release <code>type</code> causes yellow background. <code>macsuffix</code> is ''needed'' here to get the correct URL for the MacOS download.
Including [[Linked Wiki Pages]].
<pre>
|windows=http://windows-url
{{GenericDownloadBox
|macintosh=http://mac-download-url
|name    = {{Snowglobe_2-installers-trunk/{{{1|en}}}}}
|linux=http://linux-download-url
|type    = test build
|w        = 2
|x        = 1
|y        = 0
|z        = 3565
|branch  = trunk
|date    = July 27, 2010
|year    = 2010
|macsuffix= _SNOWGLOBETESTBUILD
}}
</pre>
{{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
}}
}}


<nowiki>{{GenericDownloadBox
|Example|
This is the description, and can have whatever you want in it.
&nbsp;
Including [[Linked Wiki Pages]].
|background=#EEE8CD
|bordercolor=#8B8970
|windows=http://windows-download-url
|macintosh=http://mac-download-url
|linux=http://linux-download-url
}}</nowiki>


http://download.cloud.secondlife.com/Viewer-3/SecondLife-i686-3.4.0.264911.tar.bz2
{{GenericDownloadBox
|Example|
This is the description, and can have whatever you want in it.


Including [[Linked Wiki Pages]].
|background=#EEE8CD
|bordercolor=#8B8970
|windows=http://windows-download-url
|macintosh=http://mac-download-url
|linux=http://linux-download-url
}}


</noinclude><includeonly>{{#vardefine: urlprefix | http://secondlife.com/developers/opensource/downloads/{{{year}}}/{{{branch}}}/{{{z}}}/Snowglobe
</noinclude>
}}{{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>

Revision as of 12:16, 18 October 2012


{{GenericDownloadBox
 |Example|
 This is the description, and can have whatever you want in it.
  
 Including [[Linked Wiki Pages]].
 |windows=http://windows-download-url
 |macintosh=http://mac-download-url
 |linux=http://linux-download-url
 }}


Example Project Viewer

This is the description, and can have whatever you want in it

Including Linked Wiki Pages.

Installers: Windows | Macintosh | Linux


{{GenericDownloadBox
 |Example|
 This is the description, and can have whatever you want in it.
  
 Including [[Linked Wiki Pages]].
 |background=#EEE8CD
 |bordercolor=#8B8970 
 |windows=http://windows-download-url
 |macintosh=http://mac-download-url
 |linux=http://linux-download-url
 }}


Example Project Viewer

This is the description, and can have whatever you want in it.

Including Linked Wiki Pages.

Installers: Windows | Macintosh | Linux