Difference between revisions of "Google Documents Embedded in MediaWiki Pages"

From PKC
Jump to navigation Jump to search
BenKoo>Benkoo
BenKoo>Benkoo
Line 86: Line 86:
Another MediaWiki extension, namely [[MW:Extension:GoogleDocs4MW|GoogleDocs4MW]], will serve the same function as the extension [[MW:Extension:Widgets| Widgets]]:
Another MediaWiki extension, namely [[MW:Extension:GoogleDocs4MW|GoogleDocs4MW]], will serve the same function as the extension [[MW:Extension:Widgets| Widgets]]:
<pre>
<pre>
<googlespreadsheet width="600" height="300" style="width: 50%">10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I</googlespreadsheet>
<googlespreadsheet width="600" height="300" style="width: 50%">
10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I
</googlespreadsheet>
</pre>
</pre>


<googlespreadsheet width="600" height="300" style="width: 50%">10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I</googlespreadsheet>
<googlespreadsheet width="600" height="300" style="width: 50%">10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I</googlespreadsheet>

Revision as of 10:07, 29 April 2021

This page demonstrates that one can include Google Document, Google SpreadSheet, Google Presentation, and Google Form in this website. One must remember to publish the document on your Google pages.

Note: There will be visible delay of content synchronization from Google Documents, Google SpreadSheets, Google Presentations, and Google Forms to pages that embed the same document.

Google Presentation

The published Google Slide can be viewed and edited here.

For example, the original Google Docs URL should appear in your browser's URL field like this:

https://docs.google.com/presentation/d/1TkzbKQzjpytoOtPDRBNN4PGD479Cqpgt/edit#slide=id.gd398d10917_1_0

To add this to the page, one just need to extract the docid that has the value: 1TkzbKQzjpytoOtPDRBNN4PGD479Cqpgt .

You just need to use the following string to denote that you want this file displayed on the page:

{{#widget:Google Presentation|docid=1TkzbKQzjpytoOtPDRBNN4PGD479Cqpgt|size=medium}}

Google Form

If you are familiar with Google Form, you can create one and publish the form here using the following strings:

{{#widget:Google Form
|key=1FAIpQLSfUdZgjtgndZALNNRkuDzr757KedXaK_EH45dFjoRrsOKPKNw
|width=760
|height=500
}}

Google Document

In case your team is writing up some document using Google Doc, the document can be linked here. The original URL looks like this:

https://docs.google.com/document/d/1yRD3hYPNsvjeyugoSDl-6x3QeAFRbXaOUNH1nh4bIP8/edit#heading=h.aczyuw2yex2w

You may display the content using the following string, and specifying its corresponding id as 1yRD3hYPNsvjeyugoSDl-6x3QeAFRbXaOUNH1nh4bIP8.

{{#widget:Google Document
|id= 1yRD3hYPNsvjeyugoSDl-6x3QeAFRbXaOUNH1nh4bIP8
|width=800
|height=600
}}

Google SpreadSheet

Google SpreadSheet can also be embedded here, notice that the content synchronization between Google server and your page will have visible delays.

The original URL of the SpreadSheet is:

The '''published''' Google SpreadSheet: https://docs.google.com/spreadsheets/d/10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I/edit#gid=904881138

To display the Google Sheet in this page, use the following string:

{{#widget:Google Spreadsheet
|key=10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I
|width=400
|height=300
}}


GoogleDocs4MW

Another MediaWiki extension, namely GoogleDocs4MW, will serve the same function as the extension Widgets:

<googlespreadsheet width="600" height="300" style="width: 50%">
10nJZX6UKeg3FgT8OVfzDUSEIj-H_VeVZkwbEfXRnH7I
</googlespreadsheet>