[Wikitech-l] Formatting links according to the wikiproject

2009-07-06 Thread Helder Geovane Gomes de Lima
Hi!

Is there any way of customize the formatting of links according to the
wikiproject that they are pointing to?
For example, if at Wikibooks we want to make the links to Wikipedia to be
green and the links to the Wiktionary to have and dotted grey underline (or
if some user wants to have a complete rainbow of colors and effects in his
links ;-)), or each of these links have an small icon corresponding to the
project, how could this be achieved? Is there any css classes for the links?

Thanks,
Helder
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Formatting links according to the wikiproject

2009-07-06 Thread Ahmad Sherif
Perhaps you're looking for something like this:

a.extiw[href *=".wikipedia"] { /* change "wikipedia" to the project you want */
/*  */
}

Ahmad Sherif

On Mon, Jul 6, 2009 at 5:42 PM, Helder Geovane Gomes de
Lima wrote:
> Hi!
>
> Is there any way of customize the formatting of links according to the
> wikiproject that they are pointing to?
> For example, if at Wikibooks we want to make the links to Wikipedia to be
> green and the links to the Wiktionary to have and dotted grey underline (or
> if some user wants to have a complete rainbow of colors and effects in his
> links ;-)), or each of these links have an small icon corresponding to the
> project, how could this be achieved? Is there any css classes for the links?
>
> Thanks,
> Helder
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Formatting links according to the wikiproject

2009-07-06 Thread Aryeh Gregor
On Mon, Jul 6, 2009 at 1:19 PM, Ahmad Sherif wrote:
> Perhaps you're looking for something like this:
>
> a.extiw[href *=".wikipedia"] { /* change "wikipedia" to the project you want 
> */
> /*  */
> }

It would be more reliable to do something like

a.extiw[href*=.wikipedia.org/w] { ... }

but that would still match any interwiki URL containing
".wikipedia.org/w", so theoretically false positives are possible.
And it doesn't work in IE6.  Still, that's about the best you can do,
I think.

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Formatting links according to the wikiproject

2009-07-06 Thread Ahmad Sherif
> but that would still match any interwiki URL containing
> ".wikipedia.org/w", so theoretically false positives are possible.
> And it doesn't work in IE6.  Still, that's about the best you can do,
> I think.

We make it strict to #bodyContent then :)

#bodyContent a.extiw[href*=.wikipedia.org/w] { ... }

On Mon, Jul 6, 2009 at 10:31 PM, Aryeh
Gregor wrote:
> On Mon, Jul 6, 2009 at 1:19 PM, Ahmad Sherif wrote:
>> Perhaps you're looking for something like this:
>>
>> a.extiw[href *=".wikipedia"] { /* change "wikipedia" to the project you want 
>> */
>> /*  */
>> }
>
> It would be more reliable to do something like
>
> a.extiw[href*=.wikipedia.org/w] { ... }
>
> but that would still match any interwiki URL containing
> ".wikipedia.org/w", so theoretically false positives are possible.
> And it doesn't work in IE6.  Still, that's about the best you can do,
> I think.
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Formatting links according to the wikiproject

2009-07-06 Thread Aryeh Gregor
On Mon, Jul 6, 2009 at 4:00 PM, Ahmad Sherif wrote:
> We make it strict to #bodyContent then :)
>
> #bodyContent a.extiw[href*=.wikipedia.org/w] { ... }

[[b:Look at this strange Wikibooks page name! .wikipedia.org/what a
strange name]]

I'm not saying it's likely, but false positives are possible, and that
should be kept in mind.

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Formatting links according to the wikiproject

2009-07-17 Thread Helder Geovane Gomes de Lima
2009/7/6, Aryeh Gregor :
> On Mon, Jul 6, 2009 at 4:00 PM, Ahmad Sherif
> wrote:
>> We make it strict to #bodyContent then :)
>>
>> #bodyContent a.extiw[href*=.wikipedia.org/w] { ... }
>
> [[b:Look at this strange Wikibooks page name! .wikipedia.org/what a
> strange name]]
>
> I'm not saying it's likely, but false positives are possible, and that
> should be kept in mind.
>
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l