Changes

Jump to: navigation, search

Help:Editing

3,138 bytes added, 16:55, 12 March 2019
Google paths
<nowiki>''italic text''</nowiki>
To link a text to another page within the wiki, enclose the word in double square double brackets:
<nowiki>[[</nowiki>[[Anakao]]<nowiki>]]</nowiki>
To link to a page from an image instead of an image leading to larger version of the file shown on a page, add the link parameter to the image markup, eg.:
[[Image:Big_fish.jpg|100px200px|link=Big_fish]][[Image:Madagascar_Coffee_001.jpg|200px|link=Madagascar_Coffee]]
<pre>[[Image:Big_fish.jpg|100px200px|link=Big_fish]][[Image:Madagascar_Coffee_001.jpg|200px|link=Madagascar_Coffee]]</pre>
== Link to an image or other file ==
== Google maps ==
To create new or edit existing Google maps on pages, click on the map button httphttps://www.madacamp.com/extensions/GoogleMaps/images/button_map_open.gif above the edit box.
Find the region to display, set the various size and display options and thereafter copy the resulting &lt;googlemap>...&lt;googlemap> code into the edit box and save the page.
Various display options include satellite view, map view, adding of place markers, drawing lines etc.
 
== Google paths ==
 
Go to maps.google.com
 
Click menu in top left corner -> Your places -> MAPS
 
Click CREATE MAP (bottom left of screen)
 
Click Import
 
Select a track on the computer (eg. Track_AMBOHIMANGA-IVATO.gpx) and
drag and drop into the Upload space
 
Click on the upper three dots
 
Export to KML/KMZ
 
Select "Export to a .KML file (full icon support use .KMZ)."
 
Download
 
Click Save File, to eg. FILENAME.gpx
 
In the file, there is a list of coordinates:
 
<pre><nowiki><coordinates></nowiki>
50.1606086176,-14.2578310333,12.63
50.1606914308,-14.2576493975,11.67
etc.
</coordinates></pre>
 
Run geoconvert.sh FILENAME.gpx to change format to:
 
<pre>
-14.2578310333, 50.1606086176
-14.2576493975, 50.1606914308
etc.
</pre>
 
Copy into a new Google map, eg.:
 
<pre><nowiki><googlemap version="0.9" lat="-19.105844" lon="47.33697" height="750"
controls="large" style="width:100%;max-width:600px;">
</nowiki>
2#B2FCFF00
-14.2578310333, 50.1606086176
-14.2576493975, 50.1606914308
etc.
<nowiki></googlemap></nowiki></pre>
 
Placemarker icons are done separately above the path code
 
== Scalable maps ==
 
Modify markup on all pages containing maps to include <code>style="width:100%;max-width:600px;"</code>, e.g.:<br>
<nowiki><googlemap version="0.9" lat="-12.243119" lon="49.345264" type="satellite" zoom="16" controls="large" style="width:100%;max-width:600px;"></nowiki>
 
Use http://www.madacamp.com/Special:ReplaceText
 
Replace:
<nowiki><googlemap version="0.9" (.*)></nowiki>
with:
<nowiki><googlemap version="0.9" $1 style="width:100%;max-width:600px;"></nowiki>
 
Select 'Use regular expressions' and namespaces 'Main'.
 
Pages which already contain the string will thereafter have duplicate style declarations:
 
style="width:100%;max-width:600px;" style="width:100%;max-width:600px;"
 
