Difference between revisions of "Template:Google Docs Viewer"

From BroaDWcast
Jump to navigationJump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table style="float:right; margin-left:1em; text-align:center; font-weight:bold;">
+
<includeonly><table style="float:{{{float|right}}}; margin-{{#ifeq: {{{float}}} | left | right | left }}:1em; text-align:center; font-weight:bold;">
 
  <tr>
 
  <tr>
 
   <td>{{{top caption|}}}</td>
 
   <td>{{{top caption|}}}</td>
 
  </tr>
 
  </tr>
 
  <tr>
 
  <tr>
   <td>{{#widget:Google Viewer|url={{{url}}}|height={{{height}}}|width={{{width}}}}}</td>
+
   <td>{{#widget:Google Viewer|url={{#ifeq: {{#pos:{{{url}}}|http://}} | 0 | {{#sub:{{{url}}}|7}} | {{{url}}} }} |height={{{height}}}|width={{{width}}}}}</td>
 
  </tr>
 
  </tr>
 
  <tr>
 
  <tr>
 
   <td>{{{bottom caption|}}}</td>
 
   <td>{{{bottom caption|}}}</td>
 
  </tr>
 
  </tr>
<table>
+
</table>
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Object floats right and has a solid border
+
<nowiki>{{Google Docs Viewer|url=|float=|height=|width=|top caption=|bottom caption=}}</nowiki>
  
'''Properties:'''
+
'''Default values:'''
*url (do not include <nowiki>'http://'</nowiki>)
+
*float: right
*height (default = 780)
+
*height: 780
*width &nbsp;(default = 600)
+
*width: 600
*top caption
+
*captions: blank
*bottom caption
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:13, 25 April 2012


{{Google Docs Viewer|url=|float=|height=|width=|top caption=|bottom caption=}}

Default values:

  • float: right
  • height: 780
  • width: 600
  • captions: blank