No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
{{#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}} |
|{{#switch:{{#explode:{{{files|}}}|.|-1}} |
||
|docx = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}} |
|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|}}}}} |
|doc = https://view.officeapps.live.com/op/embed.aspx?src={{SERVER}}{{filepath:{{{files|}}}}} |
||
| Line 23: | Line 23: | ||
|xlsx = 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|}}}}} |
|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> |
</includeonly><noinclude> |
||
<templatedata> |
<templatedata> |
||
Revision as of 01:22, 20 February 2022
A template for rendering files into view switching between galleries and other view.
Simple file
{{Files|files=JustLogo.svg}}
{{#if:|
-
JustLogo
|{{#switch:svg |docx = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.iohttps://templates.openfox.io/w/uploads/templates/7/75/JustLogo.svg |doc = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.iohttps://templates.openfox.io/w/uploads/templates/7/75/JustLogo.svg |pptx = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.iohttps://templates.openfox.io/w/uploads/templates/7/75/JustLogo.svg |ppt = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.iohttps://templates.openfox.io/w/uploads/templates/7/75/JustLogo.svg |xlsx = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.iohttps://templates.openfox.io/w/uploads/templates/7/75/JustLogo.svg |xls = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.iohttps://templates.openfox.io/w/uploads/templates/7/75/JustLogo.svg |[[file:JustLogo.svg|650px|thumb|center|JustLogo.svg [[media:JustLogo.svg| }}
Multiple files
{{Files|files=JustLogo.svg;Fox on shelf.jpg}}
{{#if:Fox on shelf.jpg|
-
JustLogo
-
Fox on shelf
|{{#switch:jpg |docx = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.io |doc = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.io |pptx = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.io |ppt = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.io |xlsx = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.io |xls = https://view.officeapps.live.com/op/embed.aspx?src=https://templates.openfox.io |[[file:JustLogo.svg;Fox on shelf.jpg|650px|thumb|center|JustLogo.svg;Fox on shelf.jpg [[media:JustLogo.svg;Fox on shelf.jpg| }}
Office files
A template for rendering files into view switching between galleries and other view.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File of Files name | files | no description | File | required |
| file | file | no description | Unknown | optional |