- Timestamp:
- 11/08/08 14:34:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FindElsewherePlugin/data/TWiki/FindElsewherePlugin.txt
r128 r464 9 9 * Each web would need to create their own topic for a common term 10 10 * Or need to link to or INCLUDE the topic from where it is defined 11 * Authors would need to remember to put the Web name in front of the topic name, such as [[% TWIKIWEB%.WikiWord]]11 * Authors would need to remember to put the Web name in front of the topic name, such as [[%SYSTEMWEB%.WikiWord]] 12 12 13 13 Without this kind of plugin, it's likely that common terms or acronyms (abbreviations) used within an organization would be defined in multiple webs or the common terms will be unlinked wiki words (as if they didn't exist). … … 15 15 ---+++ Syntax Rules 16 16 17 No new syntax is introduced. However, new automatic % TWIKIWEB%.WikiWord linking will occur.17 No new syntax is introduced. However, new automatic %SYSTEMWEB%.WikiWord linking will occur. 18 18 19 19 If a topic or abbreviation is not found in the current web, this plugin will look through the webs listed in the LOOKELSEWHEREWEBS variable. If the topic is found (as it looks through the webs in their listed order), it will create one or more links, depending on the number of topics found. … … 24 24 25 25 | *Test case* | *Input* | *Output<br/>(if installed)* | *Expected* | 26 | Found here | =<nop>WebHome= | WebHome | % TWIKIWEB%.WebHome |27 | Found singular here | =<nop>WebHomes= | WebHomes | [[% TWIKIWEB%.WebHome][WebHomes]] |28 | Found elsewhere | =<nop>WebSearch= | WebSearch | [[% TWIKIWEB%.WebSearch][WebSearch]] |29 | Found elsewhere (LOOKELSEWHEREFORLOCAL enabled) | =<nop>% TWIKIWEB%.TWikiUsers= | %TWIKIWEB%.TWikiUsers | [[Main.TWikiUsers][TWikiUsers]] |30 | Found elsewhere (LOOKELSEWHEREFORLOCAL disabled) | =<nop>% TWIKIWEB%.TWikiUsers= | %TWIKIWEB%.TWikiUsers | [[TWiki.TWikiUsers][TWikiUsers]] (non-existing) |26 | Found here | =<nop>WebHome= | WebHome | %SYSTEMWEB%.WebHome | 27 | Found singular here | =<nop>WebHomes= | WebHomes | [[%SYSTEMWEB%.WebHome][WebHomes]] | 28 | Found elsewhere | =<nop>WebSearch= | WebSearch | [[%SYSTEMWEB%.WebSearch][WebSearch]] | 29 | Found elsewhere (LOOKELSEWHEREFORLOCAL enabled) | =<nop>%SYSTEMWEB%.TWikiUsers= | %SYSTEMWEB%.TWikiUsers | [[Main.TWikiUsers][TWikiUsers]] | 30 | Found elsewhere (LOOKELSEWHEREFORLOCAL disabled) | =<nop>%SYSTEMWEB%.TWikiUsers= | %SYSTEMWEB%.TWikiUsers | [[TWiki.TWikiUsers][TWikiUsers]] (non-existing) | 31 31 | Found elsewhere | =[<nop>[TWikiAdminGroup][twiki admins]]= | [[TWikiAdminGroup][twiki admins]] | [[Main.TWikiAdminGroup][twiki admins]] | 32 32 | Don't touch direct links | =[<nop>[%MAINWEB%.TWikiAdminGroup][twiki admins]]= | [[%MAINWEB%.TWikiAdminGroup][twiki admins]] | [[Main.TWikiAdminGroup][twiki admins]] | 33 | Found singular elsewhere | =<nop>WebSearches= | WebSearches | [[% TWIKIWEB%.WebSearch][WebSearches]] |34 | Found elsewhere, spaced wiki word | =[<nop/>[Web search]]= | [[Web search]] | [[% TWIKIWEB%.WebSearch][Web search]] |33 | Found singular elsewhere | =<nop>WebSearches= | WebSearches | [[%SYSTEMWEB%.WebSearch][WebSearches]] | 34 | Found elsewhere, spaced wiki word | =[<nop/>[Web search]]= | [[Web search]] | [[%SYSTEMWEB%.WebSearch][Web search]] | 35 35 | Found elsewhere, abbrev | =<nop/>ACRONYM= | ACRONYM | (If <nop/>ACRONYM is a topic defined in one of the LOOKELSEWHERE webs, a link to it should show up) | 36 36 | Found elsewhere, abbrev w. alt. linktext | =[<nop/>[ACRONYM][acronym link text]]= | [[ACRONYM][acronym link text]] | (If <nop/>ACRONYM is a topic defined in one of the LOOKELSEWHERE webs, a link to it should show up) | … … 44 44 45 45 * Standard <nop/>WikiWord: <nop/>TWikiPreferences<sup>([[TWiki.TWikiPreferences][TWiki]],[[Main.TWikiPreferences][Main]])</sup> 46 * [<nop/>[Spaced wiki word]]: <em>TWiki preferences</em><sup>([[% TWIKIWEB%.TWikiPreferences][%TWIKIWEB%]],[[%MAINWEB%.TWikiPreferences][%MAINWEB%]])</sup>46 * [<nop/>[Spaced wiki word]]: <em>TWiki preferences</em><sup>([[%SYSTEMWEB%.TWikiPreferences][%SYSTEMWEB%]],[[%MAINWEB%.TWikiPreferences][%MAINWEB%]])</sup> 47 47 48 48 Create this table in [[Sandbox.FindElsewherePluginTest]] to try it out (use raw edit when pasting): … … 50 50 <verbatim> 51 51 | *Test case* | *Input* | *Output<br />(if installed)* | *Expected* | 52 | Found elsewhere, spaced wiki word | [<nop>[TWiki preferences]] | [[TWiki preferences]] | _TWiki preferences_ <sup>([[% TWIKIWEB%.TWikiPreferences][%TWIKIWEB%]],[[%MAINWEB%.TWikiPreferences][%MAINWEB%]])</sup> |53 | Found elsewhere | <nop>TWikiContributor | TWikiContributor | <nop>TWikiContributor<sup>([[% TWIKIWEB%.TWikiContributor][%TWIKIWEB%]],[[%MAINWEB%.TWikiContributor][%MAINWEB%]])</sup> |52 | Found elsewhere, spaced wiki word | [<nop>[TWiki preferences]] | [[TWiki preferences]] | _TWiki preferences_ <sup>([[%SYSTEMWEB%.TWikiPreferences][%SYSTEMWEB%]],[[%MAINWEB%.TWikiPreferences][%MAINWEB%]])</sup> | 53 | Found elsewhere | <nop>TWikiContributor | TWikiContributor | <nop>TWikiContributor<sup>([[%SYSTEMWEB%.TWikiContributor][%SYSTEMWEB%]],[[%MAINWEB%.TWikiContributor][%MAINWEB%]])</sup> | 54 54 </verbatim> 55 55 … … 62 62 | *Input* | *Output* | 63 63 | <nop>%TOPIC%#TopicAnchor | %TOPIC%#NewFunctionalityTest | 64 | <nop>% TWIKIWEB%.WebHome | %TWIKIWEB%.WebHome |64 | <nop>%SYSTEMWEB%.WebHome | %SYSTEMWEB%.WebHome | 65 65 | <nop>WebHome | WebHome | 66 | [<nop>[% TWIKIWEB%.WebHome]] | [[%TWIKIWEB%.WebHome]] |67 | [<nop>[% TWIKIWEB%.WikiWord]] | [[%TWIKIWEB%.WikiWord]] |68 | [<nop>[% TWIKIWEB%.WikiWords]] | [[%TWIKIWEB%.WikiWords]] |69 | <nop>% TWIKIWEB%.WikiWord | %TWIKIWEB%.WikiWord |70 | <nop>% TWIKIWEB%.WikiWords | %TWIKIWEB%.WikiWords |66 | [<nop>[%SYSTEMWEB%.WebHome]] | [[%SYSTEMWEB%.WebHome]] | 67 | [<nop>[%SYSTEMWEB%.WikiWord]] | [[%SYSTEMWEB%.WikiWord]] | 68 | [<nop>[%SYSTEMWEB%.WikiWords]] | [[%SYSTEMWEB%.WikiWords]] | 69 | <nop>%SYSTEMWEB%.WikiWord | %SYSTEMWEB%.WikiWord | 70 | <nop>%SYSTEMWEB%.WikiWords | %SYSTEMWEB%.WikiWords | 71 71 | [<nop/>[%MAINWEB%.WebSearch][This is a link to <nop/>WebSearch in <nop/>%MAINWEB%]] | [[%MAINWEB%.WebSearch][This is a link to WebSearch in %MAINWEB%]] | 72 72
Note: See TracChangeset
for help on using the changeset viewer.
