Difference between revisions of "Widget:Komoot"

From Team Satoshi
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
== Usage ==
 
== Usage ==
  
To insert this widget, use the following code (only <code>id</code> is required):
+
To insert this widget, use the following code:
  
  <nowiki>{{#widget:Komoot|id=772142290|width=100%|height=700}}</nowiki>
+
  <nowiki>{{#widget:Komoot|id=772142290}}</nowiki>
</noinclude>
 
  
By default, the width of the embedded <code>iframe</code> is <code>100%</code> and default height is <code>700px</code>. You can change both using the respective optional parameters:
+
By default, the width of the embedded <code>iframe</code> is <code>100%</code> and the default height is <code>700px</code>. You can change both using the respective optional parameters:
  
 
  <nowiki>{{#widget:Komoot|id=772142290|width=100%|height=700}}</nowiki>
 
  <nowiki>{{#widget:Komoot|id=772142290|width=100%|height=700}}</nowiki>
 
</noinclude>
 
</noinclude>
  
<includeonly><iframe src="//https://www.komoot.com/tour/<!--{$id|escape:'urlpathinfo'}-->/embed?profile=1 width="<!--{$width|default:100%|escape:'html'}-->" height="<!--{$height|default:700|escape:'html'}-->" marginwidth="0" marginheight="0" scrolling="no" style="margin-bottom: 2rem; max-width: 100%;" frameborder="0" scrolling="no" allowfullscreen></iframe></includeonly>
+
<includeonly><iframe src="//www.komoot.com/tour/<!--{$id|escape:'urlpathinfo'}-->/embed?profile=1" width="<!--{$width|default:'100%'|escape:'html'}-->" height="<!--{$height|default:700|escape:'html'}-->" marginwidth="0" marginheight="0" scrolling="no" style="margin-bottom: 1rem; max-width: 100%;" frameborder="0" scrolling="no" allowfullscreen></iframe></includeonly>

Latest revision as of 12:57, 22 July 2022

This widget allows you to add Komoot tours to a wiki page.

Usage

To insert this widget, use the following code:

{{#widget:Komoot|id=772142290}}

By default, the width of the embedded iframe is 100% and the default height is 700px. You can change both using the respective optional parameters:

{{#widget:Komoot|id=772142290|width=100%|height=700}}