Dear all,
In mediawiki the standard link tag looks like:
- [[ <link> "link text "]] *
I would like to add a different link tag (lets say *[r8[[ <link> "link text "]]r8] * ) which can then be parsed like a normal link but this will have a rating function next to it. Many people have built rating extensions so much of the work has already been done for me. I simply want to be able to allow people to rate links. Any suggestions on how I can find what part of mediawiki parses the links?
Thanks
Jon
Use the InternalParseBeforeLinks hook, see http://www.mediawiki.org/wiki/Manual:Hooks/InternalParseBeforeLinks
Jonathan Nowacki wrote:
Dear all,
In mediawiki the standard link tag looks like:
- [[ <link> "link text "]] *
I would like to add a different link tag (lets say *[r8[[ <link> "link text "]]r8] * ) which can then be parsed like a normal link but this will have a rating function next to it. Many people have built rating extensions so much of the work has already been done for me. I simply want to be able to allow people to rate links. Any suggestions on how I can find what part of mediawiki parses the links?
Thanks
Jon _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Jonathan Nowacki schreef:
I would like to add a different link tag (lets say *[r8[[ <link> "link text "]]r8] * ) which can then be parsed like a normal link but this will have a rating function next to it. Many people have built rating extensions so much of the work has already been done for me. I simply want to be able to allow people to rate links. Any suggestions on how I can find what part of mediawiki parses the links?
It would probably be best to write a tag extension. Your syntax would then be something like <r8>Foo</r8> .
Roan Kattouw (Catrope)
It would probably be best to write a tag extension. Your syntax would then be something like <r8>Foo</r8> .
I'd go one step further and suggest a parser function: {{#r:8|http://some.url%7CLink Title}} or its close cousin the magic word: {{RATING:8|http://some.url%7CLink Title}}
That has the potential to be used in templates such as: {{r8|http://someurl%7CLink Title}}
-- Jim R. Wilson (jimbojw)
On Tue, May 13, 2008 at 4:58 AM, Roan Kattouw roan.kattouw@home.nl wrote:
Jonathan Nowacki schreef:
I would like to add a different link tag (lets say *[r8[[ <link> "link text "]]r8] * ) which can then be parsed like a normal link but this will have a rating function next to it. Many people have built rating extensions so much of the work has already been done for me. I simply want to be able to allow people to rate links. Any suggestions on how I can find what part of mediawiki parses the links?
It would probably be best to write a tag extension. Your syntax would then be something like <r8>Foo</r8> .
Roan Kattouw (Catrope)
[1] http://www.mediawiki.org/wiki/Manual:Tag_extensions
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org