Difference between revisions of "Widget"

From its-wiki.no
Jump to: navigation, search
Line 76: Line 76:
 
|border=2
 
|border=2
 
}}
 
}}
 +
= Google Document =
 +
This widget allows you to add '''[http://documents.google.com/support/ Google Documents]''' to your wiki page.
 +
It was originally created by [[mediawikiwiki:User:Sergey Chernyshev|Sergey Chernyshev]] for [http://www.semanticcommunities.com/ Semantic Communities LLC.]
 +
To insert this widget, use the following code:
 +
 +
<nowiki>{{#widget:Google_Document
 +
|id=1hhpWRL4oyH6Aqf42laXo_lElObX_1JiaV4FMt8llA_U
 +
|width=500
 +
|height=300
 +
}}</nowiki>
 +
 +
== Parameters ==
 +
* '''width''' and '''height''' define document dimensions, 500x300 is default
 +
* '''id''' - id parameter used in the URL
 +
* '''key''' - docID parameter used in old document URL (use it instead of '''id''' to embed old document)
 +
 +
; Note: In order for your embedded Google Doc to be visible on your wiki, you must first '''publish it to the web'''.
 +
# Open your document.
 +
# From the document menu, choose File > Publish to the Web...
 +
# Click "Start publishing" button.
 +
# See also: [http://support.google.com/docs/bin/answer.py?hl=en&answer=183965 Publishing does not affect visibility options]
  
 
= Google Form =
 
= Google Form =

Revision as of 12:19, 3 February 2016

Widgets used on this Mediawiki. For other widgets, create the Widget:Mediawiki by copying code into this Wiki

{{#widget:WidgetName|param1=value1|param2=value2}}
{{#widget:YouTube|id=DWef69ItVrU}}
  • id - video id (from the URL)
  • playlist - playlist name (starts with PL) - first clip is played (id is ignored)
  • height and width define view dimensions, 420x350 is default


add this:

Allows wiki administrators to add free-form widgets to the wiki by editing pages within the Widget namespace. Community-contributed widgets can be found on MediaWikiWidgets.org



Radroute 859435 - powered by Bikemap 

Include another page through an IFrame

{{#widget:Iframe
|url=http://docs.google.com/present/embed?id=dcn37mcz_22cmnwnwf8
|width=410
|height=342
|border=0
}}

Parameters

  • url - URL of page being inserted
  • width - width of the iframe (default is 400)
  • height - height of the iframe (default is 300)
  • border - border width (default is 1)

Testing IFrame

jnoll.net

This widget allows you to add Google Documents to your wiki page. It was originally created by Sergey Chernyshev for Semantic Communities LLC. To insert this widget, use the following code:

{{#widget:Google_Document
|id=1hhpWRL4oyH6Aqf42laXo_lElObX_1JiaV4FMt8llA_U
|width=500
|height=300
}}

Parameters

  • width and height define document dimensions, 500x300 is default
  • id - id parameter used in the URL
  • key - docID parameter used in old document URL (use it instead of id to embed old document)
Note
In order for your embedded Google Doc to be visible on your wiki, you must first publish it to the web.
  1. Open your document.
  2. From the document menu, choose File > Publish to the Web...
  3. Click "Start publishing" button.
  4. See also: Publishing does not affect visibility options

It was originally created by Sergey Chernyshev for Semantic Communities LLC. To insert this widget, use the following code:

{{#widget:Google Form
|key=po-s58YMwf85Q3UxRzdGOBw
|width=600
|height=750
}}


other widgets: mediawiki widgets

Testing of widgets