Différences entre les versions de « Widget:Framacarte »

De dieudo.fr
Aller à la navigation Aller à la recherche
Ligne 1 : Ligne 1 :
<noinclude>
<noinclude>
This widget allows you to add [http://www.dailymotion.com/ Daily Motion] video player to your wiki page.
This widget allows you to add [http://www.framacarte.org/ Framacarte] your wiki page.
 
It's created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]] as a replacement for [[mediawikiwiki:Extension:VideoFlash|VideoFlash extension]].


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>
|id=x5c4iy
|id=15-m_2420
|width=420
|height=600
|height=336
|zoom=5
|latitude=47.406
|longitude=1.813
}}</nowiki>
}}</nowiki>


Width and hight are optional, 420x336 is a default, "id" is a first part of the file name in page URL (before first underscore, see example above).
Height (300), zoom (6), latitude (47.406) and longitude (1.813) are optional (default values), "id" is the identification number of the map (see example above).


<object width="<!--{$width|default:420|escape:'html'}-->" height="<!--{$height|default:336|escape:'html'}-->"><param name="movie" value="http://www.dailymotion.com/swf/<!--{$id|escape:'urlpathinfo'}-->&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/<!--{$id|escape:'urlpathinfo'}-->&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0" type="application/x-shockwave-flash" width="<!--{$width|default:420|escape:'html'}-->" height="<!--{$height|default:336|escape:'html'}-->" allowFullScreen="true" allowScriptAccess="always"></embed></object>
<object width="<!--{$width|default:420|escape:'html'}-->" height="<!--{$height|default:336|escape:'html'}-->"><param name="movie" value="http://www.dailymotion.com/swf/<!--{$id|escape:'urlpathinfo'}-->&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/<!--{$id|escape:'urlpathinfo'}-->&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0" type="application/x-shockwave-flash" width="<!--{$width|default:420|escape:'html'}-->" height="<!--{$height|default:336|escape:'html'}-->" allowFullScreen="true" allowScriptAccess="always"></embed></object>


</noinclude><includeonly><iframe width="100%" height="<!--{$height|default:300|escape:'html'}-->px" frameBorder="0" src="https://framacarte.org/fr/map/<!--{$id|escape:'urlpathinfo'}-->?scaleControl=false&miniMap=false&scrollWheelZoom=false&zoomControl=true&allowEdit=false&moreControl=true&datalayersControl=true&onLoadPanel=undefined&captionBar=false#<!--{$zoom|default:6|escape:'html'}-->/<!--{$latitude|default:47.406|escape:'html'}-->/<!--{$longitude|default:1.813|escape:'html'}-->"></iframe><p><a href="https://framacarte.org/fr/map/<!--{$id|escape:'urlpathinfo'}-->">Voir en plein écran</a></p></includeonly>
</noinclude><includeonly><iframe width="100%" height="<!--{$height|default:300|escape:'html'}-->px" frameBorder="0" src="https://framacarte.org/fr/map/<!--{$id|escape:'urlpathinfo'}-->?scaleControl=false&miniMap=false&scrollWheelZoom=false&zoomControl=true&allowEdit=false&moreControl=true&datalayersControl=true&onLoadPanel=undefined&captionBar=false#<!--{$zoom|default:6|escape:'html'}-->/<!--{$latitude|default:47.406|escape:'html'}-->/<!--{$longitude|default:1.813|escape:'html'}-->"></iframe><p><a href="https://framacarte.org/fr/map/<!--{$id|escape:'urlpathinfo'}-->">Voir en plein écran</a></p></includeonly>

Version du 1 mai 2016 à 18:17

This widget allows you to add Framacarte your wiki page.

To insert this widget, use the following code:

{{#widget:Framacarte
|id=15-m_2420
|height=600
|zoom=5
|latitude=47.406
|longitude=1.813
}}

Height (300), zoom (6), latitude (47.406) and longitude (1.813) are optional (default values), "id" is the identification number of the map (see example above).

<object width="" height=""><param name="movie" value="http://www.dailymotion.com/swf/&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/&v3=1&colors=background:DDDDDD;glow:FFFFFF;foreground:333333;special:FFC300;&related=0" type="application/x-shockwave-flash" width="" height="" allowFullScreen="true" allowScriptAccess="always"></embed></object>