Template:SoundCloud

From WikiEducator
Jump to: navigation, search

Template that forms a link to a SoundCloud audio clip.

<templatedata> { "description": "SoundCloud audio clip placeholder/link", "params": {

               "embed": {
                       "label": "Embed",
                       "description": "Embed code HTML snippet",
                       "default": "",
                       "type": "string"
               },
               "link": {
                       "label": "Link",
                       "description": "Link to SoundCloud clip page",
                       "aliases": [],
                       "default": "",
                       "type": "string",
                       "required": true
               },

"title": { "label": "Title", "description": "Title to display on placeholder", "aliases": [], "default": "", "type": "number" },

               "autoplay": {
                       "label": "Autoplay",
                       "description": "true or false (automatically play, only affects snapshots)",
                       "default": "false",
                       "type": "string"
               },
               "height": {
                       "label": "Height",
                       "description": "only affects wiki (include unit, e.g. px)",
                       "default": "",
                       "type": "string"
               },
               "width": {
                       "label": "Width",
                       "description": "width (include unit, e.g. px)",
                       "default": "",
                       "type": "string"
               },
               "align": {
                       "label": "Align",
                       "description": "Optional left or right align with text wrap, or center",
                       "default": "",
                       "type": "string"
               }
	}

} </templatedata>