Introduction and index to Wiki plugins
Wiki Plugins
The Wiki syntax is powerful enough for normal Wikis, but sometimes you need features not present in the Wiki. To ease the process of extending the Wiki syntax Tiki allows you to define a "plugin" to extend the Wiki syntax. Minimum PHP programming skills are needed to build a plugin.Wiki plugins extend the function of wiki syntax with more specialized commands. Usually expressed in {curly brackets} plugins compact a chunk of PHP or HTML code into something that can be understood by non-programmers.
You can view a list of plugins (maybe not the whole list) by clicking wiki help --> show plugins near the bottom of any wiki edit page, or on the wiki help icon on the right side of the page when you're in edit mode. Also, here is a mod you can do to convert the fckeditors templates button into a dialog that can insert wiki syntax. Check it out here: WysiwygPluginButton
See also:
Table of contents
Currently Distributed Plugins
This is a list of all the bundled plugins with a documentation page on this site- not all distributed plugins have their own page. However, some information is available about all plugins at PluginManager. The list of bundled plugins varies with each Tiki version - please see All Plugins for which are available in 2.0 and 3.0. You can install any plugins that are not bundled - please read about it on this page at Installing a new plugin.Plugins documented on this site
- PluginAddToCart : Button for adding items to the shopping cart
- PluginAgentinfo : Show user's browser and server information
- PluginAlink : Create a link to an anchor in a wiki page.
- PluginAname : Create an anchor into a wiki page that can be linked to
- PluginAnnotation : Annotate an image
- PluginArchiveBuilder : Define an archive that can be downloaded
- PluginArticle : Display a component of an article in a wiki page
- PluginArticles : Display multiple articles in a wiki page
- PluginAttach : Display an attachment or a list of attachments
- PluginAvatar : Displays a user's avatar
- PluginBack : Create a link that goes back one page in the browser history
- PluginBacklinks : Lists all pages that link to a particular page
- PluginBanner : Add a banner to a wiki page
- PluginBloglist : Displays posts from the tiki blog on a wiki page.
- PluginBox : Creates a box with a title bar
- PluginCalendar : Display a calendar and its events in a wiki page
- PluginCategory : List categories and objects assigned to them
- PluginCatOrphans : Lists all objects that are not categorized
- PluginCatpath : Show the full category path for a wiki page
- PluginCenter : Center text
- PluginCode : Display source code
- PluginColorbox : Display a gallery of images in a popup slideshow
- PluginContent : Display content from dynamic content repository
- PluginCopyright : Inserts a copyright notice
- PluginCountdown : Displays a countdown to a future date.
- PluginDataChannel : Display a form to access data channels
- PluginDBReport : Query an SQL database and display results
- PluginDiv : Defines and formats sections of a page or text.
- PluginDl : Creates a definition list
- PluginEquation : Renders an equation written in LaTeX syntax as an image.
- PluginEvents : Display upcoming events from calendars
- PluginFade : Creates a fade-in/fade-out effect on a text
- PluginFancylist : Creates a fancy looking list
- PluginFancyTable : Displays a table using TikiWiki odd/even style
- PluginFile : Link to a file that's attached or in a gallery or archive
- PluginFiles : List files in a gallery or category
- PluginFlash : Embed a video or audio file in a wiki page
- PluginFootnote : Create automatically numbered footnotes
- PluginFootnotearea : Create automatically numbered footnotes
- PluginFtp : Create a button for downloading a file from an FTP server
- PluginGauge : Displays a horizontal bar gauge
- PluginGoogleDoc : Include a Google Docs document.
- PluginGroup : Display to specific groups.
- PluginGroupList : List all groups or just groups including a certain group
- PlugingGroupMailCore : Display GroupMail functions on a wiki page
- PluginGroupstat : Show the distribution of users among groups
- PluginHTML : Add HTML to a page
- PluginIframe : Include another web page in a wiki page within a frame
- PluginImage : (deprecated in Tiki5) Displays an image
- PluginImg : Display and format images
- PluginInclude : Include content from another wiki page
- PluginInvite : Invite a user to join your groups
- PluginJabber : Chat using Jabber
- PluginJq : Insert JQuery Javascript
- PluginJS : Include Javascript code or files ina wiki page
- PluginLang : Vary text based on the page language
- PluginLastmod : Show the last modification date for a page
- PluginListpages : List pages based on various criteria
- PluginLsDir : List files in a directory
- PluginMail : Send mail directly to other users o groups
- PluginMaketoc : Create a table of contents from section headings.
- PluginManager : List wiki plugins for he site
- Pluginmcalendar : Convert a Gregorian date to a Mayan calendar date
- PluginMediaPlayer : Add a media player to a page
- PluginMemberList : List and allow editing of group members
- PluginMindmap : Draw connected ideas in a graphical way
- PluginMiniQuiz : Create a quiz using a tracker
- PluginModule : Display a module in a wiki page
- PluginMono : Diplay text in a monospace font
- PluginMouseover : Display hidden content by mousing over a link
- PluginMWTable : Display a table using MediaWiki syntax
- PluginMySpace
- PluginObjecthits : Displays number of hits for certain objects
- PluginPagelist
- PluginPerm
- PluginProfile
- PluginUserpref
- PluginPhpFreeChat
- PluginPoll : Display a poll.
- PluginProfile
- PluginProposal : Displays a proposal acceptance widget
- PluginQuote
- PluginR
- Pluginrealnamelist
- PluginRedirect
- PluginRSS
- PluginScreenCast
- PluginSharethis : Adds a ShareThis button
- PluginSheet
- PluginShowpages : Search wiki pages by page name
- PluginSmarty
- PluginSnarf
- PluginSkype
- PluginSort
- PluginSplit
- PluginSQL : Query a MySQL database and display the results
- pluginStat
- PluginSub : Applies subscript font to text
- PluginSubscribeGroup-PluginSubscribeGroups
- PluginSubscribeNewsletter
- PluginSup : Applies superscript font to text
- PluginTabs
- PluginTag
- PluginThumb : (deprecated with 5.0) Display a thumbnail
- PluginTitleSearch : Search page titles
- PluginToc : Displays a table of contents of pages or sub-pages in a structure
- PluginTr
- PluginTracker : Create a form in a wiki page (to populate a tracker)
- PluginTrackerFilter : Create a form to filter tracker fields
- PluginTrackerItemField : Display or test the value of a tracker item field
- PluginTrackerList : Display a report from the data in a tracker
- PluginTrackerPrefill
- PluginTrackerStat : Display some statistics about a tracker.
- PluginTrackerTimeline
- Plugin Tracker Advanced
- PluginTranslated
- PluginUsercount : Displays number of users for a site or group
- PluginUserlist
- PluginVersions : Create tabs for showing alternate versions of content
- PluginVote
- PluginWebservice
- PluginWMV
- PluginYouTube
Frequently used Plugins still documented on tikiwiki.org:
See the entire PluginsList - from tikiwiki.org.
See the entire PluginsList - from tikiwiki.org.
Installing a new plugin
Some plugins are not installed by default in your tiki installation. They can be installed at a later stage as a Mod. See how to install them:http://doc.tikiwiki.org/Mods+User
What they look like:
Plugins often have "begin" and "end" tags and are identified in a wiki page using the following syntax:{PLUGINNAME(parameter1=>value,parameter2=>value)} content affected by plugin {PLUGINNAME}
- {NOSPACESAREALLOWEDINPLUGINS(anywhere)}
- plugins are often case sensitive
- parameters you don't specify will be set to their defaults.
- parameters are separated by commas, values within a parameter are separated vertical bars |
- you can use either => or = in parameters.
Example:
Creating A Plugin
We may want to create a plugin to allow text formatting in any font and size:{FONT(size=>20,face=>arial)} some text {FONT}
If a plugin doesn't require parameters you can use
{EXAMPLE()} content {EXAMPLE}
When tiki finds a plugin the engine will look at the plugin name and look for the file
lib/wiki-plugins/wikiplugin_name.php
For example
lib/wiki-plugins/wikiplugin_font.php
That file should be a PHP file defining the function
function wikiplugin_font($data,$params) {}
The function receives the plugin content in $data and the parameters in the $params associative array. The function manipulates the content and must return a string with the HTML that will replace the plugin content when rendering the wiki page (it can be just text if no HTML markup is needed).
This is an example: the example plugin:
1 2 3 4 56 7 8 9 1011 12 13 | function wikiplugin_example($data,$params) { extract($params, EXTR_SKIP); if(!isset($face)) {return ("<b>missing face parameter for plugin</b><br/>"); } if(!isset($size)) { return ("<b>missing size parameter for plugin</b><br/>"); }$ret = "<span style='font-face: $face; font-size: $size'>$data</span>"; return $ret; } |
The return of your plugin will be wiki parsed. If you do not want it to be parsed again, you must enclose the value like this
return ' ~np~'.$ret.'~/np~ ';
Plugins are a powerful tool. These are some ideas for plugins:
- Display some language code highlighting its syntax
- Display snippets of code
- Display poetry
- Display text using a special style
- Display charts, gauges.
- Show information from other sites.
- Use plugins to display and maintain bibliography information (using Pybliographer
Directory Submission
Social Media News
for instance)
- Etc., etc., etc
Special Plugins
These aren't real plugins but, like plugins, use a slightly different curly braces syntax. Unlike plugins, you don't "close" them. e.g., use { maketoc} instead of { maketoc()} { maketoc}. These can also appear in template (.tpl) files.| Banner | Displays a banner. { banner zone=}. Set up banners via admin menu. Note that if you assign multiple banners to the same zone, will pick a different banner in that zone each time (more or less) the page is refreshed. |
| content | Displays dynamic content |
| draw | Displays a drawing which is an image that can be modified via a Java applet. { draw name=}. name must be unique for the entire site. Requires "drawing" feature to be turned on via the admin menu. If the drawing doesn't exist, the page will display a button that will create the drawing. |
| img | Displays an image { img src= height= width=}. Mimics the HTML img tag. |
| maketoc | Displays an indented table of contents using !, !!, !!! headers. { maketoc}. |
| RSS | Displays an RSS feed. { rss id= max=}. Set up RSS feeds via admin menu (RSS Modules). |
| TOC | Displays a table of contents for the structure that the page belongs to. |
Alias
Contributors to this page: lindon
,
jh
,
wrihelp
,
omstefanov
,
chibaguy
,
robferguson
,
rpg
,
ricks99
,
Xavi
,
fivos
,
atilabelloquim
,
sylvie
,
marclaporte
,
gmartin
,
mlpvolt
and
rodrigo_sampaio
.
Page last modified on Wednesday 03 March, 2010 04:23:52 UTC by lindon
.
Sidebar
Sidebar
To register
To have an account at this site, please register at Tikiwiki.org
, and then use that user name and password to log in here.
