Content deleted Content added
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
{{Files|files=JustLogo.svg;Fox on shelf.jpg}} |
{{Files|files=JustLogo.svg;Fox on shelf.jpg}} |
||
== Office files == |
== Office files == |
||
If the template [[Template:ExternalOfficeRenderer|ExternalOfficeRenderer]] exists the office file will be rendered using the url in the template. Otherwise the office file type icon will be used. |
|||
<pre><nowiki>{{Files|files=על המערכת.docx}}</nowiki></pre> |
<pre><nowiki>{{Files|files=על המערכת.docx}}</nowiki></pre> |
||
| Line 35: | Line 36: | ||
}}|}}</div> |
}}|}}</div> |
||
|{{#switch:{{#explode:{{{files|}}}|.|-1}} |
|{{#switch:{{#explode:{{{files|}}}|.|-1}} |
||
|docx = {{# |
|docx = {{#ifexist:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path={{{files|{{{file|}}}}}}}}|[[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 = {{# |
|doc = {{#ifexist:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path={{{files|{{{file|}}}}}}}}|[[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> |
||
|pptx = {{# |
|pptx = {{#ifexist:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path={{{files|{{{file|}}}}}}}}|[[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 = {{# |
|ppt = {{#ifexist:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path={{{files|{{{file|}}}}}}}}|[[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> |
||
|xls = {{# |
|xls = {{#ifexist:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path={{{files|{{{file|}}}}}}}}|[[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 = {{# |
|xlsx = {{#ifexist:Template:ExternalOfficeRenderer|{{ExternalOfficeRenderer|path={{{files|{{{file|}}}}}}}}|[[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> |
||
|#default = [[file:{{{files|}}}|650px|thumb|center|{{{files|}}} [[media:{{{files|}}}|{{:mediawiki:download}}]] ]] |
|#default = [[file:{{{files|}}}|650px|thumb|center|{{{files|}}} [[media:{{{files|}}}|{{:mediawiki:download}}]] ]] |
||
}} |
}} |
||
Revision as of 13:34, 8 April 2022
A template for rendering files into view switching between galleries and other view in closed knowledge portals.
Simple file
Office files
If the template ExternalOfficeRenderer exists the office file will be rendered using the url in the template. Otherwise the office file type icon will be used.
{{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 |