Extension:GoogleDocTag

The GoogleDocViewer extension adds the &lt;doc&gt; tag for embedding a Google Doc in view, edit, or published mode (provided that the user is currently logged into their Google account and has access to the document).

Installation

 * 1) Copy GoogleDocViewer.php to the new file GoogleDocViewer.php in your MediaWiki extensions directory.
 * 2) Enable the extension by adding this line to the bottom of your LocalSettings.php:

Usage
Google Doc URLs are structured like this: docs.google.com/a/ /document/ ?id=. To embed this document, use:
 *   site= mode= title="My Title"/> 
 *  Example:  

Options

 * id (required)
 * mode (edit|view|pub)
 * width
 * height
 * title
 * site

Alternate version options

 * type (document|spreadsheet)
 * literal (a|b|c|d or other - docs.google.com/ / /...)
 * don't support site option
 * added options check by asset function

Source of GoogleDocViewer.php
'.		' ';

return $html; } ?>

Alternate version of GoogleDocViewer.php with spreadsheet support
'.               ' '; break; case 'spreadsheet': $html = ' '.               ' '; break; default: return ' Name of document type is not correct! ';           break; }       return $html; } ?>