Шаблон:Download: различия между версиями
(-) |
(-) |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
<noinclude> |
|||
<includeonly>{{#vardefine:internalfilestatus|{{#if: {{{file|}}}|{{#ifexist: Media:{{{file}}}|exists|doesnotexist}}|notprovided}}}}<!-- |
|||
<!--T:1--> |
|||
-->{|cellpadding="0" cellspacing="0" class="infobox download" style="float:none; {{#if: {{{file|}}} ||{{#if: {{{external|}}} ||display: none}}}}" | |
|||
</noinclude><includeonly>{| style="border-radius: 10px; border: 1px solid #aaa; padding:.5em 1.5em; margin:1em 0; box-shadow: 0px 1px 10px 0px rgba(0,0,0,.25);" |
|||
|- |
|- |
||
|align="left" width="50px"|[[File:Download.png|35px|link=Special:FilePath/{{{file}}}]] |
|||
| style="padding: 10px 15px; line-height: 2em;{{#ifeq: {{#var:internalfilestatus}} | exists || display: none}}"| {{#if: {{{file|}}} | [[Media:{{{file}}}|<i class="fa fa-download fa-2x" style="padding-right: 5px"></i> Download {{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} ]] <span style="font-size: 10px">([[:File:{{{file}}}|info]]{{#if: {{{raw|}}} | , [[Media:{{{raw}}}|raw dump]] |}})</span>|}} |
|||
|[[Media:{{{file}}}|<span style="font-weight:bold;font-size:120%">Download {{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}</span>]] |
|||
|- |
|||
<div>'''File:''' <span style="font-size:95%">{{{file}}} {{#if:{{{filesize|}}}|({{{filesize}}})|}} ([[:File:{{{file}}}|info]])</span><br> |
|||
| style="padding: 10px 15px; line-height: 2em;{{#ifeq: {{#var:internalfilestatus}} | doesnotexist || display: none}}"| Error: The [[Media:{{{file}}}|download file]] provided does not exist, please upload it or fix the file name if it's incorrect. |
|||
{{ #if: {{{version|}}} |'''Current version:''' <span style="font-size:95%">{{{version}}}</span>|}}</div> |
|||
|- |
|||
|}</includeonly><noinclude> |
|||
| style="padding: 10px 15px; line-height: 2em;{{#if: {{{external|}}} ||display: none}}"| {{#if: {{{external|}}} | [{{{external}}} <i class="fa fa-external-link fa-2x" style="padding-right: 5px"></i> Download {{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} from external mirror]|}} |
|||
{{Download |
|||
|}{{#ifexpr: {{#if: {{{file|}}}|1|0}}=0 and {{#if: {{{external|}}}|1|0}}=1 | [[Category:External links without a download]] | }}<!-- |
|||
|title=Download.png |
|||
-->{{#ifeq: {{#var:internalfilestatus}} | exists | [[Category:Pages with downloads]]||}}<!-- |
|||
|version=1 |
|||
-->{{#ifeq: {{#var:internalfilestatus}} | doesnotexist | [[Category:Broken download links]]||}}<!-- |
|||
|file=Download.png |
|||
-->{{#ifeq: {{#var:internalfilestatus}} | notprovided | [[Category:Pages with no download links]]||}}</includeonly> |
|||
|filesize=who cares}} |
|||
<!--T:2--> |
|||
The Download template is used for downloadable files on <s>Sonic Retro</s> TCRF! Only one should be used per page; if there are multiple downloadable files, the other should be listed as Media: links. |
|||
<!--T:3--> |
|||
<pre> |
|||
{{Download |
|||
| title= |
|||
| version= |
|||
| file= |
|||
| filesize= |
|||
}} |
|||
</pre> |
|||
<!--T:4--> |
|||
File is required; the rest of the parameters are optional, but recommended. |
|||
<noinclude>[[Category:File templates]]</noinclude> |
|||
<noinclude> |
|||
</noinclude> |
Текущая версия от 19:24, 21 июля 2024
![]() |
Download Download.png |
The Download template is used for downloadable files on Sonic Retro TCRF! Only one should be used per page; if there are multiple downloadable files, the other should be listed as Media: links.
{{Download | title= | version= | file= | filesize= }}
File is required; the rest of the parameters are optional, but recommended.