APE = AutoPlayer + Embed

See Cookbook:Ape.

Ape-Sandbox, click here to test the recipe

Some examples on this page are in source text only in order to not significantly increase the page load size and time.

To enable SVG embed, also add this line:

  # Disable SVG handling by the core (since PmWiki 2.2.85)
  $ImgExtPattern="\\.(?:gif|jpg|jpeg|png|GIF|JPG|JPEG|PNG)";

Embed a playlist from Youtube

%embed% https://youtube.com/playlist?list=OLAK5uy_nNeOVURq1RcIt9SIHcfBkMlqHpEUWzdJc

https://youtube.com/playlist?list=OLAK5uy_nNeOVURq1RcIt9SIHcfBkMlqHpEUWzdJc

Code from Pastebin

%embed width=100pct% https://pastebin.com/Ms8bFtfZ %%

https://pastebin.com/Ms8bFtfZ

HTML5 <audio>

Boom Boom (harmonica blues) : \
%embed width=100px% [[Attach:boum-boum.mp3|mp3]] [[Attach:boum-boum.ogg | ogg]]%%

Boom Boom (harmonica blues) : mp3 ogg

HTML5 <video>

%embed width=400px height=300px% \
[[Attach:1954PopeyeBrideGloom.webm| Attach:1954PopeyeBrideGloom.jpg ]] \
[[Attach:1954PopeyeBrideGloom.mp4| (mp4) ]]  \
[[Attach:1954PopeyeBrideGloom.ogv| (ogv) ]] %%

Flash SWF

%embed% https://d39i6hsgi8vxmf.cloudfront.net/swf/5/animProps03.swf %%

Other

 %embed width=100pct height=600px% http://www.youscribe.com/BookReader/Index/2844721?documentId=3087004 %%

