FeVote Extension
Vendor
MindTouch
Type Script
Categories Widgets
Requires MindTouch Deki 1.8.3 or later
Status Stable
License Free/Open Source
Manifest http://scripts.mindtouch.com/fevote.xml

 

Table of Contents

Description

This extension allows you to embed FeVote panels into your wiki.

See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.


Functions

fevote.widget(category, width, height) : xml

Embed a FeVote panel to your wiki.

Parameters:

NameTypeDescription
categorystrCategory of feature board.
widthnum(optional) Panel width. (default: 100%)
heightnum(optional) Panel height. (default: 1800px)


Script Source

<extension>
  <title>FeVote Extension</title>
  <label>FeVote</label>
  <copyright>Copyright (c) 2006-2009 MindTouch, Inc.</copyright>
  <description>This extension allows you to embed FeVote panels into your wiki.</description>
  <uri.logo>http://scripts.mindtouch.com/logos/fevote-logo.gif</uri.logo>
  <uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/Fevote</uri.help>
  <namespace>fevote</namespace>
  
  <function>
    <name>widget</name>
    <description>Embed a FeVote panel to your wiki.</description>
    <param name="category" type="str">Category of feature board.</param>
    <param name="width" type="num" optional="true">Panel width. (default: 100%)</param>
    <param name="height" type="num" optional="true">Panel height. (default: 1800px)</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script type="text/javascript">
            fevote_embed_category=<eval:js>args.category</eval:js>;
            fevote_embed_width=<eval:js>web.size(args.width ?? .999)</eval:js>;
            fevote_embed_height=<eval:js>web.size(args.height ?? 1800)</eval:js>;
          </script>
          <script type="text/javascript" src="http://www.fevote.com/embed/embed.js"/>
        </body>
      </html>
    </return>
  </function>
</extension>


Sample

  Output

To embed the Fevote widget:

{{ fevote.widget("deki_wiki") }} 

./Fevote Board.png

 

Tag page
You must login to post a comment.