Content deleted Content added
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
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 in closed knowledge portals. |
||
== Simple file == |
== Simple file == |
||
<pre><nowiki>{{Files|files=JustLogo.svg}}</nowiki></pre> |
<pre><nowiki>{{Files|files=JustLogo.svg}}</nowiki></pre> |
||
| Line 13: | Line 13: | ||
{{Files|files=על המערכת.docx}} |
{{Files|files=על המערכת.docx}} |
||
<embedit>src="https://view.officeapps.live.com/op/embed.aspx?src=https://templates.cdn.openfox.io/w/upload/templates/9/96/%D7%A2%D7%9C_%D7%94%D7%9E%D7%A2%D7%A8%D7%9B%D7%AA.docx"</embedit> |
|||
</noinclude> |
</noinclude> |
||
<includeonly>{{#if:{{#explode:{{{files|}}}|;|1}}| |
<includeonly>{{#if:{{{files|}}}|{{#if:{{#explode:{{{files|}}}|;|1}}| |
||
{{#tag:gallery |
{{#tag:gallery |
||
|{{#arraymap:{{{files|}}}; {{{file|}}}|;|xx| |
|{{#arraymap:{{{files|}}}; {{{file|}}}|;|xx|{{#switch:{{#explode:xx|.|-1}} |
||
|docx = {{#ifexists:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path=xx}}|File:Microsoft_Office_Word_(2019–present).svg{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} }} |
|||
|doc = {{#ifexists:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path=xx}}|File:Microsoft_Office_Word_(2019–present).svg{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} }} |
|||
|pptx = {{#ifexists:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path=xx}}|File:Microsoft_Office_PowerPoint_(2019–present).svg{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} }} |
|||
|ppt = {{#ifexists:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path=xx}}|File:Microsoft_Office_PowerPoint_(2019–present).svg{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} }} |
|||
|xls = {{#ifexists:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path=xx}}|File:Microsoft_Office_Excel_(2019–present).svg{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} }} |
|||
|xlsx = {{#ifexists:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path=xx}}|File:Microsoft_Office_Excel_(2019–present).svg{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} }} |
|||
|#default = File:xx{{!}}{{#explode:xx|.|0}}{{!}}link={{filepath:xx}} |
|||
}}|\n\n}} }}<div class="d-none"><!-- embed files, you know for search -->{{#arraymap:{{{files|}}}; {{{file|}}}|;|xx|{{#switch:{{#explode:xx|.|-1}} |
|||
|docx = [[File:xx]] |
|||
|doc = [[File:xx]] |
|||
|pptx = [[File:xx]] |
|||
|ppt = [[File:xx]] |
|||
|xls = [[File:xx]] |
|||
|xlsx = [[File:xx]] |
|||
|#default = |
|||
}}|}}</div> |
|||
|{{#switch:{{#explode:{{{files|}}}|.|-1}} |
|{{#switch:{{#explode:{{{files|}}}|.|-1}} |
||
|docx = [[File:Microsoft_Office_Word_(2019–present).svg|center|thumb|200px|link={{filepath:{{{files|}}}}}|{{{files|}}}]]<span class="d-none">[[file:{{{files|}}}|thumb|class=d-none]]</span> |
|||
|docx = https://view.officeapps.live.com/op/embed.aspx?src={{filepath:{{{files|}}} }} |
|||
|doc = [[File:Microsoft_Office_Word_(2019–present).svg|center|thumb|200px|link={{filepath:{{{files|}}}}}|{{{files|}}}]]<span class="d-none">[[file:{{{files|}}}|thumb|class=d-none]]</span> |
|||
|doc = https://view.officeapps.live.com/op/embed.aspx?src={{filepath:{{{files|}}} }} |
|||
|pptx = [[File:Microsoft_Office_PowerPoint_(2019–present).svg|center|thumb|200px|link={{filepath:{{{files|}}}}}|{{{files|}}}]]<span class="d-none">[[file:{{{files|}}}|thumb|class=d-none]]</span> |
|||
|pptx = https://view.officeapps.live.com/op/embed.aspx?src={{filepath:{{{files|}}} }} |
|||
|ppt = [[File:Microsoft_Office_PowerPoint_(2019–present).svg|center|thumb|200px|link={{filepath:{{{files|}}}}}|{{{files|}}}]]<span class="d-none">[[file:{{{files|}}}|thumb|class=d-none]]</span> |
|||
|ppt = https://view.officeapps.live.com/op/embed.aspx?src={{filepath:{{{files|}}} }} |
|||
|xls = [[File:Microsoft_Office_Excel_(2019–present).svg|center|thumb|200px|link={{filepath:{{{files|}}}}}|{{{files|}}}]]<span class="d-none">[[file:{{{files|}}}|thumb|class=d-none]]</span> |
|||
|xlsx = https://view.officeapps.live.com/op/embed.aspx?src={{filepath:{{{files|}}} }} |
|||
|xlsx = [[File:Microsoft_Office_Excel_(2019–present).svg|center|thumb|200px|link={{filepath:{{{files|}}}}}|{{{files|}}}]]<span class="d-none">[[file:{{{files|}}}|thumb|class=d-none]]</span> |
|||
|xls = https://view.officeapps.live.com/op/embed.aspx?src={{filepath:{{{files|}}} }} |
|||
|[[file:{{{files|}}}|650px|thumb|center|{{{files|}}} [[media:{{{files|}}}| |
|#default = [[file:{{{files|}}}|650px|thumb|center|{{{files|}}} [[media:{{{files|}}}|לחצו להורדה]] ]] |
||
}} |
|||
}}}} |
|||
</includeonly><noinclude> |
</includeonly><noinclude> |
||
<templatedata> |
<templatedata> |
||
| Line 34: | Line 49: | ||
"params": { |
"params": { |
||
"files": { |
"files": { |
||
"label": " |
"label": "List of Files name", |
||
"type": "wiki-file-name", |
"type": "wiki-file-name", |
||
"required": true, |
"required": true, |
||
Revision as of 12:56, 8 April 2022
A template for rendering files into view switching between galleries and other view in closed knowledge portals.
Simple file
Office files
{{Files|files=על המערכת.docx}}
A template for rendering files into view switching between galleries and other view.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| List of Files name | files | no description | File | required |
| file | file | no description | Unknown | optional |