Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Making [[<link>]] behave differently and adding features

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


jnowacki at gmail

May 12, 2008, 6:38 PM

Post #1 of 4 (98 views)
Permalink
Making [[<link>]] behave differently and adding features

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[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


aran at organicdesign

May 12, 2008, 7:13 PM

Post #2 of 4 (93 views)
Permalink
Re: Making [[<link>]] behave differently and adding features [In reply to]

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[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at home

May 13, 2008, 2:58 AM

Post #3 of 4 (91 views)
Permalink
Re: Making [[<link>]] behave differently and adding features [In reply to]

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[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wilson.jim.r at gmail

May 13, 2008, 6:43 AM

Post #4 of 4 (91 views)
Permalink
Re: Making [[<link>]] behave differently and adding features [In reply to]

> 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|Link Title}} or its close cousin the magic
word: {{RATING:8|http://some.url|Link Title}}

That has the potential to be used in templates such as:
{{r8|http://someurl|Link Title}}

-- Jim R. Wilson (jimbojw)

On Tue, May 13, 2008 at 4:58 AM, Roan Kattouw <roan.kattouw[at]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[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.