Difference between revisions of "Template:GenericDownloadBox"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(35 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<includeonly>
== History ==
{{ColorPanel|Second Life {{{1}}} Viewer {{#if: {{{version}}}|version {{{version}}} }}|
This is based on [[Template:SnowglobeDownloadBox]], but with tweaks for Linden colours per the style guide.
{{{2}}}
== Usage ==
: [[File:Crystal_Clear_app_download_manager_32px.png|32px|left|link=]] [ {{#if: {{{windows}}}|[{{{windows}}} Windows]&nbsp;&#124;&nbsp;| }}{{#if: {{{macintosh}}}|[{{{macintosh}}} Macintosh]&nbsp;&#124;&nbsp;| }}{{#if: {{{linux}}}  |[{{{linux}}} Linux] | }}]
=== Parameters ===
|background={{#switch: {{{type}}} | release = #c1d1e8 | beta = #FFD39A | project = #c9f7f5 | #default = #C9F7F5}}
;name
|bordercolor={{{bordercolor|#4c4746}}}
: '''(optional)''' Name of the download. If omitted, "Snowglobe w.x.y" will be used instead (with x, y and z as given below).
|cornerradius={{{cornerradius|6px}}}
;type
}}</includeonly><noinclude>
: <code>Release</code>: Teal background, macsuffix is ignored.
 
: <code>Beta</code>: Orange-yellow background.
==Examples==
: <code>Project</code>: Red background.
===Release===
: <code>release candidate</code>: Yellow background, macsuffix is  ignored.
<nowiki>{{GenericDownloadBox
: <code>Beta</code>: Yellow background.
|Release|
: <code>napshot</code>: Red background, prevents generating a 'release notes' link.
Optional description goes here
: Other values don't have any effect for now.
|version=1.2.3.456789
;w, x, y, z
|type=release
: Components of the version number: Version, Major, Minor, build number
|windows=http://windows-download-url
;year, branch
|macintosh=http://mac-download-url
: correspond to the respective parts of the SVN URL
|linux=http://linux-download-url
;date
}}</nowiki>
: 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
{{GenericDownloadBox
|type    = release
|Release|
|w        = 2
Optional description goes here
|x        = 0
|version=1.2.3.456789
|y        = 2
|type=release
|z        = 3576
|windows=http://windows-url
|branch  = 2.0
|macintosh=http://mac-download-url
|date    = July 29, 2010
|linux=http://linux-download-url
|year    = 2010     
|macsuffix= _THISWILLBEIGNORED
}}
}}
</pre>
===Beta===
<nowiki>{{GenericDownloadBox
|Beta|
Optional description goes here
|version=1.2.3.456789
|type=beta
|windows=http://windows-download-url
|macintosh=http://mac-download-url
|linux=http://linux-download-url
}}</nowiki>
 
{{GenericDownloadBox
{{GenericDownloadBox
|type    = release
|Beta|
|w        = 2
Optional description goes here
|x        = 0
|version=1.2.3.456789
|y        = 2
|type=beta
|z        = 3576
|windows=http://windows-download-url
|branch  = 2.0
|macintosh=http://mac-download-url
|date    = July 29, 2010
|linux=http://linux-download-url
|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.
<nowiki>{{GenericDownloadBox
<pre>
|Beta|
{{GenericDownloadBox
This beta has no Mac downloads
|name    = {{Snowglobe_2-installers-trunk/{{{1|en}}}}}
|version=1.2.3.456789
|type    = test build
|type=beta
|w        = 2
|windows=http://windows-download-url
|x        = 1
|macintosh=
|y        = 0
|linux=http://linux-download-url
|z        = 3565
}}</nowiki>
|branch  = trunk
 
|date    = July 27, 2010
|year    = 2010
|macsuffix= _SNOWGLOBETESTBUILD
}}
</pre>
{{GenericDownloadBox
{{GenericDownloadBox
|name    = {{Snowglobe_2-installers-trunk/{{{1|en}}}}}
|Beta|
|type    = test build
This beta has no Mac downloads
|w        = 2
|version=1.2.3.456789
|x        = 1
|type=beta
|y        = 0
|windows=http://windows-download-url
|z        = 3565
|macintosh=
|branch  = trunk
|linux=http://linux-download-url
|date    = July 27, 2010
|year    = 2010
|macsuffix= _SNOWGLOBETESTBUILD
}}
}}


<nowiki>{{GenericDownloadBox
|Example Project|
Optional description goes here &nbsp;
Including [[Linked Wiki Pages]].
|version=1.2.3.456789
|type=project
|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 Project|
Optional description goes here.


Including [[Linked Wiki Pages]].
|version=1.2.3.456789
|type=project
|windows=http://windows-download-url
|macintosh=http://mac-download-url
|linux=http://linux-download-url
}}


</noinclude><includeonly>
<nowiki>{{GenericDownloadBox
{{#vardefine: urlprefix | http://download.cloud.secondlife.com/Viewer-{{w}}}}
|Example Project|
This viewer has no version number.
|version=
|type=project
|windows=http://windows-download-url
|macintosh=http://mac-download-url
|linux=http://linux-download-url
}}</nowiki>


{{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;
{{GenericDownloadBox
|3={{#switch: {{{type}}} | release = #EBFDFF | release candidate = #FFFFD0 | test build = #FFFFD0 | snapshot = #FFD0D0 | #default = #FFFFD0}}}}</includeonly><noinclude>
|Example Project|
This viewer has no version number.
|version=
|type=project
|windows=http://windows-download-url
|macintosh=http://mac-download-url
|linux=http://linux-download-url
}}


[[Category:Box templates]]</noinclude>
</noinclude>

Latest revision as of 11:19, 3 September 2015


Examples

Release

{{GenericDownloadBox
 |Release|
 Optional description goes here
 |version=1.2.3.456789
 |type=release
 |windows=http://windows-download-url
 |macintosh=http://mac-download-url
 |linux=http://linux-download-url
 }}


Second Life Release Viewer version 1.2.3.456789

Optional description goes here

Crystal Clear app download manager 32px.png
[ Windows | Macintosh | Linux]


Beta

{{GenericDownloadBox
 |Beta|
 Optional description goes here
 |version=1.2.3.456789
 |type=beta
 |windows=http://windows-download-url
 |macintosh=http://mac-download-url
 |linux=http://linux-download-url
 }}


Second Life Beta Viewer version 1.2.3.456789

Optional description goes here

Crystal Clear app download manager 32px.png
[ Windows | Macintosh | Linux]


{{GenericDownloadBox
 |Beta|
 This beta has no Mac downloads
 |version=1.2.3.456789
 |type=beta
 |windows=http://windows-download-url
 |macintosh=
 |linux=http://linux-download-url
 }}


Second Life Beta Viewer version 1.2.3.456789

This beta has no Mac downloads

Crystal Clear app download manager 32px.png
[ Windows | Linux]


{{GenericDownloadBox
 |Example Project|
 Optional description goes here  
 Including [[Linked Wiki Pages]].
 |version=1.2.3.456789
 |type=project
 |windows=http://windows-download-url
 |macintosh=http://mac-download-url
 |linux=http://linux-download-url
 }}


Second Life Example Project Viewer version 1.2.3.456789

Optional description goes here.

Including Linked Wiki Pages.

Crystal Clear app download manager 32px.png
[ Windows | Macintosh | Linux]


{{GenericDownloadBox
 |Example Project|
 This viewer has no version number.
 |version=
 |type=project
 |windows=http://windows-download-url
 |macintosh=http://mac-download-url
 |linux=http://linux-download-url
 }}


Second Life Example Project Viewer

This viewer has no version number.

Crystal Clear app download manager 32px.png
[ Windows | Macintosh | Linux]