Ben Fish TWiki > TWiki > ContributorsPlugin TWiki webs:
Main | TWiki | Sandbox?
TWiki . { Welcome | Register | Changes | Topics | Index | Search | Go }

Contributors Plugin

This plugin gives a variable (%CONTRIBUTORS%) that will show information about past edits of a topic, and allows:

The %CONTRIBUTORS% variable can be used in templates to automatically display who has edited a page and when.

Included with the plugin is a page (WebContributors) that allows the user to access the contributor history via a regular URL.

The WebContributors page is useful when publishing information with a license that requires attribution, such as several of the Creative Commons licenses. The people who create derivative works can then put a URL that embeds the web name, topic name, and the current revision number in their attribution notices.

Syntax Rules

Using the %CONTRIBUTORS% variable alone will expand to show the author, revision, and date of each edit of the current topic. Here's what it looks like"

The following arguments to %CONTRIBUTORS% are also allowed:

argument default description
web current web which web the topic of interest is in
topic current topic which topic to give change history for
rev current revision latest revision to show information for
format " * $author -- Revision $rev on date $date \$n"; format for each contributor line
header (none) string to print before printing the contributors output
nodups (none) if set to "on", suppress duplicate lines

In the format string, the user can use the following variables:

variable expands to
$author the person who made that specific change (linked to their TWiki home page)
$date the date in GMT time
$rev the revision number (linked to that revision of the page)
$n \n

In the header string, the user can use $n but no other variables (at the moment).

To use WebContributors, you pass a URL with the information you want in the query string. Note, however, that there are some differences:

Plugins Settings

Examples

Use %CONTRIBUTORS{web="TWiki" topic="TWikiPreferences" last="7"}% to get


Use %CONTRIBUTORS{web="TWiki" topic="TWikiPreferences" last="7" rev="1.20"}% to get


Use %CONTRIBUTORS{web="TWiki" topic="TWikiPreferences" last="7" rev="1.20" format=" * $author$n"}% to get


Use %CONTRIBUTORS{web="TWiki" topic="TWikiPreferences" last="7" rev="1.20" format=" * $author$n" nodups="on"}% to get


Use %CONTRIBUTORS{web="TWiki" topic="TWikiPreferences" last="7" rev="1.20" format="|$author|$date|$rev|$n" header="|*Author*|*Date*|*Revision*|$n"}% to get:

Author Date Revision
Thu, 01 Jan 1970 00:00:00 GMT 1.20
Thu, 01 Jan 1970 00:00:00 GMT 1.19
Thu, 01 Jan 1970 00:00:00 GMT 1.18
Thu, 01 Jan 1970 00:00:00 GMT 1.17
Thu, 01 Jan 1970 00:00:00 GMT 1.16
CarolynJohnston Sat, 24 Dec 2005 01:46:46 GMT 1.15
CarolynJohnston Sat, 24 Dec 2005 01:37:16 GMT 1.14

Plugin Installation Instructions

Plugin Installation Instructions

Note: You do not need to install anything on your Web browser to use this plugin. The installation instructions below are for installing this plugin on the TWiki server, and so only the TWiki system administrator needs to pay attention to them.

Plugin Info

Plugin Author: TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny, TWiki:Main:DuckySherwood
Plugin Version: 10 Dec 2004
Change History:  
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.0
TWiki:Plugins/Benchmark: GoodStyle 100%, FormattedSearch 100%, ContributorsPlugin 100%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/ContributorsPlugin (TWiki:Plugins.ContributorsPlugin)
Feedback: http://TWiki.org/cgi-bin/view/Plugins/ContributorsPluginDev (TWiki:Plugins.ContributorsPluginDev)

Related Topics: TWikiPreferences, TWikiPlugins, DefaultPlugin

-- TWiki:Main.AndreaSterbini - 27 Feb 2001
-- TWiki:Main.PeterThoeny - 21 Mar 2004
-- DuckySherwood? - 10 Dec 2004


Topic ContributorsPlugin . { Edit | Attach | Ref-By | Printable | Diffs | r1.4 | > | r1.3 | > | r1.2 | More }
Revision r1.1 - 04 May 2005 - 02:30 - Main.guest

Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback