THIS IS ONLY A TESTWIKI! LH, MW 1.39.7, PHP 8, SMW 4.1.3
Widget:Timeline: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 6: | Zeile 6: | ||
== Parameters == | == Parameters == | ||
* '''id''' - timeline id (everything after "''source=''") | * '''id''' - timeline id (everything after "''source=''") | ||
* '''height''' timeline height, default = | * '''height''' timeline height, default = 650 (px) | ||
* '''width''' timeline width, 100% is default, can be % or pixels (without %) | * '''width''' timeline width, 100% is default, can be % or pixels (without %) | ||
* '''zoom''' zoom ("initial zoom") in the timeline embed code | * '''zoom''' zoom ("initial zoom") in the timeline embed code | ||
Zeile 17: | Zeile 17: | ||
== Copy to your site == | == Copy to your site == | ||
To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''. | To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''. | ||
</noinclude><includeonly><iframe frameborder="0" width="<!--{$width|escape:'html'|default:'100%'}-->"height="<!--{$height|escape:'html'|default: | </noinclude><includeonly><iframe frameborder="0" width="<!--{$width|escape:'html'|default:'100%'}-->"height="<!--{$height|escape:'html'|default:650}-->" src="https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=<!--{$id|escape:'urlpathinfo'}-->&initial_zoom=<!--{$zoom|escape:'html'|default:2}-->&height=<!--{$height|escape:'html'|default:500}-->"></iframe> | ||
</includeonly> | </includeonly> |
Version vom 12. August 2024, 17:16 Uhr
To insert this widget, use the following code:
{{#widget:Timeline|id=1xuY4upIooEeszZ_lCmeNx24eSFWe0rHe9ZdqH2xqVNk}}
Parameters
- id - timeline id (everything after "source=")
- height timeline height, default = 650 (px)
- width timeline width, 100% is default, can be % or pixels (without %)
- zoom zoom ("initial zoom") in the timeline embed code
This widget allows you to add a Timeline to your wiki page.
Using this widget
For information on how to use this widget, see the widget description page on MediaWikiWidgets.org.
Copy to your site
To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:Timeline.