Template:Download: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
| 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>|}}
| 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>|}}
|-
|-
| style="padding: 10px 15px; line-height: 2em;{{#ifeq: {{#var:internalfilestatus}} | doesnotexist || display: none}}"| Error: The [[Media:{{{file}}}|file]] provided does not exist
| 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.
|-
|-
| 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]|}}
| 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]|}}
|}{{#ifexpr: {{#if: {{{file|}}}|1|0}}=0 and {{#if: {{{external|}}}|1|0}}=1 | [[Category:External links without a download]] |  }}
|}{{#ifexpr: {{#if: {{{file|}}}|1|0}}=0 and {{#if: {{{external|}}}|1|0}}=1 | [[Category:External links without a download]] |  }}
{{#ifeq: {{#var:internalfilestatus}} | doesnotexist | [[Category:Broken download links]]||}}
{{#ifeq: {{#var:internalfilestatus}} | doesnotexist | [[Category:Broken download links]]||}}

Revision as of 20:22, April 2, 2023