« Widget:Google Presentation » : différence entre les versions
De Wiki des possibles
(créer le widget à partir de mediawikiwidgets.org) |
(essayer avec un exemple de widget qui n'est pas brisé) |
||
Ligne 1 : | Ligne 1 : | ||
<noinclude>__NOTOC__ | <noinclude>__NOTOC__ | ||
This widget allows you to add '''[ | This widget allows you to add '''[https://support.google.com/docs/answer/2763168?hl=en&ref_topic=19434 Google Slides]''' to your wiki page. | ||
Documentation for this widget can be found at [https://www.mediawikiwidgets.org/Google_Presentation MediaWiki Widgets], but has been modified to be similar to [[Widget:Google Spreadsheet]]. | |||
To insert this widget, use the following code: | To insert this widget, use the following code: | ||
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>| | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|key=1wUktKYpGaQ5atYjlFp1Cn1lRGSqlEHtGeQw9VHOYhrE}}</nowiki> | ||
== Parameters == | == Parameters == | ||
* ''' | * '''key''' - key parameter in document URL | ||
* ''' | * '''width''' and '''height''' define spreadsheet dimensions, 500x300 is default, but you might want to copy it from embed code since size depends on fields you have | ||
{{ | == Sample result == | ||
{{#widget:Google Presentation|key=2PACX-1vTm6CBGHSIF8GUW0crKNJJXxaZ14r3QQBWYqXbXT1KKBkLXPLTWl7r6Xb_KOL4dqulWMbVFhIlLZyFJ}} | |||
== | ==Widget internals== | ||
Widgets do not use [[mw:Help:Magic_words#Parser_functions|parser functions]]. Instead, a template programming language known as "Smarty" is used. Refer to the [https://www.smarty.net/docs/en/ Smarty 3 Manual] for the details. | |||
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:500}-->" height="<!--{$height|escape:'html'|default:300}-->" frameborder="0" src="//docs.google.com/presentation/d/<!--{$key|escape:'urlpathinfo'}-->/embed?widget=true&#slide=id.i0"></iframe></includeonly> | |||
<noinclude>{{Helpful tools}} | |||
[[Category:Widgets]]</noinclude> | |||
</noinclude><includeonly |
Version du 19 janvier 2022 à 12:24
This widget allows you to add Google Slides to your wiki page.
Documentation for this widget can be found at MediaWiki Widgets, but has been modified to be similar to Widget:Google Spreadsheet.
To insert this widget, use the following code:
{{#widget:Google Presentation|key=1wUktKYpGaQ5atYjlFp1Cn1lRGSqlEHtGeQw9VHOYhrE}}
Parameters
- key - key parameter in document URL
- width and height define spreadsheet dimensions, 500x300 is default, but you might want to copy it from embed code since size depends on fields you have
Sample result
Widget internals
Widgets do not use parser functions. Instead, a template programming language known as "Smarty" is used. Refer to the Smarty 3 Manual for the details.