Question
The questions is, how to make a
WikiWord in current topic be linked only once? (automatically)
The logic would be like:
If
“any
WikiWord in current topic presents more than once”
Then
“keep only the 1st occurrence of that
WikiWord be linked in current topic”
I understand I can use "<noautolink>" tag, but if the
WikiWord is mentioned many times in one topic, the manual coding will need much effort...
Environment
--
CoriaXu - 19 May 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This could be done with a plugin:
- At rendering time, build up a hash of all WikiWords on a page
- Escape the WikiWord if the word already exists in the hash
--
PeterThoeny - 23 Jul 2008