buildrelease
[openafs-wiki.git] / TWiki / InterwikiPlugin.mdwn
1 # <a name="Interwiki Plugin"></a><a name=" Interwiki Plugin"></a> Interwiki Plugin
2
3 The %TOPIC% links <code>**ExternalSite:Page**</code> text to external sites based on aliases defined in the [[InterWikis]] topic. This plugin is inspired by UseMod Wiki's inter-wiki links, <http://www.usemod.com/cgi-bin/wiki.pl?InterWiki>.
4
5 <div>
6   <ul>
7     <li><a href="#Syntax Rules"> Syntax Rules</a></li>
8     <li><a href="#%TOPIC% Settings"> %TOPIC% Settings</a></li>
9     <li><a href="#Plugin Installation Instructions"> Plugin Installation Instructions</a></li>
10     <li><a href="#Plugin Info"> Plugin Info</a></li>
11   </ul>
12 </div>
13
14 ## <a name="Syntax Rules"></a> Syntax Rules
15
16 - Enter <code>**ExternalSite:Page**</code> to create a link that points to the <code>**Page**</code> on the <code>**ExternalSite**</code> server.
17 - All <code>**ExternalSite**</code> aliases are defined in the [[InterWikis]] topic.
18 - Add and edit aliases in [[InterWikis]].
19 - %H% For TWiki sites, both the **web** and the **topic** have to be specified: <code>**TWikisite:Webname/SomePage**</code>
20   - TWiki:Plugins/InterwikiPlugin or TWiki:Plugins.InterwikiPlugin
21
22 ## <a name="%TOPIC% Settings"></a> %TOPIC% Settings
23
24 Plugin settings are stored as Preferences variables. To reference a plugin setting write <code>**%&lt;plugin&gt;\_&lt;setting&gt;%**</code>, for example, <code>**%INTERWIKIPLUGIN\_SHORTDESCRIPTION%**</code>
25
26 - One-line description, shown in the [[TextFormattingRules]] topic:
27   - Set SHORTDESCRIPTION = Link <code>**ExternalSite:Page**</code> text to external sites based on aliases defined in a rules topic
28
29 - Link rules topic name: (default is [[InterWikis]])
30   - Set RULESTOPIC =
31
32 - Suppress tooltip help for links: (<code>****</code> or <code>**1**</code>, default is <code>****</code>)
33   - Set SUPPRESSTOOLTIP = 0
34
35 ## <a name="Plugin Installation Instructions"></a> Plugin Installation Instructions
36
37 %X% **NOTE:** This Plugin is included in the TWiki distribution package. You do not need to install it unless you want to upgrade to a newer version.
38
39 - **Download** the ZIP file from the TWiki:Plugins web (see below)
40 - **Unzip** <code>**%TOPIC%.zip**</code> in your TWiki installation directory. Content: <table border="1" cellpadding="0" cellspacing="0">
41   <tr>
42     <th bgcolor="#99CCCC"><strong> File: </strong></th>
43     <th bgcolor="#99CCCC"><strong> Description: </strong></th>
44   </tr>
45   <tr>
46     <td><code><b>data/TWiki/%TOPIC%.txt</b></code></td>
47     <td> Plugin topic </td>
48   </tr>
49   <tr>
50     <td><code><b>data/TWiki/InterWikis.txt</b></code></td>
51     <td> Link rules topic for inter-site links </td>
52   </tr>
53   <tr>
54     <td><code><b>lib/TWiki/Plugins/%TOPIC%.pm</b></code></td>
55     <td> Plugin Perl module </td>
56   </tr>
57 </table>
58 - **Test:** If the Plugin is correctly installed, this Wiki:InterWiki link should point to <http://c2.com/cgi/wiki?InterWiki> topic - try it out.
59
60 ## <a name="Plugin Info"></a> Plugin Info
61
62 <table border="1" cellpadding="0" cellspacing="0">
63   <tr>
64     <td align="right"> Plugin Author: </td>
65     <td> TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny </td>
66   </tr>
67   <tr>
68     <td align="right"> Plugin Version: </td>
69     <td> 1.008 </td>
70   </tr>
71   <tr>
72     <td align="right"> Change History: </td>
73     <td>  </td>
74   </tr>
75   <tr>
76     <td align="right"> 26 Feb 2005: </td>
77     <td> 1.008 TWiki:Main.CrawfordCurrie cleaned up code and made Dakar-ready </td>
78   </tr>
79   <tr>
80     <td align="right"> 25 Aug 2004: </td>
81     <td> 1.005 TWiki:Main.PeterThoeny updated [[Main/InterWikis]] link rules (no code change) </td>
82   </tr>
83   <tr>
84     <td align="right"> 09 Mar 2004: </td>
85     <td> Internal changes: Use only official TWiki::Func Plugin API; for increased speed, moved Interwiki link handling from outsidePREHandler to startRenderingHandler </td>
86   </tr>
87   <tr>
88     <td align="right"> 16 Feb 2004: </td>
89     <td> Support <code>[[Site:Page][label]]</code> Interwiki links (PTh); use TWiki::Func interface for [[Main/I18N]] regular expressions (Walter Mundt) </td>
90   </tr>
91   <tr>
92     <td align="right"> 18 Jan 2003: </td>
93     <td> Allow number sign <code>#</code> in Page name (PTh) </td>
94   </tr>
95   <tr>
96     <td align="right"> 31 Aug 2002: </td>
97     <td> Allow percent sign <code>%</code> in page name (PTh) </td>
98   </tr>
99   <tr>
100     <td align="right"> 27 Jul 2001: </td>
101     <td> Allow numbers <code>0-9</code> in site name </td>
102   </tr>
103   <tr>
104     <td align="right"> 26 Jul 2001: </td>
105     <td> Fixed alternating missed link bug due to greedy $postfixPattern (fix by Richard Donkin) </td>
106   </tr>
107   <tr>
108     <td align="right"> 14 Jul 2001: </td>
109     <td> Changed to plug &amp; play </td>
110   </tr>
111   <tr>
112     <td align="right"> 16 Jun 2001: </td>
113     <td> Made tooltips optional; prevent <code><b>Module::Sub</b></code> type of link </td>
114   </tr>
115   <tr>
116     <td align="right"> 12 Jun 2001: </td>
117     <td> Added optional tool tips (IE only); added the link rules topic name variable; added flexible link patterns; optional <code><b>$page</b></code> in URL </td>
118   </tr>
119   <tr>
120     <td align="right"> 10 Jun 2001: </td>
121     <td> Changed rules topic to table-based syntax </td>
122   </tr>
123   <tr>
124     <td align="right"> 20 Feb 2001: </td>
125     <td> TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny - Initial version </td>
126   </tr>
127   <tr>
128     <td align="right"> CPAN Dependencies: </td>
129     <td> none </td>
130   </tr>
131   <tr>
132     <td align="right"> Other Dependencies: </td>
133     <td> none </td>
134   </tr>
135   <tr>
136     <td align="right"> Perl Version: </td>
137     <td> 5.0 </td>
138   </tr>
139   <tr>
140     <td align="right"> Plugin Home: </td>
141     <td> TWiki:Plugins/%TOPIC% (TWiki:Plugins/%TOPIC%) </td>
142   </tr>
143   <tr>
144     <td align="right"> Feedback: </td>
145     <td> TWiki:Plugins/%TOPIC%Dev (TWiki:Plugins/%TOPIC%Dev) </td>
146   </tr>
147 </table>
148
149 **_Related Topics:_** [[InterWikis]], [[TWikiPreferences]], [[TWikiPlugins]]