Actions

Template

Difference between revisions of "Multidownload"

From Sonic Retro

m (Text replace - "Category:Sonic Retro Templates" to "Category:Sonic Retro templates")
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{|style="width:475px;padding:4px 10px" class="toc"
 
<includeonly>{|style="width:475px;padding:4px 10px" class="toc"
|align="left" style="vertical-align:top;padding:8px 0" width="40px"|[[Image:Download.svg|35px|link=]]
+
|align="left" style="vertical-align:top;padding:8px 0" width="40px"|[[File:Download.svg|35px|link=]]
 
|
 
|
 
<span style="font-weight:bold;font-size:120%">Download {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</span><br>
 
<span style="font-weight:bold;font-size:120%">Download {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}</span><br>
 
<span style="font-size:95%">Multiple downloads available</span><br>
 
<span style="font-size:95%">Multiple downloads available</span><br>
{{ #if: {{{file1|}}} | <div style="border-bottom:1px dotted #999;padding:3px 0">[[Media:{{{file1}}}|<span style="font-weight:bold">{{{filename1}}}</span>]] <span style="font-size:80%">({{{filesize1}}}) ([[:File:{{{file1}}}|info]])</span></div>| <span style="background:red;color:white">'''See [[Template:Multidownload]] on how to use this template.'''</span> }}{{
+
{{ #if: {{{file1|}}} | <div style="border-bottom:1px dotted #999;padding:3px 0">[[Media:{{{file1}}}|<span style="font-weight:bold">{{{filename1}}}</span>]] <span style="font-size:80%">({{filesize|{{{file1}}}}}) ([[:File:{{{file1}}}|info]])</span></div>| <span style="background:red;color:white">'''See [[Template:Multidownload]] on how to use this template.'''</span> }}{{
  #if: {{{file2|}}} | <div style="{{ #if: {{{file3|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file2}}}|<span style="font-weight:bold">{{{filename2}}}</span>]] <span style="font-size:80%">({{{filesize2}}}) ([[:File:{{{file2}}}|info]])</span></div>| }}{{
+
  #if: {{{file2|}}} | <div style="{{ #if: {{{file3|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file2}}}|<span style="font-weight:bold">{{{filename2}}}</span>]] <span style="font-size:80%">({{filesize|{{{file2}}}}}) ([[:File:{{{file2}}}|info]])</span></div>| }}{{
  #if: {{{file3|}}} | <div style="{{ #if: {{{file4|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file3}}}|<span style="font-weight:bold">{{{filename3}}}</span>]] <span style="font-size:80%">({{{filesize3}}}) ([[:File:{{{file3}}}|info]])</span></div>| }}{{
+
  #if: {{{file3|}}} | <div style="{{ #if: {{{file4|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file3}}}|<span style="font-weight:bold">{{{filename3}}}</span>]] <span style="font-size:80%">({{filesize|{{{file3}}}}}) ([[:File:{{{file3}}}|info]])</span></div>| }}{{
  #if: {{{file4|}}} | <div style="{{ #if: {{{file5|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file4}}}|<span style="font-weight:bold">{{{filename4}}}</span>]] <span style="font-size:80%">({{{filesize4}}}) ([[:File:{{{file4}}}|info]])</span></div>| }}{{
+
  #if: {{{file4|}}} | <div style="{{ #if: {{{file5|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file4}}}|<span style="font-weight:bold">{{{filename4}}}</span>]] <span style="font-size:80%">({{filesize|{{{file4}}}}}) ([[:File:{{{file4}}}|info]])</span></div>| }}{{
  #if: {{{file5|}}} | <div style="{{ #if: {{{file6|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file5}}}|<span style="font-weight:bold">{{{filename5}}}</span>]] <span style="font-size:80%">({{{filesize5}}}) ([[:File:{{{file5}}}|info]])</span></div>| }}{{
+
  #if: {{{file5|}}} | <div style="{{ #if: {{{file6|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file5}}}|<span style="font-weight:bold">{{{filename5}}}</span>]] <span style="font-size:80%">({{filesize|{{{file5}}}}}) ([[:File:{{{file5}}}|info]])</span></div>| }}{{
  #if: {{{file6|}}} | <div style="{{ #if: {{{file7|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file6}}}|<span style="font-weight:bold">{{{filename6}}}</span>]] <span style="font-size:80%">({{{filesize6}}}) ([[:File:{{{file6}}}|info]])</span></div>| }}{{
+
  #if: {{{file6|}}} | <div style="{{ #if: {{{file7|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file6}}}|<span style="font-weight:bold">{{{filename6}}}</span>]] <span style="font-size:80%">({{filesize|{{{file6}}}}}) ([[:File:{{{file6}}}|info]])</span></div>| }}{{
  #if: {{{file7|}}} | <div style="{{ #if: {{{file8|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file7}}}|<span style="font-weight:bold">{{{filename7}}}</span>]] <span style="font-size:80%">({{{filesize7}}}) ([[:File:{{{file7}}}|info]])</span></div>| }}{{
+
  #if: {{{file7|}}} | <div style="{{ #if: {{{file8|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file7}}}|<span style="font-weight:bold">{{{filename7}}}</span>]] <span style="font-size:80%">({{filesize|{{{file7}}}}}) ([[:File:{{{file7}}}|info]])</span></div>| }}{{
  #if: {{{file8|}}} | <div style="{{ #if: {{{file9|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file8}}}|<span style="font-weight:bold">{{{filename8}}}</span>]] <span style="font-size:80%">({{{filesize8}}}) ([[:File:{{{file8}}}|info]])</span></div>| }}{{
+
  #if: {{{file8|}}} | <div style="{{ #if: {{{file9|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file8}}}|<span style="font-weight:bold">{{{filename8}}}</span>]] <span style="font-size:80%">({{filesize|{{{file8}}}}}) ([[:File:{{{file8}}}|info]])</span></div>| }}{{
  #if: {{{file9|}}} | <div style="{{ #if: {{{file10|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file9}}}|<span style="font-weight:bold">{{{filename9}}}</span>]] <span style="font-size:80%">({{{filesize9}}}) ([[:File:{{{file9}}}|info]])</span></div>| }}{{
+
  #if: {{{file9|}}} | <div style="{{ #if: {{{file10|}}}|border-bottom:1px dotted #999;|}}padding:3px 0">[[Media:{{{file9}}}|<span style="font-weight:bold">{{{filename9}}}</span>]] <span style="font-size:80%">({{filesize|{{{file9}}}}}) ([[:File:{{{file9}}}|info]])</span></div>| }}{{
  #if: {{{file10|}}} | <div style="padding:3px 0">[[Media:{{{file10}}}|<span style="font-weight:bold">{{{filename10}}}</span>]] <span style="font-size:80%">({{{filesize10}}}) ([[:File:{{{file10}}}|info]])</span></div>| }}
+
  #if: {{{file10|}}} | <div style="padding:3px 0">[[Media:{{{file10}}}|<span style="font-weight:bold">{{{filename10}}}</span>]] <span style="font-size:80%">({{filesize|{{{file10}}}}}) ([[:File:{{{file10}}}|info]])</span></div>| }}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
{|style="width:475px;padding:4px 10px" class="toc"
+
{{Multidownload
|align="left" style="vertical-align:top;padding:8px 0" width="40px"|[[Image:Download.svg|35px|link=]]
+
| name=StealthPatch
|
+
| file1=StealthPatch.7z
<span style="font-weight:bold;font-size:120%">Download Gens/GS</span><br>
+
| filename1=StealthPatch (1)
<span style="font-size:95%">Multiple downloads available</span><br>
+
| file2=StealthPatch.7z
<div style="border-bottom:1px dotted #999;padding:3px 0">[[Media:SonED_v.0.50b_(Windows).zip|<span style="font-weight:bold">Gens/GS Milestone 6 (Source Code)</span>]] <span style="font-size:80%">(1.45 MB) ([[:File:SonED_v.0.50b_(Windows).zip|info]])</span></div>
+
| filename2=StealthPatch (2)
<div style="border-bottom:1px dotted #999;padding:3px 0">[[Media:SonED_v.0.50b_(Windows).zip|<span style="font-weight:bold">Gens/GS Milestone 6 (Ubuntu 8.04+, 32-bit)</span>]] <span style="font-size:80%">(622 KB) ([[:File:SonED_v.0.50b_(Windows).zip|info]])</span></div>
+
| file3=StealthPatch.7z
<div style="border-bottom:1px dotted #999;padding:3px 0;border-bottom:none">[[Media:SonED_v.0.50b_(Windows).zip|<span style="font-weight:bold">Gens/GS Milestone 6 (Win32)</span>]] <span style="font-size:80%">(855 KB) ([[:File:SonED_v.0.50b_(Windows).zip|info]])</span></div>
+
| filename3=StealthPatch (3)
|}
+
}}
  
 
This is a specialized template to be used ONLY when multiple current links are relevant to a page. Examples of this would be:
 
This is a specialized template to be used ONLY when multiple current links are relevant to a page. Examples of this would be:
Line 37: Line 37:
 
| file1=
 
| file1=
 
| filename1=
 
| filename1=
| filesize1=
 
 
| file2=
 
| file2=
 
| filename2=
 
| filename2=
| filesize2=
 
 
| file3=
 
| file3=
 
| filename3=
 
| filename3=
| filesize3=
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 49: Line 46:
 
Add one number for each additional download, to a maximum of 10.
 
Add one number for each additional download, to a maximum of 10.
  
[[Category:Sonic Retro templates|Multidownload]]
+
[[Category:Sonic Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 22:26, 28 July 2015

Download.svg

Download StealthPatch
Multiple downloads available

This is a specialized template to be used ONLY when multiple current links are relevant to a page. Examples of this would be:

  • Sonic 2 Delta (for S2D0, S2D, S2DII, S2DIII)
  • The Nemesis Programs (the MD pack, the Kosinski searcher)

This template should NOT be used for downloads with multiple versions of the SAME THING—in that case, using Template:Download and making a Prior Versions section is style appropriate.

{{Multidownload
| name=
| file1=
| filename1=
| file2=
| filename2=
| file3=
| filename3=
}}

Add one number for each additional download, to a maximum of 10.