Difference between revisions of "Template:Slideshare"

From Open Educational Resources
Jump to navigation Jump to search
 
Line 1: Line 1:
 
{{#widget:Iframe |url={{{1}}} |width= {{{2}}} |height= {{{3}}} |border= {{{4}}} }}
 
{{#widget:Iframe |url={{{1}}} |width= {{{2}}} |height= {{{3}}} |border= {{{4}}} }}
  
 +
<noinclude>
 
{{Slideshare|http://www.slideshare.net/slideshow/embed_code/48241562}}
 
{{Slideshare|http://www.slideshare.net/slideshow/embed_code/48241562}}
 
<noinclude>
 
 
Example: <nowiki>{{#widget:Iframe |url=http://www.slideshare.net/slideshow/embed_code/48241562 |width=450 |height=360 |border=1 }}</nowiki> <br/>
 
Example: <nowiki>{{#widget:Iframe |url=http://www.slideshare.net/slideshow/embed_code/48241562 |width=450 |height=360 |border=1 }}</nowiki> <br/>
 
<br/>
 
<br/>
Line 13: Line 12:
 
"1": {
 
"1": {
 
"aliases": [
 
"aliases": [
"id"
+
"embed code"
 
],
 
],
"label": "id",
+
"label": "slideshare_link",
 
"description": "Insert Slideshare embed code here",
 
"description": "Insert Slideshare embed code here",
 
"example": "http://www.slideshare.net/slideshow/embed_code/48241562",
 
"example": "http://www.slideshare.net/slideshow/embed_code/48241562",
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 +
},
 +
"2": {
 +
"label": "width",
 +
"description": "Width of the slideshare slides box",
 +
"example": "450",
 +
"type": "number",
 +
"default": "450"
 +
},
 +
"3": {
 +
"label": "height",
 +
"description": "Defines height of the slideshare box",
 +
"example": "360",
 +
"type": "number",
 +
"default": "360"
 +
},
 +
"4": {
 +
"label": "border",
 +
"description": "Border thickness for the slideshare box",
 +
"example": "1",
 +
"type": "number",
 +
"default": "1"
 
}
 
}
 
},
 
},

Latest revision as of 19:11, 15 October 2016



Example: {{#widget:Iframe |url=http://www.slideshare.net/slideshow/embed_code/48241562 |width=450 |height=360 |border=1 }}


Add Slideshare slides using its embed code

Template parameters

ParameterDescriptionTypeStatus
slideshare_link1 embed code

Insert Slideshare embed code here

Example
http://www.slideshare.net/slideshow/embed_code/48241562
Stringrequired
width2

Width of the slideshare slides box

Default
450
Example
450
Numberoptional
height3

Defines height of the slideshare box

Default
360
Example
360
Numberoptional
border4

Border thickness for the slideshare box

Default
1
Example
1
Numberoptional