|
|
From Sonic Retro
Template talk:DownloadFrom Sonic RetroSuggestion for new download boxI've always been kind of irritated by the download box. There's some usability issues with it: it's wordy, and you're linking to something by using the words "click here", which can basically be easily avoided...
This one conveys the exact same information using less words, and uses the exact same template parameters, so as to not break compatibility. The template also had the variable "plural" in it...I ran a search for "plural" and couldn't find any pages using it. However, that becomes irrelevant if we were to use this new box. The template code (it will need to be tested): {|style="width:400px;" class="toc"
|align="left" width="50px"|[[Image:Download.svg|40px|link=File:{{{file}}}]]
|
[[Media:{{{file}}}|<span style="font-weight:bold;font-size:140%">Download {{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span>]]
<div style="font-size:90%">'''File:''' <span style="font-size:95%">{{{file}}} {{#if:{{{filesize|}}}|({{{filesize}}})|}}</span><br>
{{ #if: {{{version|}}} |'''Current version:''' <span style="font-size:95%">{{{version}}}</span>|}}</div>
|}
--PicklePower 23:43, 25 October 2009 (UTC)
--Afti
{|style="width:320px;padding:4px 10px" class="toc"
|align="left" width="40px"|[[Image:Download.svg|35px|link=Special:FilePath/{{{file}}}]]
|
[[Media:{{{file}}}|<span style="font-weight:bold;font-size:120%">Download {{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span>]]
<div style="font-size:80%">'''File:''' <span style="font-size:95%">{{{file}}} {{#if:{{{filesize|}}}|({{{filesize}}})|}} ([[:File:{{{file}}}|info]])</span><br>
{{ #if: {{{version|}}} |'''Current version:''' <span style="font-size:95%">{{{version}}}</span>|}}</div>
|}
How's this? I added some padding to give the icon some horizontal room, linked the icon to the file directly, and added (info) after the filesize. --PicklePower 05:02, 27 October 2009 (UTC)
Multi-download box...
{|style="width:475px;padding:4px 10px" class="toc"
|align="left" style="vertical-align:top;padding:8px 0" width="40px"|[[Image:Download.svg|35px|link=]]
|
<span style="font-weight:bold;font-size:120%">Download {{name}}</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>| '''See [[Template:Multidownload]] on how to use this template.''' }}
{{ #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: {{{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: {{{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: {{{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: {{{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: {{{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: {{{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: {{{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: {{{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>| }}
|}
And this should be the Wikicode...I say should because I still need a chance to test it. Supports up to 10 files. --PicklePower 16:57, 27 October 2009 (UTC) |
