Difference between revisions of "Template:Slidewiki"

From Karnataka Open Educational Resources
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#widget:Iframe |url={{{1}}} |width= {{{2}}} |height= {{{3}}} |border= {{{4}}} }} <br/>
+
{{#widget:Iframe |url={{{1}}} |width= {{{5}}} |height= {{{3}}} |border= {{{4}}} }} <br/>
Download this slide from [{{{5}}} here]
+
View the slide [{{{1}}} here] and download it from [{{{2}}} here].
  
 
<noinclude>
 
<noinclude>
  
Example: <nowiki>{{Slidewiki|https://slidewiki.org/Presentation/107246-1/107246-1|450|360|1|https://slidewiki.org/deck/107246-1}}</nowiki> should show as below <br/>
+
Example: <nowiki>{{Slidewiki|https://slidewiki.org/Presentation/107246-1/107246-1|https://slidewiki.org/deck/107246-1}}</nowiki> should show as below <br/>
{{Slidewiki|https://slidewiki.org/Presentation/107246-1/107246-1|450|360|1|https://slidewiki.org/deck/107246-1}}
+
{{Slidewiki|https://slidewiki.org/Presentation/107246-1/107246-1|https://slidewiki.org/deck/107246-1}}
 
<br/>
 
<br/>
  
Line 25: Line 25:
 
"2": {
 
"2": {
 
"aliases": [
 
"aliases": [
"Width"
+
"download url"
 
],
 
],
"label": "Width",
+
"label": "Enter download url",
"description": "Enter width for the slidewiki",
+
"description": "Enter slidewiki url for download",
"example": "800",
+
"example": "https://slidewiki.org/deck/107246-1",
"type": "number",
+
"type": "string"
                        "default": "800"
 
 
},
 
},
 
"3": {
 
"3": {
Line 41: Line 40:
 
"example": "360",
 
"example": "360",
 
"type": "number",
 
"type": "number",
"default": "560"
+
"default": "460"
 
},
 
},
 
"4": {
 
"4": {
Line 55: Line 54:
 
"5": {
 
"5": {
 
"aliases": [
 
"aliases": [
"download url"
+
"Width"
 
],
 
],
"label": "Enter download url",
+
"label": "Width",
"description": "Enter slidewiki url for download",
+
"description": "Enter width for the slidewiki",
"example": "https://slidewiki.org/deck/107246-1",
+
"example": "800",
"type": "string"
+
"type": "number",
 +
"default": "600"
 
}
 
}
 
}
 
}

Latest revision as of 05:37, 25 February 2018


View the slide [{{{1}}} here] and download it from [{{{2}}} here].


Example: {{Slidewiki|https://slidewiki.org/Presentation/107246-1/107246-1|https://slidewiki.org/deck/107246-1}} should show as below

View the slide here and download it from here.



No description.

Template parameters

ParameterDescriptionTypeStatus
Enter slide url1 Enter slide url

enter url from slidewiki

Example
https://slidewiki.org/Presentation/107246-1/107246-1
Stringoptional
Enter download url2 download url

Enter slidewiki url for download

Example
https://slidewiki.org/deck/107246-1
Stringoptional
height3 Height

Enter height for the slidewiki

Default
460
Example
360
Numberoptional
border4 border width

border width for slidewiki

Default
1
Example
1
Numberoptional
Width5 Width

Enter width for the slidewiki

Default
600
Example
800
Numberoptional