Difference between revisions of "Template:GenericDownloadBox"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> == History == This is based on Template:SnowglobeDownloadBox, but with tweaks for Linden colours per the style guide. == Usage == === Parameters === ;name : '''(o…")
 
m
 
(36 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>: Blue background, macsuffix is ignored.
 
: <code>release candidate</code>: Yellow background, macsuffix is  ignored.
==Examples==
: <code>test build</code>: Yellow background.
===Release===
: <code>snapshot</code>: Red background, prevents generating a 'release notes' link.
<nowiki>{{GenericDownloadBox
: Other values don't have any effect for now.
|Release|
;w, x, y, z
Optional description goes here
: Components of the version number: Major, Minor, Sub-Minor and "build number" (for SG actually the SVN revision)
|version=1.2.3.456789
;year, branch
|type=release
: correspond to the respective parts of the SVN URL
|windows=http://windows-download-url
;date
|macintosh=http://mac-download-url
: Other than 'year' above, this is the actual date of when the build was done
|linux=http://linux-download-url
;macsuffix
}}</nowiki>
: '''(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 12: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]