Template:Files: Difference between revisions

Content deleted Content added
m גרסה אחת יובאה
No edit summary
Line 1: Line 1:
<noinclude>
A template for rendering files into view switching between galleries and other view.
</noinclude>
<includeonly>{{#if:{{#explode:{{{files|}}}|;|1}}|
{{#tag:gallery
{{#tag:gallery
|{{#arraymap:{{{files|}}}; {{{file|}}}|;|xx|File:xx{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}}|\n\n}}
|{{#arraymap:{{{files|}}}; {{{file|}}}|;|xx|File:xx{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}}|\n\n}} }}
{{#switch:{{#explode:{{{files|}}}|.|-1}}
|docx = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}}
|doc = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}}
|pptx = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}}
|ppt = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}}
|xlsx = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}}
|xls = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}}
||[[file:{{{files|}}}|650px|thumb|center|{{{files|}}} [[media:{{{files|}}}|{{i|download|tooltip={{:mediawiki:download}}]] ]]
}}
}}
</includeonly><noinclude>
<templatedata>
{
"params": {
"files": {
"label": "File of Files name",
"type": "wiki-file-name",
"required": true,
"suggested": true
},
"file": {}
},
"description": "A template for rendering files into view switching between galleries and other view. "
}
</templatedata>

Revision as of 01:10, 20 February 2022

A template for rendering files into view switching between galleries and other view.


A template for rendering files into view switching between galleries and other view.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
File of Files namefiles

no description

Filerequired
filefile

no description

Unknownoptional