|
NoWikiWords<< Disable Wiki Words | Cookbook-V1 | Limit Wiki Words >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalSimplify the maintenance of words that should not be taken as Wiki words although they look like such (i.e. camel case). There is quite a number of words in mixed case that appear repeatedly in documentation and similiar text, and I found it annoying the be forced to either quote the words (with [=) or edit the SolutionThis extension allows to create a Wiki page where you maintain words that should not be interpreted as Wiki words (i.e. should not create a link). In the page, simply enter the words you want to block, line by line. Empty lines are ignored. Example: CDs
DVDs
OpenOffice
The page is read by the extension and converted to the appropriate PmWiki orders. DiscussionInstallationDownload the file Attach:nowikiwords.php and install it into your The Wiki Page containing camel case words that should not be taken as Wiki words defaults to $DefaultGroup.NoWikiWords. You may configure this by setting $NoWikiWordsPagename either before the include or in the script itself. Add a link to the page whereever you like. Set an edit permission if you like. You still may define more words in the conventional way. See Also
HistoryFirst version 2004-10-10. Tested with pmwiki-1.0.11 Comments & BugsOne may want to give priority to declarations in the script over those in the Wiki page. Would need to check if the word is already set. ContributorsCopyrightJust the same as PmWiki, naturally. pmwiki-2.2.0-beta68 -- Last modified by {{tpahl}}
|