Template:SVGLiveSample

<%
/* one parameter: name of sample's file in /samples/svg */

var str = mdn.localString({
    "en-US": "View Live Examples",
    "es":    "Ver El Ejemplo Vivo",
    "de":    "Live-Beispiel ansehen",
    "fr":    "Voir l'exemple sur une page",
    "ja":    "実際の表示を確認",
    "ko":    "실제 예제 보기",
    "pl":    "Zobacz przykład",
    "zh-CN": "查看在线演示",
    "zh-TW": "查看示例"
});
var target = "/samples/svg/" + $0;
var result = '<a class="button liveSample" href="' + target + '">' + str + '</a>';

%><%- result %>
Search for pages that use Template:SVGLiveSample to see example use cases and how many pages use this macro.

Document Tags and Contributors

Tags: 
Contributors to this page: trevorh, ethertank, teoli, Sheppy
Last updated by: trevorh,