Thereafter replace instances of:
style="width:100%;max-width:600px;" style="width:100%;max-width:600px;"
with:
style="width:100%;max-width:600px;"
 
 
<!--''Additional information:'' -->
== Adding RSS news feeds to pages ==
RSS (Really Simple Syndication) allows importing summaries and corresponding links to news articles. For example, a Google [httphttps://news.google.com news search] for any keyword or phrase can be imported. HOwever, Google does not include RSS feed URLs directly on their search result pages but it's not complicated to piece together the relevant feed URLs. For example, a search for the phrase "madagascar lemurs" can be included on a page as follows:
<pre><rss template="Google-feed" filterout="movie penguins">httphttps://news.google.com/news?pz=1&cf=all&ned=us&hl=en&q=%22madagascar+lemurs%22&cf=all&output=rss</rss></pre>
The output of this news search for the phrase ''madagascar lemurs'', filtering out results with the terms ''penguins'' and ''movie'', becomes:
<rss template="Google-feed" filterout="movie penguinsdeprecated">httphttps://news.google.com/news?pz=1&cf=all&ned=us&hl=en&q=%22madagascar+lemurs%22&cf=all&output=rss</rss>
Other non-Google RSS feeds may include a feed icon [[File:RSS_icon.png|14px]] to indicate the whereabouts of RSS feeds.
<gallery>
Image:Ilakaka 001.jpgImage:Ilakaka 002.jpg|link=Ilakaka|Image links to a pageImage:Ilakaka 003.jpgImage:Ilakaka 004.jpg|[[Help:Contents/Links|Links]] can be put in captions.Image:Ilakaka 005.jpgImage:Ilakaka 006.jpg|Full [[MediaWiki]]<br />[[syntax]] may be used...
</gallery>
<pre><nowiki>
<gallery>
Image:Ilakaka 001.jpgImage:Ilakaka 002.jpg|link=Ilakaka|Image links to a pageImage:Ilakaka 003.jpgImage:Ilakaka 004.jpg|[[Help:Contents/Links|Links]] can be put in captions.Image:Ilakaka 005.jpgImage:Ilakaka 006.jpg|Full [[MediaWiki]]<br />[[syntax]] may now be used...
</gallery>
</nowiki></pre>
caption="Caption above gallery"
widths=''n'' Image - image widths in pixels
heights=''n'' Image - image heights in pixels
perrow=''n'' Number - number of images per row mode=''n'' - can be used with the following paramenters:* traditional - the default gallery display* nolines - like traditional but without border lines.* packed - all images will have the same height but different widths, with minimal space between images. The rows will organise themselves according to the screen width.* packed-overlay - shows captions on the image in a semi-transparent white overlay.* packed-hover - similar to packed-overlay but with the caption and box showing on hover.
== Wide images ==
== Displaying YouTube videos ==
<s>To display a video from YouTube on this site, extract and copy the relevant video ID that is part of a YouTube URL, e.g.[httphttps://www.youtube.com/watch?v=_OKs7qpJvRI&feature=related httphttps://www.youtube.com/watch?v=<font color="#bd0000">AzUsrLi8P4ovDYzsT3d06I</font>&feature=related] and paste it into place in the edit form as follows:
<pre> <nowiki><HTML5video type="youtube" width="600" height="338">AzUsrLi8P4ovDYzsT3d06I</youtubeHTML5video></nowiki></pre>
<HTML5video type="youtube" width="600" height="338">AzUsrLi8P4ovDYzsT3d06I</youtube></sHTML5video>
New code 2015:The ''width'' and ''height'' parameters are optional.
<nowiki><HTML5video type="youtube" width="400600" height="300" autoplay="false338">AzUsrLi8P4ocaODxMEUq1w</HTML5video></nowiki>
<HTML5video type="youtube">AzUsrLi8P4o<= Uploading videos MadaCamp == To upload a video on MadaCamp, firstly make the video available in three formats: .mp4, .ogg and .webm. This can easily be done via an online video conversion tool such as [https://HTML5video>cloudconvert.com cloudconvert.com]. Thereafter save the three versions on your system before uploading them with identical fileames but with the different file extensions, e.g.:
Or by uploading video on MadaCamp in three formats (.mp4, .ogg and .webm) named, e.g.:
Dragonfile.mp4
Dragonfile.offogg
Dragonfile.webm
Thereafter include the video on the page without the file suffix:
<nowiki><HTML5video width="520" height="320" autoplay="true" loop="true">Dragonfly</HTML5video></nowiki>
This allows users Different browsers to will automatically select a the suitable format for their system, smartphone or whateverindividual systems.
<HTML5video width="520" height="320" autoplay="true" loop="true">Dragonfly</HTML5video>
<!--Bug: Thumbs does not show up on Ipad, which affects autoplay="false" mode. https://www.mediawiki.org/w/index.php?oldid=2285855 -->
 
<!--
== Editing and publishing videos ==
For tips a tricks on editing video in Windows or Mac OSX or using various cloud based (online) tools, watch BBC's [http://news.bbc.co.uk/2/hi/programmes/click_online/9484842.stm The essential guide to video editing] webcast from 13 May 2011.
 
-->
<!--

Navigation menu