%embed width=100pct% [[https://docs.google.com/document/d/1RCnJiTLzyg3C9zXtZuPaCTt5jvglKKc93WFDFEL6tyc/pub|My shared document]] %%

%embed% http://www.openstreetmap.org/?mlat=48.50696&mlon=2.29063#map=17/48.50696/2.29063 %%

Google Calendar

%embed width=100pct% https://www.google.com/calendar/embed?src=jn78u2932bao8q997th2g7riik@group.calendar.google.com&ctz=Europe/Paris

Embed a PDF file

Attached file

%player width=600px height=300px% Attach:test-pdf.pdf %%

Embed video players

Daily Motion

 %embed center% https://dai.ly/x30kg1y %%

TED

 %embed% https://www.ted.com/talks/yuval_noah_harari_what_explains_the_rise_of_humans %%

Archive.org Video

 %embed% https://archive.org/details/Europeanposte-StanLaurelOliverHardyFlatTire921 %%

%embed% https://archive.org/details/1954PopeyeBrideGloom %%

Archive.org Audio

 %embed height=30px% https://archive.org/details/bt2006-05-12.flac16 %%

TeacherTube

 %embed% http://www.teachertube.com/video/the-life-cycle-of-a-star-23014 %%
 %embed height=30px% https://www.teachertube.com/audio/8057 %%

Embed 3D warehouse model

%embed% https://3dwarehouse.sketchup.com/model/fb76e147f8fbca6830a515d10d7edb36/Tent-sail %%

Embed OpenStreetMap maps

Simple link

%map% [[https://www.openstreetmap.org/?mlat=48.85359&mlon=2.34805#map=14/48.85359/2.34805 | \
Paris, France, Parvis de Notre-Dame]] %%

Another map, note the bold text in the marker balloon

 
%map% [[https://www.openstreetmap.org/?mlat=42.6917&mlon=23.3323#map=16/42.6917/23.3323| \
'''Акцент България ЕООД''',  адрес: София 1000, ул. "Достоевски" 4, етаж 1]] %%

Short link:

 
%map% https://osm.org/go/0BOd48k5--?m= %%

Multiple markers in a single map, note the links in the marker balloons

: %list map% 51.5728226,-0.3171152  :  [[NPH/ | Northwick Park]]
: 51.3771046,-0.5286385  :  [[SPH/ | St Peters]]
: 51.5041414,-0.0867275  :  [[STH/ | Tommies]]
: 51.4263919,-0.1754239  :  [[SGH/ | St Georges]]
: 51.4149802,-0.2826717  :  [[KNT/ | Kingston]]
: 51.4843461,-0.1817164  :  [[CWH/ | Chelsea and westminster]]
: 51.452866,-0.016556    :  [[LEW/ | Lewisham University Hospital]]
: 53.3844144,-2.1332289  :  [[SHH/ | Stepping Hill]]
: 50.8479729,-0.7796027  :  [[SRH/ | Chichester]]
: 51.3900834,-0.1100161  :  [[CUH/ | Croydon]]
: 51.4492196,-0.9581473  :  [[RBH/ | Royal Berkshire]]
: 51.3918163,-2.3914686  :  [[BAT/ | Bath (Royal United Hospital)]]
: 51.4944786,-2.5951296  :  [[NBT/ | North Bristol Trust]]
: 51.4593494,-2.5950547  :  [[BRI/ | Bristol (University Hospitals)]]
: 51.5230233,0.035797    :  [[NUH/ | Newham General Hospital]]
: 51.5529975,-0.1649652  :  [[RFH/ | The Royal Free]]
: 51.4995354,-0.1174398  :  [[ECH/ | Evelina]]
: 51.5253885,-0.4611962  :  [[HIL/ | Hillingdon]]
: 50.4046398,-4.135426   :  [[DHP/ | Derriford]]
: 51.21902,-0.1633325    :  [[ESH/ | East Surrey Hospital]]
: 51.435129,0.2584769    :  [[DVH/ | Darent Valley Hospital]]
: 51.4921919,-0.1360153  :  [[GDN/ | Gordon]]
: 51.486891,-0.219703    :  [[CHX/ | Charring Cross]]
: 51.5069519,-0.3464292  :  [[EAL/ | Ealing]]
: 51.5172371,-0.2352738  :  [[HAM/ | Hammersmith]]
: 51.5174517,-0.1735949  :  [[STM/ | St Mary's ]]
: 51.6112894,-0.3621038  :  [[WAT/ | Watford]]
: 51.4733397,-0.324789   :  [[WMD/ | West Middlesex University Hospital]]
: 51.4678282,-0.0936499  :  [[KCH/ | King's College Hospital]]
: 53.4916444,-2.2881105  :  [[SRH/ | Salford Royal NHS Foundation Trust]]
: 51.5273664,-0.0896806  :  [[MOR/ | Moorfields Eye Hospital NHS Foundation Trust]]
: 51.5176985,-0.0599307  :  [[RLH/ | The Royal London Hospital]]
: 53.8208813,-3.0142095  :  [[BVH/ | Blackpool Victoria Hospital]]
: 50.7201508,-3.5139661  :  [[RDE/ | Royal Devon and Exeter Hospital (Wonford)]]
: 52.9420528,-1.1852023  :  [[QMC/ | Queen's Medical Centre(Nottingham)]]
: 51.2659089,1.0873122   :  [[CAN/ | Kent and Canterbury]]
: 54.938645,-1.5811485   :  [[QEH/ | Queen Elizabeth Hospital Gateshead]]
: 54.9704905,-1.4299522  :  [[STT/ | South Tyneside District Hospital]]
: 51.0194667,-3.1224695  :  [[MPH/ | Musgrove Park Hospital (Taunton)]]
: 51.3528763,-0.243756   :  [[EPS/ | Epsom Hospital]]
: 51.3804273,-0.1845569  :  [[HEL/ | St Helier Hospital]]
: 51.5607588,-0.1432129  :  [[WHT/ | The Whittington Hospital]]
: 50.8165078,-0.3643819  :  [[WOR/ | Worthing Hospital]]
: 50.7215148,-1.9738708  :  [[PHN/ | Poole Hospital NHS trust (Dorset)]]
: 53.7914258,-2.7036567  :  [[LTHTR/ | Lancashire Teaching Hospitals NHS Trust ]]

Embed a saved uMap

uMap.openstreetmap

%map% https://umap.openstreetmap.fr/en/map/pmwiki-dev_158576 %%
 0: 00.00 MarkupToHTML begin
 1: 00.00 MarkupToHTML begin
 2: 00.00 MarkupToHTML end
 3: 00.00 MarkupToHTML begin
 4: 00.01 MarkupToHTML end
 5: 00.01 MarkupToHTML begin
 6: 00.03 MarkupToHTML end
 7: 00.03 MarkupToHTML begin
 8: 00.04 MarkupToHTML end
 9: 00.19 MarkupToHTML end
10: 00.20 MarkupToHTML begin
11: 00.25 MarkupToHTML end
12: 00.26 MarkupToHTML begin
13: 00.26 MarkupToHTML end
14: 00.26 now